We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1120c99 commit 7a4fd45Copy full SHA for 7a4fd45
1 file changed
GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.h
@@ -63,8 +63,10 @@ class GPUTPCCFCheckPadBaseline : public GPUKernelTemplate
63
64
static int32_t GetNBlocks(bool isGPU)
65
{
66
- const int32_t nBlocks = TPC_CLUSTERER_STRIDED_PAD_COUNT / PadsPerCacheline;
67
- return isGPU ? GPUTPCGeometry::NROWS : nBlocks;
+ // Important to exclude rightmost padding from Pad Filter.
+ // There's nothing to filter there and padding is counted as start of a row, so it causes an overflow in the row count.
68
+ const int32_t nBlocksCPU = (TPC_CLUSTERER_STRIDED_PAD_COUNT - GPUCF_PADDING_PAD) / PadsPerCacheline;
69
+ return isGPU ? GPUTPCGeometry::NROWS : nBlocksCPU;
70
}
71
72
template <int32_t iKernel = defaultKernel>
0 commit comments