Skip to content

Commit 37dd0fb

Browse files
committed
GPU: Fix compilation with OpenCL
1 parent 516a03e commit 37dd0fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GPU/GPUTracking/SliceTracker/GPUTPCStartHitsFinder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ GPUdii() void GPUTPCStartHitsFinder::Thread<0>(int /*nBlocks*/, int nThreads, in
4444
unsigned int nextRowStartHits = CAMath::AtomicAddShared(&s.mNRowStartHits, 1u);
4545
if (nextRowStartHits >= tracker.mNMaxRowStartHits) {
4646
tracker.raiseError(GPUErrors::ERROR_ROWSTARTHIT_OVERFLOW, tracker.ISlice() * 1000 + s.mIRow, nextRowStartHits, tracker.mNMaxRowStartHits);
47-
CAMath::AtomicExch(&s.mNRowStartHits, tracker.mNMaxRowStartHits);
47+
CAMath::AtomicExchShared(&s.mNRowStartHits, tracker.mNMaxRowStartHits);
4848
break;
4949
}
5050
#else

0 commit comments

Comments
 (0)