AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

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

sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

Haven't been able to make AMD Radeon RX 580 graphics card run on FAHClient v7.6.latest-snap3:

Code: Select all

Radeon RX 580 (Ellesmere)
Intel Core i3-9100F
Linux Ubuntu 22.04 64-bit with all updates installed
Linux kernel v5.15.0-58-generic
Drivers have been taken from the official AMD Support, yet despite all attempts to install this, the FAHClient log still states:

Code: Select all

WARNING:FS01:No CUDA or OpenCL 1.2+ support detected for GPU slot 01: gpu:1:0 Ellesmere XT [RX 470/480/570/580/590].  Disabling.
One of the issues encountered during the amdgpu-install process is:

Code: Select all

The following packages have unmet dependencies:
 xserver-xorg-amdgpu-video-amdgpu : Depends: xorg-video-abi-24 but it is not installable
and the process gets stuck here, even if I try something like:

Code: Select all

sudo apt-get install aptitude && sudo aptitude install xserver-xorg-amdgpu-video-amdgpu
or this:

Code: Select all

sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install -f
sudo aptitude install xserver-xorg-amdgpu-video-amdgpu
Can someone guide me on next steps?
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Hi,

the issue has been taken up to AMD Linux guys, will see what they come up with. I ran into same issue regarding dependencies too.
I also tried installing rocm various packages, but without any success. In my case, fahclient does not find libOpenCL.so (among other unrelated things). I'm yet to try installing just opencl on its own, though I can see that repos only showing 1.2 version, which rings alarm bells to me, that that is not a solution
FAH Omega tester
toTOW
Site Moderator
Posts: 6373
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by toTOW »

You may have to install "opencl-icd-dev" package to solve this.
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

toTOW wrote: Sun Feb 12, 2023 3:04 pm You may have to install "opencl-icd-dev" package to solve this.
That doesn't exist anymore in repos. However I found rocm-ocl-icd will see how that goes :D
FAH Omega tester
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

There is "ocl-icd-dev" though, but that does not help with anything ;)
FAH Omega tester
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

OK, try
amdgpu-install --usecase=OpenCL

That went through for me, but I cannot confirm if it fixed fah issues
FAH Omega tester
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

ok, what a Sunday it was :D I have not spent so much time with Linux for around 20 years now.

So, apparently you downloaded a driver for older repo. When you select your GPU from the list and then go to see what is available, AMD lists 2 choices.
One is for focal repo the second one is for jammy. We are supposed to use jammy repo. So uninstall amdgpu-install from your system, and download jammy package. I know both of them have identical file names :/ But if you hover over Download link on AMD website, you will see one of them has focal and other has jammy in their URLs.
This is the one you want: https://repo.radeon.com/amdgpu-install/ ... -1_all.deb

I managed to install the damn thing through other means, but try installing jammy package, see what that is going to say. For all intents and purposes amdgpu-install is wonderful idea, just a bit too confusing with identical file names and two download links
FAH Omega tester
sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

Thank you for your assistance. So for my understanding, is it the GPU driver which is at fault here? Happy to downgrade to Ubuntu 21.04, 20.04 or 19.04 if that helps.
The machine in question is currently running headless with a GeForce GT 710 and for which CUDA was apparently co-installed. Will see what scores I get after a few days. Afterwards, will reinstall whole machine with the Radeon RX 580 clicked in and revert.
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

The wrong driver might have been at fault, as AMD lists two branches.
I ran out of daylight yesterday, but today I'll do some tests to confirm what works and what doesn't.
FAH Omega tester
sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

The GeForce GT 710 approach did not help at all as only the CPU was used, so back at the original situation:

Code: Select all

Radeon RX 580 (Ellesmere)
Intel Core i3-9100F
Linux Ubuntu 22.04 64-bit with all updates installed
Linux kernel v5.15.0-58-generic
Approaching this by strictly following instructions:
  • Clean install 22.04, no additional drivers
  • Reboot
  • Apply automatic software updates from Ubuntu
  • Reboot
Following instructions from here: https://foldingathome.org/support/faq/i ... ?lng=en-US

Code: Select all

$ wget https://download.foldingathome.org/releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.4.4_amd64.deb
$ wget https://download.foldingathome.org/releases/public/release/fahcontrol/debian-testing-64bit/v7.4/fahcontrol_7.4.4-1_all.deb
$ sudo dpkg -i --force-depends fahclient_7.4.4_amd64.deb
Then note that the next command gives:

Code: Select all

$ sudo dpkg -i --force-depends fahcontrol_7.4.4-1_all.deb
Selecting previously unselected package fahcontrol.
(Reading database ... 200330 files and directories currently installed.)
Preparing to unpack fahcontrol_7.4.4-1_all.deb ...
Unpacking fahcontrol (7.4.4-1) ...
dpkg: fahcontrol: dependency problems, but configuring anyway as you requested:
 fahcontrol depends on python; however:
  Package python is not installed.
 fahcontrol depends on python-support (>= 0.90.0); however:
  Package python-support is not installed.
 fahcontrol depends on python-gnome2; however:
  Package python-gnome2 is not installed.

Setting up fahcontrol (7.4.4-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Then in an attempt to solve this:

Code: Select all

$ sudo apt install -y python python-support python-gnome2
ends with:
E: Package 'python' has no installation candidate
E: Package 'python-support' has no installation candidate
E: Unable to locate package python-gnome2
So I think something needs to be updated in the output. Either way, the client started to fold.

Then downloaded AMD driver https://repo.radeon.com/amdgpu-install/ ... -1_all.deb and double clicked.
Software center opens and shows 14.6kB installed size (which seems rather small to me).
At this point the GPU fans aren't running, so the client is not using the GPU. So I still don't know how I can get the GPU to fold also aside from the CPU.
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

OK, I see everything is done upside down :D
Clean install Ubuntu, download jammy amdgpu.deb from AMD website.
Open .deb file with Software Install (yes it is 14kb, because this is just an installer ;) )

Code: Select all

$amdgpu-install
(you can do usecase=opencl if you don't want to install everything AMD drivers are offering, but I installed full package for simplicity reasons)
If that goes through without dependency issues:

Code: Select all

$clinfo
See what that shows you. It is possible clinfo will show 0 platforms, but

Code: Select all

$sudo clinfo
reports 1 platform available. If that is the case:

Code: Select all

$sudo usermod -a -G video muziqaz
$sudo usermod -a -G render muziqaz
$groups
See if output includes video and render. If not, restart the OS, then run groups again. It should report both entries now.
if neither sudo clinfo nor clinfo report any platforms

Code: Select all

$sudo apt install ocl-icd-opencl-dev
And now install fahclient (fahcontrol is dependant on old python, if you can remotely monitor this fahclient, run it without fahcontrol).
At the moment, because of fahcontrol issue, and because v8 is broken for GPU folding, I still have not confirmed if all above gets you folding, but I am getting there every evening trying different things :D :D
FAH Omega tester
Joe_H
Site Admin
Posts: 7951
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by Joe_H »

From the open source for FAHControl, this - https://github.com/cdberkstresser/fah-control - was coded to be Python 3 compatible. About a year ago someone reported that Python 3.1 required a patch, that was merged and should work.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
muziqaz
Posts: 976
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Joe_H wrote: Thu Feb 16, 2023 7:52 pm From the open source for FAHControl, this - https://github.com/cdberkstresser/fah-control - was coded to be Python 3 compatible. About a year ago someone reported that Python 3.1 required a patch, that was merged and should work.
OH, nice, I was looking for this earlier :D
FAH Omega tester
calxalot
Site Moderator
Posts: 1161
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by calxalot »

The readme is outdated.
If you don’t use their old .deb package, you need to install the dependencies, then

Code: Select all

python3 setup.py build
sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

Thanks all. The GPU is still not folding and no OpenCL detected (nor CUDA for that matter):

Code: Select all

$ cat /var/lib/fahclient/log.txt | grep 'Open\|CUDA'
10:19:52:       CUDA: Not detected
10:20:03:WU00:FS00:0xa8:     OpenMP: ON
10:20:03:WU00:FS00:0xa8:       CUDA: OFF
10:21:04:WU00:FS00:0xa8:     OpenMP: ON
10:21:04:WU00:FS00:0xa8:       CUDA: OFF
and

Code: Select all

$ clinfo
Number of platforms:				 1
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 2.1 AMD-APP (3513.0)
  Platform Name:				 AMD Accelerated Parallel Processing
  Platform Vendor:				 Advanced Micro Devices, Inc.
  Platform Extensions:				 cl_khr_icd cl_amd_event_callback 
  Platform Name:				 AMD Accelerated Parallel Processing
Steps followed: clean install 22.04 without additional drivers, reboot, install updates, reboot, download jammy AMD driver and double-click, amdgpu-install --usecase=OpenCL, usermod video / render, reboot, groups, wget fahclient_7.4.4_amd64.deb, sudo dpkg fahclient and watch it run in the browser at http://client.foldingathome.org/

Still don't see what could be missing. I'll let it finish 2 or 3 workunits and redo the whole thing without the `usecase=OpenCL` option.
Post Reply