Merge pull request #6846 from mbarnach:6086-cuda-initialization
This commit is contained in:
commit
a6b33c3590
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user