Skip to content

Commit 50f81c3

Browse files
committed
Properly clamping n hits
1 parent 404b87d commit 50f81c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RecoLocalTracker/SiPixelClusterizer/plugins/alpaka/ClusterChargeCut.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ namespace pixelClustering {
9595
}
9696
}
9797
nclus = maxNumClustersPerModules;
98+
clus_view[thisModuleId].clusInModule() = nclus;
9899
}
99100

101+
ALPAKA_ASSERT_ACC(clus_view[thisModuleId].clusInModule() <= maxNumClustersPerModules);
102+
100103
#ifdef GPU_DEBUG
101104
if (thisModuleId % 100 == 1)
102105
if (cms::alpakatools::once_per_block(acc))

0 commit comments

Comments
 (0)