Gromacs  2022.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
+ This graph shows which files directly or indirectly include this file:

Description

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...
 
bool gmx_omp_check_thread_affinity (char **message)
 Check for externally set thread affinity to avoid conflicts with GROMACS internal setting. More...