Gromacs
2026.0-dev-20250217-60d5e5b
|
#include "gmxpre.h"
#include "gromacs/utility/gmxomp.h"
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <string>
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/programcontext.h"
#include "gromacs/utility/stringutil.h"
Implements functions from gmxomp.h.
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... | |