Skip to content

Commit cd6ceb5

Browse files
committed
Fixing my own debug messages
1 parent b0e8923 commit cd6ceb5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::pub
299299

300300
uint32_t rowIndex = 0;
301301
if (clusterOut != nullptr) {
302-
rowIndex = GPUTPCNNClusterizerKernels::sortIntoBuckets(
302+
rowIndex = GPUTPCCFClusterizer::sortIntoBuckets(
303303
clusterer,
304304
myCluster,
305305
peak.row(),
@@ -322,19 +322,6 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::pub
322322
}
323323
}
324324

325-
GPUd() uint32_t GPUTPCNNClusterizerKernels::sortIntoBuckets(GPUTPCClusterFinder& clusterer, const tpc::ClusterNative& cluster, uint32_t row, uint32_t maxElemsPerBucket, uint32_t* elemsInBucket, tpc::ClusterNative* buckets, uint32_t full_glo_idx)
326-
{
327-
uint32_t index = CAMath::AtomicAdd(&elemsInBucket[row], 1u);
328-
if (index < maxElemsPerBucket) {
329-
buckets[maxElemsPerBucket * row + index] = cluster;
330-
} else {
331-
printf("ERROR AR THREADIDX: full_glo_idx %d with row %d. Cluster features: %f %f %f %f %f %f \n", full_glo_idx, row, cluster.getPad(), cluster.getTime(), cluster.getQtot(), cluster.getQmax(), cluster.getSigmaPad(), cluster.getSigmaTime());
332-
clusterer.raiseError(GPUErrors::ERROR_CF_ROW_CLUSTER_OVERFLOW, clusterer.mISector * 1000 + row, index, maxElemsPerBucket);
333-
CAMath::AtomicExch(&elemsInBucket[row], maxElemsPerBucket);
334-
}
335-
return index;
336-
}
337-
338325
template <>
339326
GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::publishClass2Regression>(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread, GPUSharedMemory& smem, processorType& processors, uint8_t sector, int8_t dtype, int8_t withMC, uint32_t batchStart)
340327
{

0 commit comments

Comments
 (0)