Skip to content

Commit 9ab3245

Browse files
committed
Bug-fix for MC labels
1 parent e04d84f commit 9ab3245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::run
4646
auto& clustererNN = processors.tpcNNClusterer[sector];
4747
CfArray2D<PackedCharge> chargeMap(reinterpret_cast<PackedCharge*>(clusterer.mPchargeMap));
4848
CPU_ONLY(MCLabelAccumulator labelAcc(clusterer));
49-
tpc::ClusterNative* clusterOut = (withMC) ? nullptr : clusterer.mPclusterByRow;
49+
tpc::ClusterNative* clusterOut = clusterer.mPclusterByRow;
5050
int8_t isAccepted = (clustererNN.mNnClusterizerUseClassification ? (clustererNN.mOutputDataClass[CAMath::Min(glo_idx, (uint32_t)clusterer.mPmemory->counters.nClusters - 1)] > 0) : 1);
5151
GPUTPCCFClusterizer::computeClustersImpl(get_num_groups(0), get_local_size(0), get_group_id(0), get_local_id(0), clusterer, clusterer.mPmemory->fragment, reinterpret_cast<GPUTPCCFClusterizer::GPUSharedMemory&>(smem), chargeMap, clusterer.mPfilteredPeakPositions, clusterer.Param().rec, CPU_PTR(&labelAcc), clusterer.mPmemory->counters.nClusters, clusterer.mNMaxClusterPerRow, clusterer.mPclusterInRow, clusterOut, clusterer.mPclusterPosInRow, isAccepted);
5252
}
@@ -464,7 +464,7 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread<GPUTPCNNClusterizerKernels::pub
464464

465465
CPU_ONLY(MCLabelAccumulator labelAccElem(clusterer));
466466
MCLabelAccumulator* labelAcc = CPU_PTR(&labelAccElem);
467-
tpc::ClusterNative* clusterOut = (withMC) ? nullptr : clusterer.mPclusterByRow;
467+
tpc::ClusterNative* clusterOut = clusterer.mPclusterByRow;
468468
uint32_t full_glo_idx = glo_idx + batchStart;
469469

470470
if (full_glo_idx >= maxClusterNum) {

0 commit comments

Comments
 (0)