Called after setDevice.

Wrap in a cudaSafeCall.
pull/6087/head
Mathieu Barnachon 9 years ago
parent b030ac0433
commit 6a0d3b3e42
  1. 2
      modules/core/src/cuda_info.cpp

@ -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
}

Loading…
Cancel
Save