Skip to content

Commit

Permalink
Added HIP include in mgOnGPUconfig.h for correct compilation on HIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooorgen committed Aug 3, 2023
1 parent a97f9ff commit 7fe49f7
Show file tree
Hide file tree
Showing 22 changed files with 11 additions and 22 deletions.
2 changes: 0 additions & 2 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/ee_mumu.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/ee_mumu.sa/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/ee_mumu.sa/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_tt.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_tt.sa/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt.sa/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_tt01g.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt01g.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_ttg.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttg.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_ttg.sa/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttg.sa/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_ttgg.sa/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttgg.sa/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_ttggg.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttggg.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gg_ttggg.sa/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttggg.sa/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define MGONGPUCPP_GPUIMPL cuda
#elif defined __HIPCC__
#define MGONGPUCPP_GPUIMPL hip
#include "hip/hip_runtime.h"
#else
#undef MGONGPUCPP_GPUIMPL
#endif
Expand Down
2 changes: 0 additions & 2 deletions epochX/cudacpp/gq_ttq.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#elif defined __HIPCC__

#include "hip/hip_runtime.h"

#define gpuError_t hipError_t
#define gpuPeekAtLastError hipPeekAtLastError
#define gpuGetErrorString hipGetErrorString
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gq_ttq.mad/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#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 7fe49f7

Please sign in to comment.