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

Share:
5,134

Related videos on Youtube

Amir
Author by

Amir

Updated on September 18, 2022

Comments

  • Amir
    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
      Ken Sharp about 4 years
      Check the config.log, it will be more forthcoming.
    • Amir
      Amir about 4 years
      thank you for your useful comment I fixed my issue by check the config log file.
    • andrew.46
      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
      Daniil Mashkin almost 4 years
      @andrew.46 why?
    • andrew.46
      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
    Ken Sharp about 4 years
    You should be able to mark your answer as solved.