From fa4baa1f409389fc2e7ef0d9bb7680a25de9f3d5 Mon Sep 17 00:00:00 2001 From: KSkwarczynski Date: Thu, 1 Aug 2024 12:51:35 +0000 Subject: [PATCH] deploy: 1ae14c20ae5b9d9b6a5fa13eec282dccf4b7d19f --- classsamplePDFFDBase.html | 2 +- samplePDFFDBase_8cpp_source.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classsamplePDFFDBase.html b/classsamplePDFFDBase.html index 6f0c64f4..b6914809 100644 --- a/classsamplePDFFDBase.html +++ b/classsamplePDFFDBase.html @@ -2950,7 +2950,7 @@

859//if we just want to use CUDAProb3 CPU then setup BeamCpuPropagator object
860#if defined (MULTITHREAD)
861//if we want to multithread then get number of threads from OMP_NUM_THREADS env variable
-
862 MCSamples[iSample].Oscillator = new cudaprob3::BeamCpuPropagator<double>(MCSamples[iSample].nEvents, std::atoi(std::getenv("OMP_NUM_THREADS")));
+
862 MCSamples[iSample].Oscillator = new cudaprob3::BeamCpuPropagator<double>(MCSamples[iSample].nEvents, omp_get_max_threads());
863 MCSamples[iSample].Oscillator->setPathLength(PathLength);
864 MCSamples[iSample].Oscillator->setDensity(Density);
865#else
diff --git a/samplePDFFDBase_8cpp_source.html b/samplePDFFDBase_8cpp_source.html index 3c8727e8..6a278bf5 100644 --- a/samplePDFFDBase_8cpp_source.html +++ b/samplePDFFDBase_8cpp_source.html @@ -984,7 +984,7 @@
859//if we just want to use CUDAProb3 CPU then setup BeamCpuPropagator object
860#if defined (MULTITHREAD)
861//if we want to multithread then get number of threads from OMP_NUM_THREADS env variable
-
862 MCSamples[iSample].Oscillator = new cudaprob3::BeamCpuPropagator<double>(MCSamples[iSample].nEvents, std::atoi(std::getenv("OMP_NUM_THREADS")));
+
862 MCSamples[iSample].Oscillator = new cudaprob3::BeamCpuPropagator<double>(MCSamples[iSample].nEvents, omp_get_max_threads());
863 MCSamples[iSample].Oscillator->setPathLength(PathLength);
864 MCSamples[iSample].Oscillator->setDensity(Density);
865#else