QMCPACK
OpenMP.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using omp_int_t = int
 

Functions

omp_int_t omp_get_thread_num ()
 
omp_int_t omp_get_max_threads ()
 
omp_int_t omp_get_num_threads ()
 
omp_int_t omp_get_level ()
 
omp_int_t omp_get_ancestor_thread_num (int level)
 
omp_int_t omp_get_max_active_levels ()
 
void omp_set_num_threads (int num_threads)
 
int getNextLevelNumThreads ()
 get the number of threads at the next parallel level More...
 

Typedef Documentation

◆ omp_int_t

using omp_int_t = int

Definition at line 24 of file OpenMP.h.

Function Documentation

◆ getNextLevelNumThreads()

int getNextLevelNumThreads ( )
inline

get the number of threads at the next parallel level

Definition at line 35 of file OpenMP.h.

References omp_get_num_threads().

Referenced by DiracMatrixComputeOMPTarget< VALUE_FP >::computeInvertAndLog(), DiracMatrix< VALUE_FP >::computeInvertAndLog(), and DelayedUpdate< T, T_FP >::updateInvMat().

36 {
37  int num_threads = 1;
38 #pragma omp parallel
39  {
40 #pragma omp master
41  num_threads = omp_get_num_threads();
42  }
43  return num_threads;
44 }
omp_int_t omp_get_num_threads()
Definition: OpenMP.h:27

◆ omp_get_ancestor_thread_num()

omp_int_t omp_get_ancestor_thread_num ( int  level)
inline

Definition at line 29 of file OpenMP.h.

29 { return 0; }

◆ omp_get_level()

omp_int_t omp_get_level ( )
inline

Definition at line 28 of file OpenMP.h.

Referenced by ParallelExecutor< TT >::operator()().

28 { return 0; }

◆ omp_get_max_active_levels()

omp_int_t omp_get_max_active_levels ( )
inline

Definition at line 30 of file OpenMP.h.

Referenced by main().

30 { return 1; }

◆ omp_get_max_threads()

◆ omp_get_num_threads()

◆ omp_get_thread_num()

omp_int_t omp_get_thread_num ( )
inline

Definition at line 25 of file OpenMP.h.

Referenced by QMCCostFunction::checkConfigurations(), QMCCostFunction::correlatedSampling(), HybridRepSetReader< SA >::create_atomic_centers_Gspace(), EnergyDensityEstimator::evaluate(), SoaDistanceTableAB< T, D, SC >::evaluate(), OrbitalImages::evaluate(), SplineC2R< ST >::evaluateDetRatios(), SplineC2C< ST >::evaluateDetRatios(), SplineR2R< ST >::evaluateDetRatios(), SplineC2R< ST >::evaluateValue(), SplineC2C< ST >::evaluateValue(), SplineR2R< ST >::evaluateValue(), SplineC2COMPTarget< ST >::evaluateValue(), SplineC2ROMPTarget< ST >::evaluateValue(), SplineC2R< ST >::evaluateVGH(), SplineR2R< ST >::evaluateVGH(), SplineC2C< ST >::evaluateVGH(), SplineC2COMPTarget< ST >::evaluateVGH(), SplineC2ROMPTarget< ST >::evaluateVGH(), SplineC2R< ST >::evaluateVGHGH(), SplineR2R< ST >::evaluateVGHGH(), SplineC2C< ST >::evaluateVGHGH(), SplineC2COMPTarget< ST >::evaluateVGHGH(), SplineC2ROMPTarget< ST >::evaluateVGHGH(), SplineC2R< ST >::evaluateVGL(), SplineR2R< ST >::evaluateVGL(), SplineC2C< ST >::evaluateVGL(), DensityMatrices1B::generate_density_samples(), DensityMatrices1B::generate_samples(), OneBodyDensityMatrices::generateDensitySamples(), OneBodyDensityMatrices::generateDensitySamplesWithSpin(), OneBodyDensityMatrices::generateSamples(), EnergyDensityEstimator::getRequiredTraces(), qmcplusplus::Concurrency::getWorkerId< Executor::OPENMP >(), QMCHamiltonian::initialize_traces(), DiracDeterminant< DU_TYPE >::invertPsiM(), main(), EnergyDensityEstimator::makeClone(), CloneManager::makeClones(), RMCUpdatePbyPWithDrift::put(), RMCUpdateAllWithDrift::put(), TraceManager::put(), QMCMain::QMCMain(), VMC::run(), RMC::run(), DMC::run(), CSVMC::run(), and DescentEngineHandle::takeSample().

25 { return 0; }

◆ omp_set_num_threads()

void omp_set_num_threads ( int  num_threads)
inline