i,m use cuda. cudaError_t error = cudaGetDeviceCount(&count); count is 1
and getCudaEnabledDeviceCount() return 0
why getCudaEnabledDeviceCount() return 0? i don't know reason. Is not define HAVE_CUDA?? I,m CMake WITH_CUDA checked build OK.
---code--- cuda_info.cpp int cv::cuda::getCudaEnabledDeviceCount() {
ifndef HAVE_CUDA
return 0;
else
int count;
cudaError_t error = cudaGetDeviceCount(&count);
if (error == cudaErrorInsufficientDriver)
return -1;
if (error == cudaErrorNoDevice)
return 0;
cudaSafeCall( error );
return count;
endif
}