QMCPACK
qmcplusplus::Concurrency Namespace Reference

Classes

class  OverrideMaxCapacity
 A service class to override active avaiable threads upon construction. More...
 
class  OverrideMaxCapacity< Executor::OPENMP >
 
class  ThreadCountProtector
 A service class to restore active avaiable threads upon destruction as the thread count recorded during construction. More...
 
class  ThreadCountProtector< Executor::OPENMP >
 

Functions

template<Executor TT = Executor::OPENMP>
unsigned int maxCapacity ()
 
template<>
unsigned int maxCapacity< Executor::OPENMP > ()
 
template<Executor TT = Executor::OPENMP>
unsigned int getWorkerId ()
 
template<>
unsigned int getWorkerId< Executor::OPENMP > ()
 

Function Documentation

◆ getWorkerId()

unsigned int qmcplusplus::Concurrency::getWorkerId ( )

◆ getWorkerId< Executor::OPENMP >()

Definition at line 53 of file Info.hpp.

References omp_get_thread_num().

54 {
55  return omp_get_thread_num();
56 }
omp_int_t omp_get_thread_num()
Definition: OpenMP.h:25

◆ maxCapacity()

unsigned int qmcplusplus::Concurrency::maxCapacity ( )

◆ maxCapacity< Executor::OPENMP >()

Definition at line 44 of file Info.hpp.

References omp_get_max_threads().

45 {
46  return omp_get_max_threads();
47 }
omp_int_t omp_get_max_threads()
Definition: OpenMP.h:26