Page MenuHome

OpenCL on Linux / Radeon VII ranges from extremely slow to freezing the entire desktop
Closed, ArchivedPublic

Description

System Information
Operating system: Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: AMD Radeon VII (VEGA20, DRM 3.33.0, 5.0.0-32-generic, LLVM 9.0.0) X.Org 4.5 (Core Profile) Mesa 19.2.0-devel

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-06 20:48, hash: rB85637311c28f (PS the version reporter might be broken, i'm actually on hash: 85637311c28f )
Worked: 2.79 seems to be somewhat better but not completely, i haven't done proper direct comparisons yet.

Recent purchaser of a Radeon VII for use with Linux/Cycles.
Current setup is supposed to be the exact "supported stack" for AMD drivers on linux (with the exception of the Mate desktop which I have installed on top of Ubuntu, hopefully this doesn't make a difference..?))
Not sure why Mesa 19.2.0-devel is showing up, I only installed amdgpu with opencl=pal (i think steam installed mesa last night, but that was after i discovered this problem several weeks ago and hasn't changed anything)

Problem:
Blender either renders extremely slowly on the GPU or not at all, often resulting in the whole desktop (except the mouse...?) freezing and requiring a hard restart of the whole computer. This occurs with a "production scene" of mine which renders fine (and faster, sadly) on a GTX 1050 on Linux Mint.

I paid a lot of money for this card so I want to help get to the bottom of this in any way I can. (in other words, what specific benchmarks do you want me to run?)

^ this stripped frame renders in 13:20 on a GTX 1050 while leaving Linux Mint's UI nice and (decently) responsive
on a Radeon VII on Ubuntu it is predicting 1:55:00 (yikes!) also it nearly freezes the whole desktop (~30 seconds between refreshes, except for the mouse) so I have paused it ATM in order to file this bug report.

both tests done on the same blender version (but different machines/distros)
I have also tested the Radeon VII extensively with Linux Mint and that was either equal or even worse depending on driver stack. (freezing machine entirely, forcing hard restart)

I have ran Luxmark on this machine to ensure it's not the hardware or the drivers fault and it has reported ~7,500 for the Hotel test just as expected.

Event Timeline

Jeroen Bakker (jbakker) changed the task status from Unknown Status to Archived.Nov 7 2019, 8:59 AM
Jeroen Bakker (jbakker) claimed this task.

Please use AMD Pro Drivers for OpenCL on Linux. The open source drivers don't do a good job at compiling cycles. see https://docs.blender.org/manual/en/dev/troubleshooting/gpu/linux/amd.html for more information

So I clearly stated that the only reason Mesa showed up in my bug report is because Steam installed it last night. I installed amdgpu with the opencl=pal flag right when I installed this operating system and have observed this behavior for several weeks on that driver. If someone knows a way to temporarily disable Mesa that would be nice. I have spent nearly a month trying different drivers, kernels and distros. Along the way I have installed amdgpu and amdgpu-pro several times each. It does not fix the problem.