Proteus
Programmable JIT compilation and optimization for C/C++ using LLVM
Loading...
Searching...
No Matches
Macros
UtilsHIP.h File Reference
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <hip/hiprtc.h>
Include dependency graph for UtilsHIP.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define proteusHipErrCheck(CALL)
 
#define proteusHiprtcErrCheck(CALL)
 

Macro Definition Documentation

◆ proteusHipErrCheck

#define proteusHipErrCheck (   CALL)
Value:
{ \
hipError_t err = CALL; \
if (err != hipSuccess) { \
printf("ERROR @ %s:%d -> %s\n", __FILE__, __LINE__, \
hipGetErrorString(err)); \
abort(); \
} \
}

◆ proteusHiprtcErrCheck

#define proteusHiprtcErrCheck (   CALL)
Value:
{ \
hiprtcResult err = CALL; \
if (err != HIPRTC_SUCCESS) { \
printf("ERROR @ %s:%d -> %s\n", __FILE__, __LINE__, \
hiprtcGetErrorString(err)); \
abort(); \
} \
}