Skip to content

Commit 476ff64

Browse files
committed
GPU TPC Clusterizer: Add static assert to forbit invalid thread counts
1 parent aa80e5a commit 476ff64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ GPUd() void GPUTPCCFCheckPadBaseline::Thread<0>(int32_t nBlocks, int32_t nThread
4343
GPUd() void GPUTPCCFCheckPadBaseline::CheckBaselineGPU(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread, GPUSharedMemory& smem, processorType& clusterer)
4444
{
4545
#ifdef GPUCA_GPUCODE
46+
static_assert(GPUCA_GET_THREAD_COUNT(GPUCA_LB_GPUTPCCFCheckPadBaseline) == 576);
4647
if (iBlock >= (int32_t)GPUTPCGeometry::NROWS) {
4748
return;
4849
}

0 commit comments

Comments
 (0)