Skip to content

Commit f55aa06

Browse files
committed
GPU: Sort clusters after cluster finder at higher debug level to enforce consistent processing
1 parent 06addf7 commit f55aa06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GPU/GPUTracking/Global/GPUChainTracking.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,9 @@ int GPUChainTracking::RunTPCClusterizer()
933933
for (unsigned int j = 0; j < GPUCA_ROW_COUNT; j++) {
934934
memcpy((void*)&clsMemory[pos], (const void*)&clusterer.mPclusterByRow[j * clusterer.mNMaxClusterPerRow], clusterer.mPclusterInRow[j] * sizeof(clsMemory[0]));
935935
tmp->nClusters[iSlice][j] = clusterer.mPclusterInRow[j];
936+
if (GetDeviceProcessingSettings().debugLevel >= 4) {
937+
std::sort(&clsMemory[pos], &clsMemory[pos + clusterer.mPclusterInRow[j]]);
938+
}
936939
pos += clusterer.mPclusterInRow[j];
937940
}
938941

0 commit comments

Comments
 (0)