From 6ef38a2fab6dc4bb9b2a9bd67b5596cd3992be15 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 16 Jul 2025 07:58:53 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx b/GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx index 7765315c8f692..1431367812e8c 100644 --- a/GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx +++ b/GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerKernels.cxx @@ -50,7 +50,6 @@ GPUdii() void GPUTPCNNClusterizerKernels::Threadfragment, smem_new, chargeMap, clusterer.mPfilteredPeakPositions, clusterer.Param().rec, CPU_PTR(&labelAcc), clusterer.mPmemory->counters.nClusters, clusterer.mNMaxClusterPerRow, clusterer.mPclusterInRow, clusterOut, clusterer.mPclusterPosInRow); } - template <> GPUdii() void GPUTPCNNClusterizerKernels::Thread(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) { @@ -163,8 +162,7 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread(pad) / GPUTPCGeometry::NPads(row) - }; + static_cast(pad) / GPUTPCGeometry::NPads(row)}; if (dtype == 0) { clustererNN.mInputData_16[write_idx] = (OrtDataType::Float16_t)index_values[data_idx]; @@ -191,7 +189,7 @@ GPUdii() void GPUTPCNNClusterizerKernels::Thread= o2::tpc::constants::MAXGLOBALPADROW) { + if (row_current < 0 || row_current >= o2::tpc::constants::MAXGLOBALPADROW) { return 0; // Short-circuit for negative rows } else { return (int)((GPUTPCGeometry::NPads(row_current) - GPUTPCGeometry::NPads(row_ref)) / 2);