Gromacs
2020.4
|
Declares OpenMP wrappers to avoid conditional compilation.
This module defines wrappers for OpenMP API functions and enables compiling code without conditional compilation even when OpenMP is turned off in the build system. Therefore, OpenMP API functions should always be used through these wrappers and omp.h should never be directly included. Instead, this header should be used whenever OpenMP API functions are needed.
Functions | |
int | gmx_omp_get_max_threads () |
Returns an integer equal to or greater than the number of threads that would be available if a parallel region without num_threads were defined at that point in the code. More... | |
int | gmx_omp_get_num_procs () |
Returns the number of processors available when the function is called. More... | |
int | gmx_omp_get_thread_num () |
Returns the thread number of the thread executing within its thread team. More... | |
void | gmx_omp_set_num_threads (int num_threads) |
Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause. More... | |
gmx_bool | gmx_omp_check_thread_affinity (char **message) |
Check for externally set thread affinity to avoid conflicts with GROMACS internal setting. More... | |
static void | gmx_pause () |
Pause for use in a spin-wait loop. | |