Skip to content

Commit ba9554a

Browse files
committed
Fix race condition when filter is disabled
1 parent 13afef7 commit ba9554a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,13 @@ GPUd() void GPUTPCCFCheckPadBaseline::CheckBaselineGPU(int32_t nBlocks, int32_t
266266
thisThreadHasTrigger |= ql >= Charge(MaxADC);
267267
}
268268

269-
const bool hasHIPTrigger = hipFilterOn && work_group_any(thisThreadHasTrigger);
269+
bool hasHIPTrigger = false;
270+
271+
if (hipFilterOn) {
272+
hasHIPTrigger = work_group_any(thisThreadHasTrigger);
273+
} else {
274+
GPUbarrier();
275+
}
270276

271277
acc.HIPtb = -1;
272278

0 commit comments

Comments
 (0)