Files
rocm-systems/tests/src/Negative/Device/hipGetDevice.cpp
T

11 lines
221 B
C++
Raw Normal View History

#include "hip/hip_runtime.h"
#include "hip/hip_runtime_api.h"
2016-09-27 11:38:31 -05:00
#include"hipDeviceUtil.h"
int main()
{
int device;
HIP_CHECK(hipGetDevice(NULL), hipGetDevice);
HIP_CHECK(hipGetDevice(&device), hipGetDevice);
}