OpenCL performance on Linux / Radeon VII extremely poor #73460

Closed
opened 2020-01-28 18:17:44 +01:00 by Matthew Wiebe · 11 comments

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: 507a331f01

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
https://www.youtube.com/watch?v=97fj4bGJxVM
because I have updated my Ubuntu. I'm not sure if ROCM or dkms is working properly.

**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: `507a331f01` 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 https://www.youtube.com/watch?v=97fj4bGJxVM because I have updated my Ubuntu. I'm not sure if ROCM or dkms is working properly.
Author

Added subscriber: @cerebral

Added subscriber: @cerebral

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

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

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

Added subscriber: @brecht

Added subscriber: @brecht

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

./amdgpu-install --opencl=legacy --headless
Cycles needs to the legacy OpenCL drivers, ROCm will not have good performance. ``` ./amdgpu-install --opencl=legacy --headless ```
Author

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

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 ```

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Brecht Van Lommel self-assigned this 2020-02-14 17:27:46 +01:00

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.

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.
Author

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

understood :( where else can i voice my support for such a project? openCL feels so fragile right now.....
Here are some places: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#73460
No description provided.