Files
rocm-systems/projects/clr/hipamd/tests/src/Functional/Negative/Device/hipDeviceUtil.h
T
Maneesh Gupta 43d07079e9 directed tests: Updated to use new hip include path
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51


[ROCm/clr commit: 5947878247]
2016-10-04 22:20:50 +05:30

11 lines
281 B
C++

#ifndef HIPDEVICEUTIL_H
#define HIPDEVICEUTIL_H
#include "hip/hip_runtime_api.h"
#include<iostream>
#define HIP_CHECK(status, func) \
std::cout<<#func<<" returned "<<hipGetErrorString(status)<<" in "<<__func__<<" at "<<__LINE__<<" in file "<<__FILE__<<std::endl;
#endif