Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake issue: Could NOT find CUDA: Found unsuitable version "8.0", but required is exact version "9.1" (found /usr/local/cuda-8.0) #8

Open
MuziSakura opened this issue Mar 22, 2018 · 2 comments

Comments

@MuziSakura
Copy link

As the title, I have installed CUDA 8.0, but does this code must run on CUDA 9.1?

@tnybny
Copy link

tnybny commented Apr 18, 2018

Your opencv 2.4 is compiled against CUDA-8.0, but you are trying to build this project with CUDA-9.1. This could happen because opencv was built on this machine before CUDA was upgraded to 9.1, which is perfectly acceptable. A fix that worked for me is to specify the CUDA_TOOLKIT_ROOT_DIR cmake variable during the build.
Such as cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0 ...

@fairyzhxz
Copy link

You can check your cuda driver version and cuda runtime version. But you should check that you have installed opencv after cuda first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants