Skip to content

Commit a839182

Browse files
committed
GPU TPC: Fix deterministic mode with new cluster removal protection
1 parent 4801674 commit a839182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/Merger/GPUTPCGMMerger.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ GPUd() void GPUTPCGMMerger::PrepareForFit1(int32_t nBlocks, int32_t nThreads, in
18521852
if (CAMath::Abs(trk.GetParam().GetQPt() * Param().qptB5Scaler) <= Param().rec.tpc.rejectQPtB5 && !trk.MergedLooper() && trk.Leg() == 0) {
18531853
weight |= attachProtect;
18541854
}
1855-
mClusterAttachment[mClusters[trk.FirstClusterRef() + j].num] = weight;
1855+
CAMath::AtomicMax(&mClusterAttachment[mClusters[trk.FirstClusterRef() + j].num], weight);
18561856
CAMath::AtomicAdd(&mSharedCount[mClusters[trk.FirstClusterRef() + j].num], 1u);
18571857
}
18581858
if (!trk.CCE() && !trk.MergedLooper()) {

0 commit comments

Comments
 (0)