Gromacs
2025.2
|
#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... | |
std::optional< std::string > | messageWhenOpenMPLibraryWillSetAffinity () |
Return a descriptive message when a relevant OpenMP variable that controls whether the OpenMP library will set thread affinity is itself set and non-empty. More... | |