1 (edited by TheBigBadBoy 09-05-2024 22:02:24)

Topic: [Linux] No GPU acceleration with nvidia drivers (RTX 3060 laptop)

Hello.

In the settings of SVPManager, for some reason I cannot use GPU acceleration.
I have a RTX 3060 laptop, and can use MPV with `--vo=gpu-next` to use it.
Drivers are up to date: nvidia 550.78-2

                   -`                    clement_smagghe@Machenike-T58V 
                  .o+`                   ------------------------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: T58-V 
               `+oooooo:                 Kernel: 6.8.9-arch1-2 
               -+oooooo+:                Uptime: 55 mins 
             `/:-:++oooo+:               Packages: 1007 (pacman) 
            `/++++/+++++++:              Shell: bash 5.2.26 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           WM: IceWM 3.4.7 (linux-gnu/x86_64) 
         ./ooosssso++osssssso+`          WM Theme: nu ICE orange 
        .oossssso-````/ossssss+`         Theme: gtk-master [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: Adwaita [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: xterm 
     /ossssssss/        +ssssooo/-       CPU: Intel i7-10870H (16) @ 5.000GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q 
  `+sso+:-`                 `.-/+oso:    GPU: Intel CometLake-H GT2 [UHD Graphics] 
 `++:.                           `-/+/   Memory: 2793MiB / 31920MiB 
 .`                                 `/

The web page for "Why GPU accel isn't available?" only speaks about GPU models (and mine should work), but not about any configuration I could have missed.

Anyone knows what I can do?

Re: [Linux] No GPU acceleration with nvidia drivers (RTX 3060 laptop)

check with clinfo tool that OpenCL drivers are ok

3 (edited by TheBigBadBoy 10-05-2024 07:18:49)

Re: [Linux] No GPU acceleration with nvidia drivers (RTX 3060 laptop)

Thank you, it showed me that it couldn't find any platform, and I discovered that all I needed was the cuda package.
I can now select GPU acceleration. Well I would have prefered a smaller dependency to have, but at least it now works (cuda takes 4.6 GB once installed).

What is strange tho, is that the AUR package svp-bin does not say cuda is needed (even as a optional dep):

Depends On      : libmediainfo  libusb  lsof  vapoursynth  qt5-svg  qt5-script
                  qt5-declarative  xdg-utils
Optional Deps   : mpv: Video player [installed]
                  ocl-icd: for GPU acceleration [installed]
                  python-certifi: youtube-dl extension - Basic support
                  [installed]
                  python-pycryptodomex: youtube-dl extension - For decrypting
                  AES-128 HLS streams and various other data
                  python-websockets: youtube-dl extension - For downloading over
                  websocket
                  vlc: Video player

Re: [Linux] No GPU acceleration with nvidia drivers (RTX 3060 laptop)

Oh, just found out that the package `opencl-nvidia` is enough, so I can remove `cuda` completely (instead of 4.6GB of deps, only 22MB!).
big_smile