@@ -34,7 +34,7 @@ __global__ void gGPUConstantMemBuffer_dummy(int32_t* p) { *p = *(int32_t*)&gGPUC
3434template <>
3535inline void GPUReconstructionCUDABackend::runKernelBackendInternal<GPUMemClean16, 0 >(const krnlSetupTime& _xyz, void * const & ptr, uint64_t const & size)
3636{
37- GPUFailedMsg (cudaMemsetAsync (ptr, 0 , size, mInternals ->Streams [_xyz.x .stream ]));
37+ GPUChkErr (cudaMemsetAsync (ptr, 0 , size, mInternals ->Streams [_xyz.x .stream ]));
3838}
3939
4040template <class T , int32_t I, typename ... Args>
@@ -56,7 +56,7 @@ inline void GPUReconstructionCUDABackend::runKernelBackendInternal(const krnlSet
5656#endif
5757 pArgs[arg_offset] = &y.index ;
5858 GPUReconstructionCUDAInternals::getArgPtrs (&pArgs[arg_offset + 1 ], args...);
59- GPUFailedMsg (cuLaunchKernel (*mInternals ->kernelFunctions [getRTCkernelNum<false , T, I>()], x.nBlocks , 1 , 1 , x.nThreads , 1 , 1 , 0 , mInternals ->Streams [x.stream ], (void **)pArgs, nullptr ));
59+ GPUChkErr (cuLaunchKernel (*mInternals ->kernelFunctions [getRTCkernelNum<false , T, I>()], x.nBlocks , 1 , 1 , x.nThreads , 1 , 1 , 0 , mInternals ->Streams [x.stream ], (void **)pArgs, nullptr ));
6060 }
6161}
6262
@@ -67,16 +67,16 @@ void GPUReconstructionCUDABackend::runKernelBackend(const krnlSetupArgs<T, I, Ar
6767 auto & z = args.s .z ;
6868 if (z.evList ) {
6969 for (int32_t k = 0 ; k < z.nEvents ; k++) {
70- GPUFailedMsg (cudaStreamWaitEvent (mInternals ->Streams [x.stream ], ((cudaEvent_t*)z.evList )[k], 0 ));
70+ GPUChkErr (cudaStreamWaitEvent (mInternals ->Streams [x.stream ], ((cudaEvent_t*)z.evList )[k], 0 ));
7171 }
7272 }
7373 {
7474 GPUDebugTiming timer (mProcessingSettings .deviceTimers && mProcessingSettings .debugLevel > 0 , (deviceEvent*)mDebugEvents , mInternals ->Streams , args.s , this );
7575 std::apply ([this , &args](auto &... vals) { this ->runKernelBackendInternal <T, I, Args...>(args.s , vals...); }, args.v );
7676 }
77- GPUFailedMsg (cudaGetLastError ());
77+ GPUChkErr (cudaGetLastError ());
7878 if (z.ev ) {
79- GPUFailedMsg (cudaEventRecord (*(cudaEvent_t*)z.ev , mInternals ->Streams [x.stream ]));
79+ GPUChkErr (cudaEventRecord (*(cudaEvent_t*)z.ev , mInternals ->Streams [x.stream ]));
8080 }
8181}
8282
@@ -138,7 +138,7 @@ void GPUReconstructionCUDABackend::getRTCKernelCalls(std::vector<std::string>& k
138138#ifndef GPUCA_NO_CONSTANT_MEMORY
139139static GPUReconstructionDeviceBase::deviceConstantMemRegistration registerConstSymbol ([]() {
140140 void * retVal = nullptr ;
141- if (GPUReconstructionCUDA::GPUFailedMsgStatic (cudaGetSymbolAddress (&retVal, gGPUConstantMemBuffer ), __FILE__, __LINE__)) {
141+ if (GPUReconstructionCUDA::GPUChkErrStatic (cudaGetSymbolAddress (&retVal, gGPUConstantMemBuffer ), __FILE__, __LINE__)) {
142142 throw std::runtime_error (" Could not obtain GPU constant memory symbol" );
143143 }
144144 return retVal;
0 commit comments