Skip to content

Commit 67a46f7

Browse files
author
Jian Shen
committed
use non blocking cuda stream during creation
1 parent 765a163 commit 67a46f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cgoutils/memory/cuda_malloc.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ CGoCallResHandle CreateCudaStream(int device) {
7272
CGoCallResHandle resHandle = {NULL, NULL};
7373
cudaSetDevice(device);
7474
cudaStream_t s = NULL;
75-
cudaStreamCreate(&s);
75+
cudaStreamCreateWithFlags(&s, cudaStreamNonBlocking);
7676
resHandle.res = reinterpret_cast<void *>(s);
7777
resHandle.pStrErr = checkCUDAError("CreateCudaStream");
7878
return resHandle;

0 commit comments

Comments
 (0)