Commit a6b33c35 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6846 from mbarnach:6086-cuda-initialization

parents 7176c132 6a0d3b3e
...@@ -71,6 +71,7 @@ void cv::cuda::setDevice(int device) ...@@ -71,6 +71,7 @@ void cv::cuda::setDevice(int device)
throw_no_cuda(); throw_no_cuda();
#else #else
cudaSafeCall( cudaSetDevice(device) ); cudaSafeCall( cudaSetDevice(device) );
cudaSafeCall( cudaFree(0) );
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment