Files
rocm-systems/projects/hip/tests/src/Negative/Device/hipDeviceUtil.h
T

12 lines
390 B
C++
Raw Normal View History

2016-09-27 11:38:31 -05:00
#ifndef HIPDEVICEUTIL_H
#define HIPDEVICEUTIL_H
#include "hip/hip_runtime_api.h"
2018-03-12 11:29:03 +05:30
#include <iostream>
2016-09-27 11:38:31 -05:00
2018-03-12 11:29:03 +05:30
#define HIP_CHECK(status, func) \
std::cout << #func << " returned " << hipGetErrorString(status) << " in " << __func__ \
<< " at " << __LINE__ << " in file " << __FILE__ << std::endl;
2016-09-27 11:38:31 -05:00
#endif