Fix HIP_PATH, CHECK macro in samples.

[ROCm/clr commit: 830527bfdc]
This commit is contained in:
Ben Sander
2016-04-13 17:37:39 -05:00
parent b2237cb953
commit 70c75c0eed
4 changed files with 16 additions and 7 deletions
@@ -22,11 +22,14 @@ THE SOFTWARE.
#include <stdio.h>
#include <hip_runtime.h>
#define CHECK(error) \
#define CHECK(cmd) \
{\
hipError_t error = cmd;\
if (error != hipSuccess) { \
fprintf(stderr, "error: '%s'(%d) at %s:%d\n", hipGetErrorString(error), error,__FILE__, __LINE__); \
exit(EXIT_FAILURE);\
}
}\
}
/*