added tests to check nvcc runtime api output

Change-Id: Ifdd39b5d0a6a58d20a8e9745e59dd82d50a90e2f
Этот коммит содержится в:
Aditya Atluri
2016-11-19 21:36:28 -06:00
родитель 53e771fc75
Коммит 428041cfc2
11 изменённых файлов: 87 добавлений и 2 удалений
+12
Просмотреть файл
@@ -0,0 +1,12 @@
#include <hip/hip_runtime_api.h>
#include "test_common.h"
int main()
{
hipDeviceProp_t prop;
HIP_PRINT_STATUS(hipGetDeviceProperties(&prop, -1));
int cnt;
hipGetDeviceCount(&cnt);
HIP_PRINT_STATUS(hipGetDeviceProperties(&prop, cnt+1));
HIP_PRINT_STATUS(hipGetDeviceProperties(NULL, 0));
}