aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
threads.cpp File Reference

Utility functions used for exploiting OpenMP/STL parallelism. More...

Include dependency graph for threads.cpp:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Functions

void gum::setNumberOfThreads (unsigned int number)
 Set the max number of threads to be used when entering the next parallel region.
bool gum::isOMP ()
 indicates whether aGrUM uses openMP or STL threads
std::vector< std::pair< Idx, Idx > > gum::dispatchRangeToThreads (Idx beg, Idx end, unsigned int nb_threads)
 returns a vector equally splitting elements of a range among threads

Detailed Description

Utility functions used for exploiting OpenMP/STL parallelism.

Author
Christophe GONZALES and Pierre-Henri WUILLEMIN

Definition in file threads.cpp.