Eu tento instalar o Cuda 8.0 na minha instalação do Ubuntu 16.04. Minha placa gráfica é uma GTX 760. O driver da Nvidia que estou usando é a versão 375.82 (Open Source). Eu também tentei 384.69, mas isso faz com que minha tela pisque e eu não era capaz de resolver isso, portanto, fique com 375. Drivers proprietários não são oferecidos por Drivers Adicionais.
Agora, meu problema é que, ao compilar as amostras de Cuda, recebo este erro:
/usr/bin/ld: cannot find -lnvcuvid
collect2: error: ld returned 1 exit status
Makefile:381: recipe for target 'cudaDecodeGL' failed
make[1]: *** [cudaDecodeGL] Error 1
make[1]: Leaving directory '/home/till/cuda_samples/NVIDIA_CUDA-8.0_Samples/3_Imaging/cudaDecodeGL'
Makefile:52: recipe for target '3_Imaging/cudaDecodeGL/Makefile.ph_build' failed
make: *** [3_Imaging/cudaDecodeGL/Makefile.ph_build] Error 2
Parece que há uma incompatibilidade entre a versão real do driver usada e a esperada por Cuda. O arquivo libnvcuvid.so
é encontrado apenas em nvidia-384
-folders:
/usr/lib32/nvidia-384/libnvcuvid.so
/usr/lib/nvidia-384/libnvcuvid.so
Esta é a saída de sudo dmesg | grep NVRM
:
[ 0.836713] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts)
[ 7.567492] NVRM: Your system is not currently configured to drive a VGA console
[ 7.567493] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[ 7.567493] NVRM: requires the use of a text-mode VGA console. Use of other console
[ 7.567494] NVRM: drivers including, but not limited to, vesafb, may result in
[ 7.567495] NVRM: corruption and stability problems, and is not supported.
[ 225.362634] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 556.604479] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.482098] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.483700] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.484674] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.485522] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.513333] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.514678] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.515697] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.516702] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 732.594678] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.157169] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.158720] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.159643] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.160487] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.179644] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.180478] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.181106] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.181609] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
[ 743.253289] NVRM: API mismatch: the client has the version 384.69, but
NVRM: this kernel module has the version 375.82. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
nvidia-smi
retorna:
Failed to initialize NVML: Driver/library version mismatch
Como mencionei, não posso usar o driver 384 devido ao problema de tremulação. É possível fazer trabalho de cuda com o driver 375?