2016-09-27 11:38:31 -05:00
|
|
|
#ifndef HIPDEVICEUTIL_H
|
|
|
|
|
#define HIPDEVICEUTIL_H
|
|
|
|
|
|
2016-10-04 22:20:50 +05:30
|
|
|
#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
|