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

[ROCm/hip commit: f9416a0c49]
This commit is contained in:
Evgeny Mankov
2018-01-24 20:13:23 +03:00
parent 496111adc3
commit 5d83330b47
@@ -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); \
} \
}