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

10 строки
247 B
C++
Исходник Обычный вид История

#include "hip/hip_runtime.h"
#include "hip/hip_runtime_api.h"
2018-03-12 11:29:03 +05:30
#include "hipDeviceUtil.h"
2016-09-27 11:38:31 -05:00
2018-03-12 11:29:03 +05:30
int main() {
2016-09-27 11:38:31 -05:00
HIP_CHECK(hipSetDevice(0), hipSetDevice);
HIP_CHECK(hipSetDevice(1026), hipSetDevice);
HIP_CHECK(hipSetDevice(-1), hipSetDevice);
}