blob: df63dd093b74c3ee864fa28af579bc1f14e90032 [file] [log] [blame]
#ifndef HIP_CHECK_ERROR
#define HIP_CHECK_ERROR
void inline checkError(hipError_t hipErr, const char * functWithError)
{
if ( hipErr != hipSuccess )
{
fprintf(stderr, "ERROR %s - %s\n", functWithError,
hipGetErrorString(hipErr));
exit(-1);
}
}
#endif