Page 1 of 1

Linux: How fix GPU configuration issue?

Posted: Mon Mar 16, 2020 5:40 pm
by Roadpower
I'm sorry if I rushed ahead and missed a thread that has already addressed this, please link to any such thread.

PS: To make this clear in advance; FAH is not detecting my GPU.

I wasn't able to find a means to text copy FAHControl System Info so I took a screen shot instead, also keep in mind that I'm a novice *nix user so I probably won't understand complicated instructions that assume prior knowledge. I'm aware the Folding project is over loaded with new volunteers at this time but my question isn't related to those issues. I'm just trying to fix my configuration so that I am properly setup going forward for when WU's are made available.

I have video drivers installed and can play contemporary 3D games that are able to be run on a *nix platform such as Doom and Shadow of the Tomb Raider via Steam launcher.

The following is from System Reports:

Code: Select all

System: Host: OMITTED Kernel: 5.3.0-40-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 
           Desktop: Cinnamon 4.4.8 wm: muffin dm: LightDM Distro: Linux Mint 19.3 Tricia 
           base: Ubuntu 18.04 bionic 
Machine:   Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0 
           serial: <filter> UEFI: American Megatrends v: 3.50 date: 11/07/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 
           L2 cache: 4096 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 115205 
           Speed: 2142 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2144 2: 4276 3: 2145 
           4: 2435 5: 2200 6: 2200 7: 2200 8: 2200 9: 2141 10: 2425 11: 2200 12: 2199 13: 2203 
           14: 2198 15: 2140 16: 4282 
Graphics:  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X] vendor: Micro-Star MSI 
           driver: amdgpu v: kernel bus ID: 26:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.19.6 driver: amdgpu,ati 
           unloaded: fbdev,modesetting,radeon,vesa resolution: 2560x1080~60Hz 
           OpenGL: 
           renderer: AMD Radeon RX 480 Graphics (POLARIS10 DRM 3.33.0 5.3.0-40-generic LLVM 9.0.0) 
           v: 4.6 Mesa 20.1.0-devel (git-b93a195 2020-03-14 bionic-oibaf-ppa) direct render: Yes 
Audio:     Device-1: AMD Ellesmere [Radeon RX 580] vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 26:00.1 chip ID: 1002:aaf0 
           Device-2: AMD vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 28:00.4 
           chip ID: 1022:1487 
           Sound Server: ALSA v: k5.3.0-40-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI 
           driver: r8169 v: kernel port: f000 bus ID: 22:00.0 chip ID: 10ec:8168 
           IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 1.84 TiB used: 394.66 GiB (20.9%) 
           ID-1: /dev/nvme0n1 model: Sabrent size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> 
           ID-2: /dev/sda vendor: Western Digital model: WD10EZEX-00BN5A0 size: 931.51 GiB 
           speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 937.40 GiB used: 144.31 GiB (15.4%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-0 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-8:2 info: Kensington Expert Mouse Trackball type: Mouse 
           driver: hid-generic,usbhid rev: 1.1 chip ID: 047d:1020 
           Device-2: 1-9:3 info: Logitech Keyboard K120 type: Keyboard,HID 
           driver: hid-generic,usbhid rev: 1.1 chip ID: 046d:c31c 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 chip ID: 1d6b:0003 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 56.5 C mobo: N/A 
           Fan Speeds (RPM): N/A gpu: fan: 1302 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //mirrors.evowise.com/linuxmint/packages tricia main upstream import backport
           2: deb http: //ubuntu.osuosl.org/ubuntu bionic main restricted universe multiverse
           3: deb http: //ubuntu.osuosl.org/ubuntu bionic-updates main restricted universe multiverse
           4: deb http: //ubuntu.osuosl.org/ubuntu bionic-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ bionic partner
           Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list 
           1: deb-src http: //mirrors.evowise.com/linuxmint/packages tricia main upstream import backport
           2: deb-src http: //ubuntu.osuosl.org/ubuntu bionic main restricted universe multiverse
           3: deb-src http: //ubuntu.osuosl.org/ubuntu bionic-updates main restricted universe multiverse
           4: deb-src http: //ubuntu.osuosl.org/ubuntu bionic-backports main restricted universe multiverse
           5: deb-src http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           6: deb-src http: //archive.canonical.com/ubuntu/ bionic partner
           Active apt repos in: /etc/apt/sources.list.d/oibaf-graphics-drivers-bionic.list 
           1: deb http: //ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic main
Info:      Processes: 365 Uptime: 3d 3h 40m Memory: 15.65 GiB used: 4.32 GiB (27.6%) Init: systemd 
           v: 237 runlevel: 5 Compilers: gcc: 7.5.0 alt: 7 Client: Unknown python3.6 client 
           inxi: 3.0.32 
Screen shot of FAH Control system Info. https://ibb.co/0QmCNkX

Thanks in advance for assistance.

Re: Linux: How fix GPU configuration issue?

Posted: Mon Mar 16, 2020 6:05 pm
by haveyaseen
As far as I know you need to install OpenCL:

Code: Select all

sudo apt install ocl-icd-opencl-dev
And then restart the FAHClient service or process:

Code: Select all

sudo systemctl restart FAHClient

Re: Linux: How fix GPU configuration issue?

Posted: Mon Mar 16, 2020 6:16 pm
by Nathan_P
if that doesn't work try deleting gpu's .txt, there are reports that several donors have reported an empty file when first setting up the client

Re: Linux: How fix GPU configuration issue?

Posted: Mon Mar 16, 2020 6:46 pm
by Roadpower
Okay so far my progress is about half way. It appears that the installation of ocl-icd-opencl-dev was successful (thank you!), however when I attempted to restart the client, it was not found. So I did what all old Windows users do, I restarted the system. I launched FAHControl and still see the same message regarding OpenCL Not detected.

Unfortunately in my ignorance I don't know where to look for the gpu's txt file. I'm guessing that file belongs to the FAH client configuration but I am still very weak in finding my way around on a *nix system. I imagine I have to probably unhide hidden system files.

Re: Linux: How fix GPU configuration issue?

Posted: Mon Mar 16, 2020 10:08 pm
by Roadpower
Made a little more progress I think. Once again resorting to a old Windows user tactic I uninstalled fahclient and reinstalled it while rebooting the computer between operations. So the OpenCL error changed from failed to open dynamic library to clgetPlatformIDs ( ) returned -0001.

I'm researching that now, apparently that is an error that has been around a few years. I don't understand the fixes yet and will probably need help to enact them but at least it appears to be progress. I also noticed that the system was assigned a WU which it is currently crunching on (yay!). I'll leave things well enough alone until the system is in a resting state, and besides I don't know how to fix the error anyway yet.

Thanks again folks.

Re: Linux: How fix GPU configuration issue?

Posted: Tue Mar 17, 2020 10:28 am
by haveyaseen
You may have success installing the AMD client driver for OpenCL:

Code: Select all

sudo apt install amd-opencl-icd
Now this is the package name on Debian, on Linux Mint it may be called differently.
Edit: The following may also help (see viewtopic.php?p=314284#p314284).

Code: Select all

sudo apt install ocl-icd-libopencl1

Re: Linux: How fix GPU configuration issue?

Posted: Wed Jun 29, 2022 9:05 pm
by Buuuh
haveyaseen wrote: Tue Mar 17, 2020 10:28 am You may have success installing the AMD client driver for OpenCL:
Installed them after i got
OpenCL: Not detected: clGetPlatformIDs() returned -1001
in log.txt.

I even did a reboot after that.
Now log.txt doesn't even say anything anymore about my 6900xt.

Code: Select all

20:54:09:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit-avx2-256/a8-0.0.12/Core_a8.fah/FahCore_a8 -dir 00 -suffix 01 -version 706 -lifeline 4179 -checkpoint 15 -np 12
20:54:09:WU00:FS00:Started FahCore on PID 4188
20:54:09:WU00:FS00:Core PID:4192
20:54:09:WU00:FS00:FahCore 0xa8 started
20:54:10:WU00:FS00:0xa8:*********************** Log Started 2022-06-29T20:54:09Z ***********************
20:54:10:WU00:FS00:0xa8:************************** Gromacs Folding@home Core ***************************
20:54:10:WU00:FS00:0xa8:       Core: Gromacs
20:54:10:WU00:FS00:0xa8:       Type: 0xa8
20:54:10:WU00:FS00:0xa8:    Version: 0.0.12
20:54:10:WU00:FS00:0xa8:     Author: Joseph Coffland <[email protected]>
20:54:10:WU00:FS00:0xa8:  Copyright: 2020 foldingathome.org
20:54:10:WU00:FS00:0xa8:   Homepage: https://foldingathome.org/
20:54:10:WU00:FS00:0xa8:       Date: Jan 16 2021
20:54:10:WU00:FS00:0xa8:       Time: 19:24:44
20:54:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
20:54:10:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
20:54:10:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie
20:54:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
20:54:10:WU00:FS00:0xa8:       Bits: 64
20:54:10:WU00:FS00:0xa8:       Mode: Release
20:54:10:WU00:FS00:0xa8:       SIMD: avx2_256
20:54:10:WU00:FS00:0xa8:     OpenMP: ON
20:54:10:WU00:FS00:0xa8:       CUDA: OFF
20:54:10:WU00:FS00:0xa8:       Args: -dir 00 -suffix 01 -version 706 -lifeline 4188 -checkpoint 15 -np
20:54:10:WU00:FS00:0xa8:             12
20:54:10:WU00:FS00:0xa8:************************************ libFAH ************************************
20:54:10:WU00:FS00:0xa8:       Date: Jan 16 2021
20:54:10:WU00:FS00:0xa8:       Time: 19:21:38
20:54:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
20:54:10:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
20:54:10:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie
20:54:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
20:54:10:WU00:FS00:0xa8:       Bits: 64
20:54:10:WU00:FS00:0xa8:       Mode: Release
20:54:10:WU00:FS00:0xa8:************************************ CBang *************************************
20:54:10:WU00:FS00:0xa8:       Date: Jan 16 2021
20:54:10:WU00:FS00:0xa8:       Time: 19:21:24
20:54:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
20:54:10:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
20:54:10:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
20:54:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
20:54:10:WU00:FS00:0xa8:       Bits: 64
20:54:10:WU00:FS00:0xa8:       Mode: Release
20:54:10:WU00:FS00:0xa8:************************************ System ************************************
20:54:10:WU00:FS00:0xa8:        CPU: AMD Ryzen 9 5900X 12-Core Processor
20:54:10:WU00:FS00:0xa8:     CPU ID: AuthenticAMD Family 25 Model 33 Stepping 0
20:54:10:WU00:FS00:0xa8:       CPUs: 24
20:54:10:WU00:FS00:0xa8:     Memory: 31.27GiB
20:54:10:WU00:FS00:0xa8:Free Memory: 27.13GiB
20:54:10:WU00:FS00:0xa8:    Threads: POSIX_THREADS
20:54:10:WU00:FS00:0xa8: OS Version: 5.15
20:54:10:WU00:FS00:0xa8:Has Battery: false
20:54:10:WU00:FS00:0xa8: On Battery: false
20:54:10:WU00:FS00:0xa8: UTC Offset: 2
20:54:10:WU00:FS00:0xa8:        PID: 4192
20:54:10:WU00:FS00:0xa8:        CWD: /var/lib/fahclient/work
20:54:10:WU00:FS00:0xa8:********************************************************************************
20:54:10:WU00:FS00:0xa8:Project: 18406 (Run 93, Clone 7, Gen 10)
20:54:10:WU00:FS00:0xa8:Unit: 0x00000000000000000000000000000000
20:54:10:WU00:FS00:0xa8:Digital signatures verified
20:54:10:WU00:FS00:0xa8:Calling: mdrun -c frame10.gro -s frame10.tpr -x frame10.xtc -cpi state.cpt -cpt 15 -nt 12 -ntmpi 1
20:54:10:WU00:FS00:0xa8:Steps: first=100000000 total=110000000
20:54:11:WU00:FS00:0xa8:Completed 620421 out of 10000000 steps (6%)
GPU is enabled in config.xml:

Code: Select all

<config>
  <!-- Client Control -->
  <fold-anon v='true'/>

  <!-- Folding Slot Configuration -->
  <gpu v='true'/>

  <!-- HTTP Server -->
  <allow v='192.168.18.0/24'/>

  <!-- Remote Command Server -->
  <password v='---'/>

  <!-- Slot Control -->
  <power v='FULL'/>

  <!-- User Information -->
  <censored>

  <!-- Web Server -->
  <web-allow v='192.168.18.0/24'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
  <slot id='1' type='GPU'>
    <pci-bus v='13'/>
    <pci-slot v='0'/>
  </slot>
</config>
I also read the link (even if the "link" is... no words).

I do run games regularly, so the basic driver stuff ist obviously installed correctly.

Re: Linux: How fix GPU configuration issue?

Posted: Wed Jun 29, 2022 9:38 pm
by Buuuh
GLX version: 1.4
Vendor: AMD (0x1002)
Device: AMD Radeon RX 6900 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.42, 5.15.0-40-generic) (0x73bf)
Version: 22.0.1
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2

Re: Linux: How fix GPU configuration issue?

Posted: Wed Jun 29, 2022 11:04 pm
by Joe_H
Buuuh wrote: Wed Jun 29, 2022 9:05 pm I also read the link (even if the "link" is... no words).
That link has been fixed up, appears to have been broken during move of the forum to its current host and an upgrade to the forum software.

Re: Linux: How fix GPU configuration issue?

Posted: Wed Jun 29, 2022 11:13 pm
by bollix47
Try installing opencl:

sudo apt install ocl-icd-opencl-dev

You may need to reboot after installing that software.

Re: Linux: How fix GPU configuration issue?

Posted: Wed Jun 29, 2022 11:27 pm
by Buuuh
bollix47 wrote: Wed Jun 29, 2022 11:13 pm sudo apt install ocl-icd-opencl-dev
Already did that but didn't help.
During the time my post was confirmed by a moderator, it turned out, that i had to reinstall or modify the current driver installation... have no clue what it actually did.... however "reinstalling" the driver with

Code: Select all

amdgpu-install --usecase=opencl --no-dkms
after installing the opencl stuff made it work.

Still just to find out if this fucked up the perfomance or even broke the driver for playing games. I hope not.

Re: Linux: How fix GPU configuration issue?

Posted: Sat Jul 02, 2022 12:45 am
by MeeLee
Are you trying to fold on an Intel IGP?