aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
OMPThreads.h File Reference

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. More...

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

Go to the source code of this file.

Namespaces

 gum
 Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
 

Functions

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

Detailed Description

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.

Wrappers for OpenMP.

Author
Matthieu HOURBRACQ and Pierre-Henri WUILLEMIN()

Definition in file OMPThreads.h.