Skip to content

Commit f6943ef

Browse files
committed
GPU TPC Clusterizer: Fix endless loop when running with 1 thread
1 parent 88a61b2 commit f6943ef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎GPU/GPUTracking/TPCClusterFinder/GPUTPCClusterFinder.cxx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ uint32_t GPUTPCClusterFinder::getNSteps(size_t items) const
161161
}
162162
uint32_t c = 1;
163163
const size_t scanWorkgroupSize = mRec->getGPUParameters(mRec->GetRecoStepsGPU() & gpudatatypes::RecoStep::TPCClusterFinding).par_CF_SCAN_WORKGROUP_SIZE;
164+
if (scanWorkgroupSize <= 1) {
165+
return 1;
166+
}
164167
size_t capacity = scanWorkgroupSize;
165168
while (items > capacity) {
166169
capacity *= scanWorkgroupSize;

0 commit comments

Comments
 (0)