Skip to content

Commit

Permalink
Fix no inference detections bug when cudnn is disabled. (AlexeyAB#7617)
Browse files Browse the repository at this point in the history
Fixes issue described here: AlexeyAB#7616
  • Loading branch information
renaultfernandes authored Apr 19, 2021
1 parent b6cd759 commit 8bc512d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dark_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ cudaStream_t get_cuda_stream() {
int i = cuda_get_device();
if (!streamInit[i]) {
printf("Create CUDA-stream - %d \n", i);
//cudaError_t status = cudaStreamCreate(&streamsArray[i], cudaStreamNonBlocking);
#ifdef CUDNN
cudaError_t status = cudaStreamCreateWithFlags(&streamsArray[i], cudaStreamNonBlocking);
#else
cudaError_t status = cudaStreamCreate(&streamsArray[i]);
#endif
if (status != cudaSuccess) {
printf(" cudaStreamCreate error: %d \n", status);
const char *s = cudaGetErrorString(status);
Expand Down

0 comments on commit 8bc512d

Please sign in to comment.