Nvidia cuda Ubuntu 20.04
5,134
Finally, I downgrade my gcc and g++ to version 8 or lower, as though nvcc is not compatible with later than gcc version 8
Related videos on Youtube
Author by
Amir
Updated on September 18, 2022Comments
-
Amir almost 2 years
I have installed cuda and cuda-toolkit-10.2 from Nvidia Cuda Toolkit repository on my Ubuntu 20.04 machine to make a custom build of FFmpeg to using NVIDIA hardware acceleration so when I try to configure the source code with recomended command:
./configure --enable-cuda-sdk --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
I get this error:
ERROR: failed checking for nvcc.
and while I run this:
nvcc -V
It's working fine.
-
Ken Sharp about 4 yearsCheck the
config.log
, it will be more forthcoming. -
Amir about 4 yearsthank you for your useful comment I fixed my issue by check the config log file.
-
andrew.46 about 4 years@Amir You do not normally need cuda for NVidia hardware acceleration with FFmpeg, unless you have a special need?
-
Daniil Mashkin almost 4 years@andrew.46 why?
-
andrew.46 almost 4 years@DaniilMashkin Most people are simply after simple hardware acceleration and if you compile FFmpeg against the nv-codec-headers you should be able to use your graphics card for this purpose. No need usually to install a big 'cuda' package.
-
-
Ken Sharp about 4 yearsYou should be able to mark your answer as solved.