HOWTO: Folding AMD GPU (RX 5700) on Ubuntu 20.04

It seems that a lot of GPU problems revolve around specific versions of drivers. Though AMD has their own support structure, you can often learn from information reported by others who fold.

Moderators: Site Moderators, FAHC Science Team

Post Reply
duffeaap
Posts: 1
Joined: Thu May 07, 2020 7:06 pm

HOWTO: Folding AMD GPU (RX 5700) on Ubuntu 20.04

Post by duffeaap »

I've been trying to figure this out for weeks on Ubuntu 19.10 prior to the release of Ubuntu 20.04 without any success after following all the instructions I could find.
I was hoping that AMD would release a new driver with the OpenCL drivers for Ubuntu 20.04, but unfortunately this did not happen yet.

So after another attempt I now have it running.

This worked for me:

1. Download AMD Driver for your card from the AMD Support site
2. Extract with tar zvf
3. Edit

Code: Select all

/etc/os-release
and replace VERSION_ID with 18.04

4. Run:

Code: Select all

amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
5. Edit

Code: Select all

/etc/os-release
and replace VERSION_ID with 20.04 again

6. I had to run FAHClient as root by editing

Code: Select all

/etc/init.d/FAHClient
You might be able to run it with the default fahclient user by adding the fahclient user to the render group

7. Reboot
8. Then I had an issue with Bad State Detected
9. Reboot

Now my GPU is folding!
ableeker
Posts: 10
Joined: Sun Jul 06, 2008 11:17 am

Re: HOWTO: Folding AMD GPU (RX 5700) on Ubuntu 20.04

Post by ableeker »

This used to work for me with 19.10. However, I'm now running 20.04. This way I can install amdgpu-pro OpenCL, but when I restart the computer, it writes colored noise to the boot screen, and hangs. I've tried it a number of times, but it hangs every time. I can go to terminal mode with ctrl+alt+f4, and remove amdgpu-pro. After that it boots normally again.

The OS check seems to be for amdgpu-pro-pin, which is a 'Meta package to pin a specific amdgpu driver version'. Do we need it?
ableeker
Posts: 10
Joined: Sun Jul 06, 2008 11:17 am

Re: HOWTO: Folding AMD GPU (RX 5700) on Ubuntu 20.04

Post by ableeker »

For me amdgpu-pro isn't working on Ubuntu 20.04 with an RX Vega 64. But because I only need OpenCL, I'm running ROCm 3.3, wich is folding successfully on the GPU. I think ROCm OpenCl works on the 5700, but I haven't tested this myself.
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: HOWTO: Folding AMD GPU (RX 5700) on Ubuntu 20.04

Post by bruce »

... and how do we convince AMD that they need to solve the problem?
Post Reply