Skip to content

Commit

Permalink
[jthip24] Remove hip_runtime.h from CODEGEN mgOnGpuConfig.h and add i…
Browse files Browse the repository at this point in the history
…t back to GpuAbstraction.h

Revert "[CODEGEN] Added HIP runtime include in mgOnGpuConfig.h in codegen"
This reverts Jorgen's commit 35913a3 (2023-07-13 15:15:41 +0200)
  • Loading branch information
valassi committed Jan 25, 2024
1 parent b3562ff commit d1131c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down

0 comments on commit d1131c1

Please # to comment.