No CUDA or OPENGL while use iGPU as Main in Linux

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

junklont

  • Posts: 7
  • Joined: Sun May 14, 2023 5:56 pm
  • Real Name: Mateo Bohorquez

No CUDA or OPENGL while use iGPU as Main in Linux

PostFri Apr 26, 2024 3:08 pm

Hello guys, I'm having a problem with DaVinci Resolve on Linux, and this is definitely an BUG with DaVinci.

What does the BUG consist of?

Image

Basically, when I open DaVinci Resolve, it says it's unable to initialize the GPU, and then it lets me go ahead and configure the GPUs. DaVinci can detect my RTX 4070, but it can't detect CUDA or OPENCL on it, and it appears blank.

Image

When does this BUG occur?

The error only occurs when we use the iGPU from the processor as the main device, that is to say, for rendering the graphics of the computer desktop, so the processor handles the graphics, and the monitor is connected directly to the displayport of the motherboard (when it's connected directly to the NVIDIA GPU, and it takes care of all the management, then this error doesn't occur).

Why do I think it's not a CUDA error?

Other applications like Stable Diffusion, Comfy, LMStudio, among others that use artificial intelligence, are all able to work with my RTX 4070 GPU without any problem. Games can also be run perfectly.

You might be wondering why I'm using the iGPU instead of my NVIDIA graphics card as primary, right?

The answer is because NVIDIA gives me a lot of trouble with Linux, and I'm using KDE Plasma 5 on Wayland in Manjaro.

In what versions of DaVinci does the problem manifest?

I've tried the following versions and had the same error in all of them. I also have to mention that I asked this question in a Linux Telegram group and several users seem to be reporting the same failure.

DaVinci Resolve 18
DaVinci Resolve Studio 18
DaVinci Resolve 19 Beta
DaVinci Resolve Studio 19 Beta


my specs


██████████████████ ████████
██████████████████ ████████ -------------------------
██████████████████ ████████ OS: Manjaro Linux x86_64
██████████████████ ████████ Kernel: 6.6.26-1-MANJARO
████████ ████████ Uptime: 2 hours, 18 mins
████████ ████████ ████████ Packages: 2016 (pacman)
████████ ████████ ████████ Shell: zsh 5.9
████████ ████████ ████████ Resolution: 1920x1200
████████ ████████ ████████ DE: Plasma 5.27.11
████████ ████████ ████████ WM: kwin
████████ ████████ ████████ Theme: [Plasma], Breeze [GTK2/3]
████████ ████████ ████████ Icons: [Plasma], breeze-dark [GTK2/3]
████████ ████████ ████████ Terminal: tilix
████████ ████████ ████████ CPU: Intel i5-14500 (20) @ 5.000GHz
GPU: Intel AlderLake-S GT1
GPU: NVIDIA GeForce RTX 4070
Memory: 15399MiB / 47476MiB

NVIDIA-SMI 550.67 Driver Version: 550.67 CUDA Version: 12.4


I've tried use commands like this and other
CUDA_VISIBLE_DEVICES=0 /opt/resolve/bin/resolve
But nothing works :/
Offline
User avatar

PeterDrage

  • Posts: 42
  • Joined: Sun Jan 01, 2023 6:25 pm
  • Location: UK
  • Real Name: Peter Drage

Re: [BUG] No CUDA or OPENGL while use iGPU as Main in Linux

PostFri Apr 26, 2024 7:01 pm

Hi

I could be wrong and happy to be corrected, but I believe Resolve under Linux requires that your primary GPU is Nvidia / AMD and not the iGPU.

Peter
Resolve Studio 18.6.6 | Micro Panel | Speed Editor | DeckLink Monitor 4K

10980XE | 128GB RAM | RTX4080 | ARC A310 | 4x2TB NVMe | 72TB RAID 6 HDD | Win11 23H2

14” MacBook Pro | M3 Max 16 Core | 40 Core GPU | 64GB RAM | 1TB SSD | MacOS 14.4.1
Offline
User avatar

junklont

  • Posts: 7
  • Joined: Sun May 14, 2023 5:56 pm
  • Real Name: Mateo Bohorquez

Re: [BUG] No CUDA or OPENGL while use iGPU as Main in Linux

PostSun Apr 28, 2024 2:49 pm

PeterDrage wrote:Hi

I could be wrong and happy to be corrected, but I believe Resolve under Linux requires that your primary GPU is Nvidia / AMD and not the iGPU.

Peter


I was able to solve this problem, thanks to containers, in my case with the help of this project https://github.com/fat-tire/resolve, I used podman (or docker) to run davinci resolve under podman with my NVIDIA GPU, this way I can use my iGPU as main in my linux and run Davinci under a container (with my NVIDIA GPU).
Offline
User avatar

PeterDrage

  • Posts: 42
  • Joined: Sun Jan 01, 2023 6:25 pm
  • Location: UK
  • Real Name: Peter Drage

Re: No CUDA or OPENGL while use iGPU as Main in Linux

PostSun Apr 28, 2024 4:26 pm

That is so cool, running Resolve in a Container. Did not know that was even possible. Much better than having nvidia as main GPU for Linux.

That will be something I look into when I get some time.
Resolve Studio 18.6.6 | Micro Panel | Speed Editor | DeckLink Monitor 4K

10980XE | 128GB RAM | RTX4080 | ARC A310 | 4x2TB NVMe | 72TB RAID 6 HDD | Win11 23H2

14” MacBook Pro | M3 Max 16 Core | 40 Core GPU | 64GB RAM | 1TB SSD | MacOS 14.4.1

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], ohimbz and 144 guests