Files
rocm-systems/projects/hip/tests/src/Negative/Device/hipSetDevice.cpp
T

11 lines
246 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()
{
HIP_CHECK(hipSetDevice(0), hipSetDevice);
HIP_CHECK(hipSetDevice(1026), hipSetDevice);
HIP_CHECK(hipSetDevice(-1), hipSetDevice);
}