[HIPIFY][tests][win] Make cudaRegister.cu building on Windows as well

[ROCm/clr commit: 4df35f4c77]
Bu işleme şunda yer alıyor:
Evgeny Mankov
2018-01-24 20:13:23 +03:00
ebeveyn 278ae56dfe
işleme f33c431dd9
+7 -2
Dosyayı Görüntüle
@@ -22,7 +22,12 @@ THE SOFTWARE.
#include<cuda.h>
#include<cuda_runtime.h>
#include<iostream>
#include<unistd.h>
#ifdef _WIN32
#include <windows.h>
#define sleep(x) Sleep(x)
#else
#include <unistd.h>
#endif
#include<stdio.h>
#include<malloc.h>
@@ -33,7 +38,7 @@ THE SOFTWARE.
// CHECK: if(status != hipSuccess) {
#define check(msg, status){ \
if(status != cudaSuccess) { \
printf("%s failed. \n", #msg); \
printf("%s failed. \n", #msg); \
} \
}