Ask Your Question

CUDA backend for DNN module requires CC 5.3 or higher

asked 2019-11-29 05:17:42 -0500

Vytau gravatar image

I have GeForce GTX 970 (guess that's 5.2 architecture). Does this mean I cannot compile opencv with CUDA support?

edit retag flag offensive close merge delete


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.

Yashas gravatar imageYashas ( 2019-12-02 05:56:44 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-11-29 06:03:06 -0500

updated 2019-12-04 07:24:03 -0500

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-29 05:17:42 -0500

Seen: 55 times

Last updated: Dec 04