Skip to content

Commit b82f9e8

Browse files
fweigdavidrohr
authored andcommitted
TPCClusterFinder: Fix how to determine if a sector is empty.
1 parent 83bbd22 commit b82f9e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
622622
SynchronizeStream(lane);
623623
GPUTPCClusterFinder& clusterer = processors()->tpcClusterer[iSlice];
624624
GPUTPCClusterFinder& clustererShadow = doGPU ? processorsShadow()->tpcClusterer[iSlice] : clusterer;
625+
625626
if (laneHasData[lane]) {
626627
anyLaneHasData = true;
627628
if (buildNativeGPU && GetProcessingSettings().tpccfGatherKernel) {
@@ -645,14 +646,16 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
645646
transferRunning[lane] = 1;
646647
}
647648

648-
if (not propagateMCLabels || clusterer.mPmemory->counters.nClusters == 0) {
649+
if (not propagateMCLabels || not laneHasData[lane]) {
650+
assert(propagateMCLabels ? mcLinearLabels.header.size() == nClsTotal : true);
649651
continue;
650652
}
651653

652654
runKernel<GPUTPCCFMCLabelFlattener, GPUTPCCFMCLabelFlattener::setRowOffsets>(GetGrid(GPUCA_ROW_COUNT, lane, GPUReconstruction::krnlDeviceType::CPU), {iSlice}, {});
653655
GPUTPCCFMCLabelFlattener::setGlobalOffsetsAndAllocate(clusterer, mcLinearLabels);
654656
runKernel<GPUTPCCFMCLabelFlattener, GPUTPCCFMCLabelFlattener::flatten>(GetGrid(GPUCA_ROW_COUNT, lane, GPUReconstruction::krnlDeviceType::CPU), {iSlice}, {}, &mcLinearLabels);
655657
clusterer.clearMCMemory();
658+
assert(propagateMCLabels ? mcLinearLabels.header.size() == nClsTotal : true);
656659
}
657660
if (buildNativeHost && buildNativeGPU && anyLaneHasData) {
658661
if (GetProcessingSettings().delayedOutput) {

0 commit comments

Comments
 (0)