#pragma omp 확장 외에도
openMP 지원을 위한 런타임 함수들과 환경변수들을 지원하는데
런타임 함수에 은근히 lock 관련이 있다는 사실에 놀라는 중.
openMP 지원을 위한 런타임 함수들과 환경변수들을 지원하는데
런타임 함수에 은근히 lock 관련이 있다는 사실에 놀라는 중.
2 Runtime Library Routines 2.1 omp_get_active_level() - Number of parallel regions
2.2 omp_get_ancestor_thread_num() - Ancestor thread ID
2.3 omp_get_dynamic() - Dynamic teams setting
2.4 omp_get_level() - Obtain the current nesting level
2.5 omp_get_max_active_levels() - Maximum number of active regions
2.6 omp_get_max_threads() - Maximum number of threads of parallel region
2.7 omp_get_nested() - Nested parallel regions
2.8 omp_get_num_procs() - Number of processors online
2.9 omp_get_num_threads() - Size of the active team
2.10 omp_get_schedule() - Obtain the runtime scheduling method
2.11 omp_get_team_size() - Number of threads in a team
2.12 omp_get_thread_limit() - Maximum number of threads
2.13 omp_get_thread_num() - Current thread ID
2.14 omp_in_parallel() - Whether a parallel region is active
2.15 omp_in_final() - Whether in final or included task region
2.16 omp_set_dynamic() - Enable/disable dynamic teams
2.17 omp_set_max_active_levels() - Limits the number of active parallel regions
2.18 omp_set_nested() - Enable/disable nested parallel regions
2.19 omp_set_num_threads() - Set upper team size limit
2.20 omp_set_schedule() - Set the runtime scheduling method
2.21 omp_init_lock() - Initialize simple lock
2.22 omp_set_lock() - Wait for and set simple lock
2.23 omp_test_lock() - Test and set simple lock if available
2.24 omp_unset_lock() - Unset simple lock
2.25 omp_destroy_lock() - Destroy simple lock
2.26 omp_init_nest_lock() - Initialize nested lock
2.27 omp_set_nest_lock() - Wait for and set nested lock
2.28 omp_test_nest_lock() - Test and set nested lock if available
2.29 omp_unset_nest_lock() - Unset nested lock
2.30 omp_destroy_nest_lock() - Destroy nested lock
2.31 omp_get_wtick() - Get timer precision
2.32 omp_get_wtime() - Elapsed wall clock time
3 Environment Variables
3.1 OMP_DYNAMIC - Dynamic adjustment of threads
3.2 OMP_MAX_ACTIVE_LEVELS - Set the maximum number of nested parallel regions
3.3 OMP_NESTED - Nested parallel regions
3.4 OMP_NUM_THREADS - Specifies the number of threads to use
3.5 OMP_SCHEDULE - How threads are scheduled
3.6 OMP_STACKSIZE - Set default thread stack size
3.7 OMP_THREAD_LIMIT - Set the maximum number of threads
3.8 OMP_WAIT_POLICY - How waiting threads are handled
3.9 OMP_PROC_BIND - Whether theads may be moved between CPUs
3.10 GOMP_CPU_AFFINITY - Bind threads to specific CPUs
3.11 GOMP_STACKSIZE - Set default thread stack size
|
'Programming > openMP' 카테고리의 다른 글
openMP로 구현한 야매 sum() (0) | 2013.09.25 |
---|---|
openmp 제한자(?) (0) | 2013.09.20 |
openMP 지시어 (0) | 2013.03.16 |
visual studio express 2008에서는 openMP 공식 지원안해! (0) | 2013.03.16 |
TBB - Threading Building Blocks by intel (0) | 2013.01.08 |