From 926a9dfd5f5543026ee1141ad1b27337c213ee8f Mon Sep 17 00:00:00 2001 From: David Rohr Date: Thu, 17 Jul 2025 13:58:32 +0200 Subject: [PATCH] GPU: Fix typo in getting default number of threads from env variables --- GPU/GPUTracking/Base/GPUReconstruction.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GPUTracking/Base/GPUReconstruction.cxx b/GPU/GPUTracking/Base/GPUReconstruction.cxx index 4a67fae3b6376..c7b61a976021a 100644 --- a/GPU/GPUTracking/Base/GPUReconstruction.cxx +++ b/GPU/GPUTracking/Base/GPUReconstruction.cxx @@ -209,7 +209,7 @@ static uint32_t getDefaultNThreads() const char* ompEnv = getenv("OMP_NUM_THREADS"); uint32_t ompNum = ompEnv ? atoi(ompEnv) : 0; if (ompNum) { - return tbbNum; + return ompNum; } return tbb::info::default_concurrency(); }