Skip to content

Commit 9e155cf

Browse files
committed
Code-Checker, silence some false warnings from failures in clang-tidy
1 parent 514e953 commit 9e155cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Detectors/ITSMFT/ITS/tracking/GPU/cuda/TrackingKernels.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,14 @@ void processNeighboursHandler(const int startLayer,
12151215
thrust::raw_pointer_cast(&foundSeedsTable[0]), // d_in
12161216
thrust::raw_pointer_cast(&foundSeedsTable[0]), // d_out
12171217
nCurrentCells + 1, // num_items
1218-
0));
1218+
0)); // NOLINT: failure in clang-tidy
12191219
discardResult(cudaMalloc(&d_temp_storage, temp_storage_bytes));
12201220
gpuCheckError(cub::DeviceScan::ExclusiveSum(d_temp_storage, // d_temp_storage
12211221
temp_storage_bytes, // temp_storage_bytes
12221222
thrust::raw_pointer_cast(&foundSeedsTable[0]), // d_in
12231223
thrust::raw_pointer_cast(&foundSeedsTable[0]), // d_out
12241224
nCurrentCells + 1, // num_items
1225-
0));
1225+
0)); // NOLINT: failure in clang-tidy
12261226
12271227
thrust::device_vector<int> updatedCellIds(foundSeedsTable.back()) /*, lastCellIds(foundSeedsTable.back())*/;
12281228
thrust::device_vector<CellSeed> updatedCellSeeds(foundSeedsTable.back()) /*, lastCellSeeds(foundSeedsTable.back())*/;

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ void GPUReconstructionCUDABackend::PrintKernelOccupancies()
625625
int32_t maxBlocks = 0, threads = 0, suggestedBlocks = 0, nRegs = 0, sMem = 0;
626626
GPUFailedMsg(cudaSetDevice(mDeviceId));
627627
for (uint32_t i = 0; i < mInternals->kernelFunctions.size(); i++) {
628-
GPUFailedMsg(cuOccupancyMaxPotentialBlockSize(&suggestedBlocks, &threads, *mInternals->kernelFunctions[i], 0, 0, 0));
628+
GPUFailedMsg(cuOccupancyMaxPotentialBlockSize(&suggestedBlocks, &threads, *mInternals->kernelFunctions[i], 0, 0, 0)); // NOLINT: failure in clang-tidy
629629
GPUFailedMsg(cuOccupancyMaxActiveBlocksPerMultiprocessor(&maxBlocks, *mInternals->kernelFunctions[i], threads, 0));
630630
GPUFailedMsg(cuFuncGetAttribute(&nRegs, CU_FUNC_ATTRIBUTE_NUM_REGS, *mInternals->kernelFunctions[i]));
631631
GPUFailedMsg(cuFuncGetAttribute(&sMem, CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES, *mInternals->kernelFunctions[i]));

0 commit comments

Comments
 (0)