Merge pull request #344 from emankov/cuRAND

[HIPIFY][tests][win] Make cudaRegister.cu building on Windows as well
此提交包含在:
Evgeny Mankov
2018-01-25 17:28:50 +03:00
提交者 GitHub
當前提交 f6d3ef9e8b
+7 -2
查看文件
@@ -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); \
} \
}