64#ifdef GUM_THREADS_USE_OMP
65 namespace threads = gum::threadsOMP;
67 namespace threads = gum::threadsSTL;
129 std::vector< std::pair< Idx, Idx > >
void setNumberOfThreads(unsigned int number)
Set the max number of threads to be used when entering the next parallel region.
unsigned int getNumberOfLogicalProcessors()
Get the number of logical processors.
unsigned int getMaxNumberOfThreads()
Returns the maximum number of threads you should use at any time.
Size Idx
Type for indexes.
unsigned int getNumberOfThreads()
returns the max number of threads used by default when entering the next parallel region
gum is the global namespace for all aGrUM entities
bool isOMP()
indicates whether aGrUM uses openMP or STL threads
std::vector< std::pair< Idx, Idx > > dispatchRangeToThreads(Idx beg, Idx end, unsigned int nb_threads)
returns a vector equally splitting elements of a range among threads
C++17 STL threads convenience utilities for aGrUM.