aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
threadsOMP_inl.h File Reference

OpenMP wrappers implementation. More...

Include dependency graph for threadsOMP_inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities
namespace  gum::threadsOMP

Functions

bool gum::threadsOMP::hasOMPSupport ()
 Is OMP active ?
unsigned int gum::threadsOMP::getMaxNumberOfThreads ()
 Returns the maximum number of threads that should be used at any time.
unsigned int gum::threadsOMP::getNumberOfLogicalProcessors ()
 Get the number of logical processors.
unsigned int gum::threadsOMP::getThreadNumber ()
 Get the calling thread id.
unsigned int gum::threadsOMP::getNumberOfRunningThreads ()
 Get the current number of running threads.
void gum::threadsOMP::setNestedParallelism (bool value)
 Set nested parallelism (false bu default).
bool gum::threadsOMP::getNestedParallelism ()
 Get nested parallelism status.
void gum::threadsOMP::setDynamicThreadsNumber (bool value)
 Set the dynamic threads number (false by default).
bool gum::threadsOMP::getDynamicThreadsNumber ()
 Get the dynamic thread number adjustment status.

Detailed Description

OpenMP wrappers implementation.

Author
Matthieu HOURBRACQ and Pierre-Henri WUILLEMIN

Definition in file threadsOMP_inl.h.