Skip to content

Commit 587c3e6

Browse files
committed
Adding back if statement for early exit
1 parent a075c43 commit 587c3e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::fil
155155
uint32_t transient_index = glo_idx - (base_idx * clustererNN.mNnClusterizerRowTimeSizeThreads);
156156

157157
// Early exit for out-of-bounds threads
158-
// if (base_idx + batchStart >= clusterer.mPmemory->counters.nClusters) {
159-
// return;
160-
// }
158+
if (base_idx + batchStart >= clusterer.mPmemory->counters.nClusters) {
159+
return;
160+
}
161161
CfArray2D<PackedCharge> chargeMap(reinterpret_cast<PackedCharge*>(clusterer.mPchargeMap));
162162
CfArray2D<uint8_t> isPeakMap(clusterer.mPpeakMap);
163163

0 commit comments

Comments
 (0)