CUDA backend for DNN module requires CC 5.3 or higher
I have GeForce GTX 970 (guess that's 5.2 architecture). Does this mean I cannot compile opencv with CUDA support?
I have GeForce GTX 970 (guess that's 5.2 architecture). Does this mean I cannot compile opencv with CUDA support?
You can compile with CUDA support by including -DCUDA_ARCH_BIN=X
with X>=5.3, however you won't be able to run the resulting DNN CUDA binary unless your card has compute capability X.
It looks like it relies on half precision (I thought this was CC 6.0 and above), see this post by the author.
Thank you for the link. Does that mean that CUDA DNN inference is all performed in half precision?
@cudawarped No, it provides both options separately. There is an open PR which makes half-precision optional so that it can build on older GPUs.
That's great, thank you for all your work on this, I look forward to experimenting with this next week.
Asked: 2019-11-29 05:17:42 -0600
Seen: 1,937 times
Last updated: Dec 04 '19
OpenCV for Windows (2.4.1): Cuda-enabled app won't load on non-nVidia systems
Can't compile .cu file when including opencv.hpp
[GPU] OpenCV 2.4.2 with Cuda support + Ubuntu 12.04 Laptop
OpenCV 2.4.2 and trunk: cmake doesn't show CUDA options
Bilinear sampling from a GpuMat
Problem with FarnebackOpticalFlow / DeviceInfo
BruteForceMatcher_GPU error on large set of descriptors
Pseudocode for custom GPU computation
You can compile OpenCV with CUDA support.You will have to disable the CUDA backend in the DNN module by unmarking
OPENCV_DNN_CUDA
in CMake.