Skip to content

Commit

Permalink
Add HIPifly macros needed for GPU error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaddy committed Nov 27, 2023
1 parent c5e35a6 commit cdbed5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/gpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cdbed5d

Please sign in to comment.