68 return omp_get_max_threads();
76 return omp_get_num_procs();
78 return std::thread::hardware_concurrency();
84 return omp_get_thread_num();
92 return omp_get_num_threads();
100 omp_set_nested(((value ==
true) ? 1 : 0));
103 "openMP was not enabled at compilation (and you "
104 "asked for nested parallelism !)");
110 return ((omp_get_nested() == 0) ?
false :
true);
118 omp_set_dynamic(((value ==
true) ? 1 : 0));
121 "openMP was not enabled at compilation (and you "
122 "asked for dynamic adjustment of the number of "
129 return ((omp_get_dynamic() == 0) ?
false :
true);
Exception : operation not allowed.
#define GUM_ERROR(type, msg)
unsigned int getMaxNumberOfThreads()
Returns the maximum number of threads that should be used at any time.
bool getDynamicThreadsNumber()
Get the dynamic thread number adjustment status.
unsigned int getNumberOfRunningThreads()
Get the current number of running threads.
unsigned int getNumberOfLogicalProcessors()
Get the number of logical processors.
void setDynamicThreadsNumber(bool value)
Set the dynamic threads number (false by default).
bool getNestedParallelism()
Get nested parallelism status.
void setNestedParallelism(bool value)
Set nested parallelism (false bu default).
unsigned int getThreadNumber()
Get the calling thread id.
bool hasOMPSupport()
Is OMP active ?
gum is the global namespace for all aGrUM entities