gpu_flow icon indicating copy to clipboard operation
gpu_flow copied to clipboard

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

Open MuziSakura opened this issue 6 years ago • 2 comments

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

MuziSakura avatar Mar 22 '18 09:03 MuziSakura

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 ...

tnybny avatar Apr 18 '18 15:04 tnybny

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

fairyzhxz avatar Nov 03 '18 08:11 fairyzhxz