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?
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,871 times
Last updated: Dec 04 '19
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.