文件
rocm-systems/hipamd/tests/src/Negative/Device/hipGetDevice.cpp
T

11 行
221 B
C++

#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);
}