From cdbed5d17c4eee5ecd6285c14e9e31d0b9b16d80 Mon Sep 17 00:00:00 2001 From: Bob Caddy Date: Fri, 27 Oct 2023 16:33:16 -0400 Subject: [PATCH] Add HIPifly macros needed for GPU error checking --- src/utils/gpu.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/gpu.hpp b/src/utils/gpu.hpp index 962ed09fc..0817940cc 100644 --- a/src/utils/gpu.hpp +++ b/src/utils/gpu.hpp @@ -27,6 +27,7 @@ static constexpr int maxWarpsPerBlock = 1024 / WARPSIZE; #define CUFFT_Z2D HIPFFT_Z2D #define CUFFT_Z2Z HIPFFT_Z2Z #define CUFFT_SUCCESS HIPFFT_SUCCESS + #define cufftResult_t hipfftResult_t #define cudaDeviceSynchronize hipDeviceSynchronize #define cudaError hipError_t @@ -65,6 +66,7 @@ static constexpr int maxWarpsPerBlock = 1024 / WARPSIZE; #define cudaOccupancyMaxPotentialBlockSize hipOccupancyMaxPotentialBlockSize #define cudaMemGetInfo hipMemGetInfo #define cudaDeviceGetPCIBusId hipDeviceGetPCIBusId + #define cudaPeekAtLastError hipPeekAtLastError // Texture definitions #define cudaArray hipArray