We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2417fb commit bea98e6Copy full SHA for bea98e6
GPU/GPUTracking/TPCClusterFinder/GPUTPCCFStreamCompaction.cxx
@@ -55,8 +55,9 @@ GPUdii() void GPUTPCCFStreamCompaction::Thread<GPUTPCCFStreamCompaction::scanUp>
55
int32_t iThreadGlobal = get_global_id(0);
56
int32_t offsetInBlock = work_group_scan_inclusive_add((iThreadGlobal < nElems) ? scanOffset[iThreadGlobal] : 0);
57
58
- // TODO: This write isn't needed??
59
- scanOffset[iThreadGlobal] = offsetInBlock;
+ if (iThreadGlobal < nElems) {
+ scanOffset[iThreadGlobal] = offsetInBlock;
60
+ }
61
62
int32_t lastThread = nThreads - 1;
63
if (iThread == lastThread) {
0 commit comments