chrono::ChOMP Class Reference
Description
Wrappers around OpenMP functions.
#include <ChOpenMP.h>
Static Public Member Functions | |
static void | SetNumThreads (int nthreads) |
Set the number of threads in subsequent parallel regions, unless overridden by a 'num_threads' clause. | |
static int | GetNumThreads () |
Return the number of threads in the parallel region. | |
static int | GetThreadNum () |
Return the thread number of the thread executing within its thread team. | |
static int | GetNumProcs () |
Return the number of available processors on this machine. | |
static int | GetMaxThreads () |
Return the max. More... | |
Member Function Documentation
◆ GetMaxThreads()
|
static |
Return the max.
number of threads that would be used by default if num_threads not specified. This is the same number as GetNumProcs() on most OMP implementations.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/utils/ChOpenMP.h
- /builds/uwsbel/chrono/src/chrono/utils/ChOpenMP.cpp