added tests to check nvcc runtime api output

Change-Id: Ifdd39b5d0a6a58d20a8e9745e59dd82d50a90e2f


[ROCm/clr commit: 6692ee09d7]
Tá an tiomantas seo le fáil i:
Aditya Atluri tiomanta 2016-11-19 21:36:28 -06:00
1 tuismitheoir b8eda419a8
tiomantas 21470101c7
11 comhad athraithe
+87 -2

Níor tháinig aon chomhaid le do chuardach

@@ -0,0 +1,10 @@
#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));
}