Page MenuHome

OpenCL performance on Linux / Radeon VII extremely poor
Closed, InvalidPublic


System Information
Operating system: Linux-5.3.0-26-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: AMD Radeon VII (VEGA20, DRM 3.33.0, 5.3.0-26-generic, LLVM 9.0.0) X.Org 4.5 (Core Profile) Mesa 19.2.1 <<<<< INCORRECT (amdgpu-pro is installed, and i know blender is using it because it wouldn't even detect the OpenCL device untill amdgpu-pro was installed)

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-27 18:52, hash: rB507a331f0182

OpenCL performance on Radeon VII now seems to be even worse. Takes 3 hours to render a frame that takes 20 minutes on a ryzen 5 3600. GPU fans are all spinning at top speed so I know the GPU is being used.

As additional information, I was only able to install the AMD drivers with this guide/script
because I have updated my Ubuntu. I'm not sure if ROCM or dkms is working properly.

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Wed, Feb 12, 6:59 PM

@Matthew Wiebe (cerebral_malfunction) Can you give us more information like .blend file to test and which version we sholud use as a baseline for comparison?

Cycles needs to the legacy OpenCL drivers, ROCm will not have good performance.

./amdgpu-install --opencl=legacy --headless

finally bit the bullet and downgraded to 18.04 to use the exact official drivers
but apparently it STILL won't install on this kernel

after running

./amdgpu-install --opencl=legacy --headless

i get

Error! Bad return status for module build on kernel: 5.3.0-28-generic (x86_64)
Consult /var/lib/dkms/amdgpu/19.50-967956/build/make.log for more information.
Setting up amdgpu-pro-core (19.50-967956) ...
Setting up libdrm-amdgpu-amdgpu1:amd64 (1:2.4.99-967956) ...
Setting up libopencl1-amdgpu-pro:amd64 (19.50-967956) ...
Setting up opencl-orca-amdgpu-pro-icd:amd64 (19.50-967956) ...
Setting up clinfo-amdgpu-pro (19.50-967956) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
WARNING: amdgpu dkms failed for running kernel
Brecht Van Lommel (brecht) claimed this task.

The 19.50 amdgpu-pro drivers work for me on Ubuntu 18.04.4, but this is with Linux kernel version 4.15.0.

Maybe the amdgpu-pro drivers are incompatible kernel version 5.3? I'm not sure, I can't immediately find information about it. On the download page it say they are for Ubuntu 18.04.2.

There are many reports about similar issues with the amdgpu-pro drivers online. But this is not something we can fix on the Blender side, besides getting ROCm officially supported and working through any issues with that. But that's a bigger project, outside the scope of the bug tracker.

understood :( where else can i voice my support for such a project? openCL feels so fragile right now.....