21470101c7
Change-Id: Ifdd39b5d0a6a58d20a8e9745e59dd82d50a90e2f
[ROCm/clr commit: 6692ee09d7]
11 lines
205 B
C++
11 lines
205 B
C++
#include <hip/hip_runtime_api.h>
|
|
#include "test_common.h"
|
|
|
|
int main()
|
|
{
|
|
HIP_PRINT_STATUS(hipSetDevice(-1));
|
|
int count;
|
|
hipGetDeviceCount(&count);
|
|
HIP_PRINT_STATUS(hipSetDevice(count+1));
|
|
}
|