Skip to content

Commit f26e725

Browse files
committed
GPU: Cleanup unused template parameter
1 parent 8b6d22e commit f26e725

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ int32_t GPUReconstruction::InitPhaseBeforeDevice()
273273
if (mProcessingSettings.createO2Output > 1) {
274274
mProcessingSettings.createO2Output = 1;
275275
}
276+
mProcessingSettings.rtc.deterministic = 1;
276277
}
277278
if (mProcessingSettings.deterministicGPUReconstruction && mProcessingSettings.debugLevel >= 6) {
278279
mProcessingSettings.nTPCClustererLanes = 1;

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void GPUReconstructionCUDA::loadKernelModules(bool perKernel)
618618
{
619619
uint32_t j = 0;
620620
#define GPUCA_KRNL(x_class, ...) \
621-
getRTCkernelNum<false, GPUCA_M_KRNL_TEMPLATE(x_class)>(mInternals->kernelFunctions.size()); \
621+
getRTCkernelNum<GPUCA_M_KRNL_TEMPLATE(x_class)>(mInternals->kernelFunctions.size()); \
622622
mInternals->kernelFunctions.emplace_back(new CUfunction); \
623623
mInternals->kernelNames.emplace_back(GPUCA_M_STR(GPUCA_M_CAT(krnl_, GPUCA_M_KRNL_NAME(x_class)))); \
624624
if (mProcessingSettings.debugLevel >= 3) { \

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class GPUReconstructionCUDABackend : public GPUReconstructionDeviceBase
4949
template <class T, int32_t I>
5050
class backendInternal;
5151

52-
template <bool multi, class T, int32_t I = 0>
52+
template <class T, int32_t I = 0>
5353
static int32_t getRTCkernelNum(int32_t k = -1);
5454

5555
void getRTCKernelCalls(std::vector<std::string>& kernels);

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inline void GPUReconstructionCUDABackend::runKernelBackendInternal(const krnlSet
5555
#endif
5656
pArgs[arg_offset] = &y.index;
5757
GPUReconstructionCUDAInternals::getArgPtrs(&pArgs[arg_offset + 1], args...);
58-
GPUChkErr(cuLaunchKernel(*mInternals->kernelFunctions[getRTCkernelNum<false, T, I>()], x.nBlocks, 1, 1, x.nThreads, 1, 1, 0, mInternals->Streams[x.stream], (void**)pArgs, nullptr));
58+
GPUChkErr(cuLaunchKernel(*mInternals->kernelFunctions[getRTCkernelNum<T, I>()], x.nBlocks, 1, 1, x.nThreads, 1, 1, 0, mInternals->Streams[x.stream], (void**)pArgs, nullptr));
5959
}
6060
}
6161

@@ -111,7 +111,7 @@ void GPUReconstructionCUDABackend::runKernelBackend(const krnlSetupArgs<T, I, Ar
111111
#include "GPUReconstructionKernelList.h"
112112
#undef GPUCA_KRNL
113113

114-
template <bool multi, class T, int32_t I>
114+
template <class T, int32_t I>
115115
int32_t GPUReconstructionCUDABackend::getRTCkernelNum(int32_t k)
116116
{
117117
static int32_t num = k;
@@ -121,9 +121,7 @@ int32_t GPUReconstructionCUDABackend::getRTCkernelNum(int32_t k)
121121
return num;
122122
}
123123

124-
#define GPUCA_KRNL(x_class, ...) \
125-
template int32_t GPUReconstructionCUDABackend::getRTCkernelNum<false, GPUCA_M_KRNL_TEMPLATE(x_class)>(int32_t k); \
126-
template int32_t GPUReconstructionCUDABackend::getRTCkernelNum<true, GPUCA_M_KRNL_TEMPLATE(x_class)>(int32_t k);
124+
#define GPUCA_KRNL(x_class, ...) template int32_t GPUReconstructionCUDABackend::getRTCkernelNum<GPUCA_M_KRNL_TEMPLATE(x_class)>(int32_t k);
127125
#include "GPUReconstructionKernelList.h"
128126
#undef GPUCA_KRNL
129127

0 commit comments

Comments
 (0)