Called after setDevice.

Wrap in a cudaSafeCall.
This commit is contained in:
Mathieu Barnachon 2016-02-09 14:40:09 +01:00
parent b030ac0433
commit 6a0d3b3e42

View File

@ -70,8 +70,8 @@ void cv::cuda::setDevice(int device)
(void) device;
throw_no_cuda();
#else
cudaFree(0);
cudaSafeCall( cudaSetDevice(device) );
cudaSafeCall( cudaFree(0) );
#endif
}