Skip to content

Commit

Permalink
use non blocking cuda stream during creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jian Shen committed Mar 30, 2020
1 parent f5e6dc3 commit 76663d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgoutils/memory/cuda_malloc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CGoCallResHandle CreateCudaStream(int device) {
CGoCallResHandle resHandle = {NULL, NULL};
cudaSetDevice(device);
cudaStream_t s = NULL;
cudaStreamCreate(&s);
cudaStreamCreateWithFlags(&s, cudaStreamNonBlocking);
resHandle.res = reinterpret_cast<void *>(s);
resHandle.pStrErr = checkCUDAError("CreateCudaStream");
return resHandle;
Expand Down

0 comments on commit 76663d4

Please sign in to comment.