feichtenhofer / gpu_flow

GPU based optical flow extraction in OpenCV
427 stars 109 forks source link

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 6 years ago

MuziSakura commented 6 years ago

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

tnybny commented 6 years ago

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 commented 5 years ago

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