Skip to content

Commit de1f9ba

Browse files
committed
GPU TBB: Fix threading in case nThreadsAdjusted becomes 1
1 parent 20cd4cd commit de1f9ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GPU/GPUTracking/Base/GPUReconstructionProcessing.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ void GPUReconstructionProcessing::runParallelOuterLoop(bool doGPU, uint32_t nThr
5151
tbb::parallel_for<uint32_t>(0, nThreads, lambda, tbb::simple_partitioner());
5252
});
5353
} else {
54-
lambda(0);
54+
for (uint32_t i = 0; i < nThreads; i++) {
55+
lambda(i);
56+
}
5557
}
5658
}
5759

0 commit comments

Comments
 (0)