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

Wrappers for OpenMP. More...

#include <thread>
#include <utility>
#include <vector>
#include <agrum/agrum.h>
#include <agrum/base/core/threads/threadsOMP_inl.h>
Include dependency graph for threadsOMP.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::getNumberOfThreads ()
 returns the max number of threads used by default when entering the next parallel region
unsigned int gum::threadsOMP::getNumberOfLogicalProcessors ()
 Get the number of logical processors.
void gum::threadsOMP::setNumberOfThreads (unsigned int number)
 Set the number of threads to be used when entering the next parallel region.
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

Wrappers for OpenMP.

Author
Matthieu HOURBRACQ and Pierre-Henri WUILLEMIN

Definition in file threadsOMP.h.