diff --git a/epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h b/epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h index 782cb96e8c..391a5ea4ac 100644 --- a/epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h +++ b/epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h @@ -59,8 +59,8 @@ //-------------------------------------------------------------------------- #define gpuError_t hipError_t - #define gpuPeekAtLastError hipPeekAtLastError - #define gpuGetErrorString hipGetErrorString + #define gpuPeekAtLastError checkGpu( hipPeekAtLastError ) + #define gpuGetErrorString checkGpu( hipGetErrorString ) #define gpuSuccess hipSuccess #define gpuMallocHost(ptr, size) checkGpu( hipHostMalloc(ptr, size) ) // HostMalloc better @@ -75,8 +75,8 @@ #define gpuFreeHost(ptr) checkGpu( hipHostFree(ptr) ) #define gpuSetDevice hipSetDevice - #define gpuDeviceSynchronize hipDeviceSynchronize - #define gpuDeviceReset hipDeviceReset + #define gpuDeviceSynchronize checkGpu( hipDeviceSynchronize ) + #define gpuDeviceReset checkGpu(hipDeviceReset) #define gpuLaunchKernel( kernel, blocks, threads, ...) kernel<<>> (__VA_ARGS__) #define gpuLaunchKernelSharedMem(kernel, blocks, threads, sharedMem, ...) kernel<<>>(__VA_ARGS__)