I'm running cv::cuda::StereoBM, and it works find on a Tesla K80. (Compute capability 3.7.) Precisely the same code, with precisely the same system libraries, it hangs on a Geforce RTX 2080 Ti. (Compute capability 7.5.) I've got other CUDA code working find on the system.
In particular, this is the code that hangs:
cv::Ptr<cv::StereoBM> sbm_ptr = cv::cuda::createStereoBM();
sbm_ptr->compute(gpu_left, gpu_right, gpu_result);
// .. this line of code is never reached.
I've doubled checked OpenCV's cuda::DeviceInfo::isCompatible
, and it lists my device as indeed compatible.
I'm wondering how I might go about debugging this.