Unbuntu 18.04 and AMD driver -- need help

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

Re: Unbuntu 18.04 and AMD driver -- need help

Postby MeeLee » Sat May 23, 2020 5:50 pm

Sometimes uninstalling FAH, and do
Code: Select all
sudo apt purge fah*

might do the trick.
FAH best configures itself if everything is working the way it should (OpenCL, GPU drivers), before installing FAH.

If your OS can't handle the wildcard, you'll have to do purge on all of them:
Code: Select all
sudo apt purge fahclient
sudo apt purge fahcontrol
sudo apt purge fahviewer


Or do:
Code: Select all
sudo apt autoremove fahclient

and same for viewer, and control.

Then for safety, you can also try one (or all) of the following commands:
Code: Select all
 sudo apt-get update –-fix-missing
 sudo dpkg --configure -a


Try if your GPUs work the way they should (if Furmark makes sense, instead of slideshows) and if games look like they get the framerates you'd expect them to have on that type of GPU; then try reinstalling fahcontrol and fahclient, and re-set up everything in FAH.

Remember to enable GPUs in advanced settings: "GPU = true"
Restart the client, by typing

Code: Select all
sudo /etc/init.d/fahclient start

if this doesn't work, use systemd:
Code: Select all
sudo systemctl start fahclient.service
MeeLee
 
Posts: 858
Joined: Tue Feb 19, 2019 11:16 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby _The_Editor_ » Sun May 24, 2020 2:37 pm

rdavis852 wrote:I found this tutorial.... Going to give it a try. For AMD GPU's only.
https://linustechtips.com/main/topic/11 ... n-windows/


That tutorial is written for Arch based distros, your Ubuntu distro is a Debian base.

If you want to move over to Arch/Manjaro, by all means use that guide. But from looking at your log/experience so far I think you're having the exact same permission issue I was having with my RX 480 in Ubuntu.

So stop the service:

Code: Select all
$ sudo systemctl stop FAHClient.service


Modify the service to change the user back to fahclient:

/etc/systemd/system/FAHClient.service

Code: Select all
user=fahclient


Then add the `fahclient` to the video users group:
Code: Select all
$ sudo usermod -a -G video fahclient
$ sudo usermod -g video fahclient


Reload the systemd daemon, then restart the FAHClient.service:
Code: Select all
$ sudo systemctl daemon-reload
$ sudo systemctl start FAHClient.service


That fixed it for me, and I was in the exact same position as you with the exact same error messages in the log. Oh and I set opencl-index manually to 0 in the F@H config.
_The_Editor_
 
Posts: 15
Joined: Mon May 18, 2020 10:38 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby mr_raider » Thu May 28, 2020 6:47 pm

Got my rx 5700 working and it was a pain. The three key elements for me:


1. Install the OpenCL driver from the amdgpu-pro package on AMDs website. I needed to hack os-release file to make it look like ubuntu.

2. Manually edit the service to run as "root" not fahclient. In my case it was not in systemd but rather in /etc/init.d (KDE Neon based on ubuntu 18.04)

3. Configure the GPU slot manually, to use OpenCL ID as "0", not -1.

Now getting 900k PPD. This thing is beast compared to my previous 1070
mr_raider
 
Posts: 24
Joined: Tue Jan 26, 2010 10:21 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby MeeLee » Sat May 30, 2020 3:05 am

mr_raider wrote:Got my rx 5700 working and it was a pain. The three key elements for me:


1. Install the OpenCL driver from the amdgpu-pro package on AMDs website. I needed to hack os-release file to make it look like ubuntu.

2. Manually edit the service to run as "root" not fahclient. In my case it was not in systemd but rather in /etc/init.d (KDE Neon based on ubuntu 18.04)

3. Configure the GPU slot manually, to use OpenCL ID as "0", not -1.

Now getting 900k PPD. This thing is beast compared to my previous 1070

The RX5700 should be faster than an RTX 2060.
The 2060 gets 1.04M PPD. The RX 5700 should get about the same, ~1.05M PPD.

I'm thinking you're running via emulation or virtualization?
Or perhaps it's CPU, or PCIE limited?
Also, did you optimize all virtualization options in bios?
MeeLee
 
Posts: 858
Joined: Tue Feb 19, 2019 11:16 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby mr_raider » Sat Jun 06, 2020 5:38 pm

MeeLee wrote:
mr_raider wrote:Got my rx 5700 working and it was a pain. The three key elements for me:


1. Install the OpenCL driver from the amdgpu-pro package on AMDs website. I needed to hack os-release file to make it look like ubuntu.

2. Manually edit the service to run as "root" not fahclient. In my case it was not in systemd but rather in /etc/init.d (KDE Neon based on ubuntu 18.04)

3. Configure the GPU slot manually, to use OpenCL ID as "0", not -1.

Now getting 900k PPD. This thing is beast compared to my previous 1070

The RX5700 should be faster than an RTX 2060.
The 2060 gets 1.04M PPD. The RX 5700 should get about the same, ~1.05M PPD.

I'm thinking you're running via emulation or virtualization?
Or perhaps it's CPU, or PCIE limited?
Also, did you optimize all virtualization options in bios?


No it's a native Linux install. No VM. Some units do get 1 million. CPU is a Ryzen 2700x. I can always try to turn off the CPU clients and see if I get more.

I usually run the CPU client 24/7. I run the GPu client at night when the temp drops below 20C.
mr_raider
 
Posts: 24
Joined: Tue Jan 26, 2010 10:21 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby MeeLee » Sat Jun 06, 2020 7:04 pm

I would certainly try to at least have 1 core available per 1 or 2 GPUs.
Otherwise, the GPU will need to share bandwidth with a CPU WU on a thread. This is not recommended.
MeeLee
 
Posts: 858
Joined: Tue Feb 19, 2019 11:16 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby mr_raider » Sun Jun 07, 2020 4:35 pm

MeeLee wrote:I would certainly try to at least have 1 core available per 1 or 2 GPUs.
Otherwise, the GPU will need to share bandwidth with a CPU WU on a thread. This is not recommended.


I've set it to medium, which only uses 14 threads (out of 16) for the CPU clients. That's on physical core for GPU.

I also have the option of using two Open CL implementations:

Code: Select all
r_raider@HK-47:~$ clinfo
Number of platforms                               2
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 20.1.0 - kisak-mesa PPA
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3075.10)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             AMD

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD Radeon RX 5700 (NAVI10, DRM 3.36.0, 5.3.0-53-generic, LLVM 10.0.0)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 20.1.0 - kisak-mesa PPA
  Driver Version                                  20.1.0 - kisak-mesa PPA
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Max compute units                               36
  Max clock frequency                             1850MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256


Right now my OpenCL index is set to 0. Maybe the other opencl library is faster?
mr_raider
 
Posts: 24
Joined: Tue Jan 26, 2010 10:21 pm

Re: Unbuntu 18.04 and AMD driver -- need help

Postby mr_raider » Sat Jun 27, 2020 9:04 pm

MeeLee wrote:
mr_raider wrote:Got my rx 5700 working and it was a pain. The three key elements for me:


1. Install the OpenCL driver from the amdgpu-pro package on AMDs website. I needed to hack os-release file to make it look like ubuntu.

2. Manually edit the service to run as "root" not fahclient. In my case it was not in systemd but rather in /etc/init.d (KDE Neon based on ubuntu 18.04)

3. Configure the GPU slot manually, to use OpenCL ID as "0", not -1.

Now getting 900k PPD. This thing is beast compared to my previous 1070

The RX5700 should be faster than an RTX 2060.
The 2060 gets 1.04M PPD. The RX 5700 should get about the same, ~1.05M PPD.

I'm thinking you're running via emulation or virtualization?
Or perhaps it's CPU, or PCIE limited?
Also, did you optimize all virtualization options in bios?


Kernel 5.7 installed and now get 1.2m PPD on some projects. Not bad
mr_raider
 
Posts: 24
Joined: Tue Jan 26, 2010 10:21 pm

Previous

Return to Problems with AMD/ATI drivers

Who is online

Users browsing this forum: No registered users and 3 guests

cron