Configuring GPU

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Configuring GPU

Post by Mavpt »

Hi everyone,

I just got into folding@home and (mostly) managed to setup everything, with the exception of my GPU.

I'm currently running Linux Mint (Ubuntu) and a GTX1070 with Nvidia's nvidia-driver-435.

Any help would be appreciated.

Thanks in advance,
Mavpt :D
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Configuring GPU

Post by bruce »

You need to install the proprietary drivers from NVidia. OpenCL is normally delivered with them. Once those APIs are running, FAH should detect your GPU and list it a couple dozen lines from the top of FAH's log, along with the active version of CUDA and OpenCL.
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

I do have the proprietary drivers from NVidia (nvidia-driver-435), however FAH does not seem to be picking it up. The FAH control doesn't recognize its existence while running FAHClient gives:

Code: Select all

00:13:48:************************* Folding@home Client *************************
00:13:48:      Website: https://foldingathome.org/
00:13:48:    Copyright: (c) 2009-2018 foldingathome.org
00:13:48:       Author: Joseph Coffland <joseph@cauldrondevelopment.com>
00:13:48:         Args: 
00:13:48:       Config: <none>
00:13:48:******************************** Build ********************************
00:13:48:      Version: 7.5.1
00:13:48:         Date: May 11 2018
00:13:48:         Time: 19:59:04
00:13:48:   Repository: Git
00:13:48:     Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
00:13:48:       Branch: master
00:13:48:     Compiler: GNU 6.3.0 20170516
00:13:48:      Options: -std=gnu++98 -O3 -funroll-loops
00:13:48:     Platform: linux2 4.14.0-3-amd64
00:13:48:         Bits: 64
00:13:48:         Mode: Release
00:13:48:******************************* System ********************************
00:13:48:          CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:13:48:       CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
00:13:48:         CPUs: 8
00:13:48:       Memory: 31.32GiB
00:13:48:  Free Memory: 25.15GiB
00:13:48:      Threads: POSIX_THREADS
00:13:48:   OS Version: 5.3
00:13:48:  Has Battery: false
00:13:48:   On Battery: false
00:13:48:   UTC Offset: 0
00:13:48:          PID: 31168
00:13:48:          CWD: /home/____/Devtools/CurecoinSource
00:13:48:           OS: Linux 5.3.0-42-generic x86_64
00:13:48:      OS Arch: AMD64
00:13:48:         GPUs: 0
00:13:48:CUDA Device 0: Platform:0 Device:0 Bus:2 Slot:0 Compute:6.1 Driver:10.1
00:13:48:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
00:13:48:               libOpenCL.so: cannot open shared object file: No such file or
00:13:48:               directory
00:13:48:***********************************************************************
00:13:48:<config>
00:13:48:  <!-- Folding Slots -->
00:13:48:</config>
00:13:48:Connecting to assign1.foldingathome.org:8080
00:13:49:Updated GPUs.txt
00:13:49:Read GPUs.txt
00:13:49:Trying to access database...
00:13:49:Successfully acquired database lock
00:13:49:Enabled folding slot 00: PAUSED cpu:6 (not configured)
00:13:49:Enabled folding slot 01: PAUSED gpu:0:GP104 [GeForce GTX 1070] 6463 (not configured)
00:13:49:ERROR:Exception: Could not bind socket to 0.0.0.0:7396: Address already in use
00:13:49:ERROR:Exception: Could not bind socket to 0.0.0.0:36330: Address already in use
Mod Edit: Added Code Tags - PantherX
JimboPalmer
Posts: 2573
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Configuring GPU

Post by JimboPalmer »

00:13:48: OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':

You do not seem to have installed OpenCL. I am not a linux user so I hope this hint helps.

"you need to manually install the ocl-icd-libopencl1 package. So a quick sudo apt install ocl-icd-libopencl1 fixed it."
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

I just installed the client on to an Ubuntu derivative, and this part:
Mavpt wrote: 00:13:48: OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
00:13:48: libOpenCL.so: cannot open shared object file: No such file or
00:13:48: directory
you solve with [c]sudo apt-get install ocl-icd-opencl-dev[/c] followed by a [c]sudo service FAHClient restart[/c] (may need/want to pause any currently running WUs before you do latter; not sure if needed).

Which would in my case not be to say that I have the GPU slot running by the way --- but that might be due the GPU on that system being a truly ancient AMD HD 5770. [c]clinfo[/c] says all's well and the GPU slot is detected and displayed but is seemingly not picking up GPU WUs, and in the log it is instead of the above quoted bit stated that "OpenCL: Not detected: clGetDeviceIDs() returned -1".

Other than that the GPU slot looks fine so I'm not sure if that's in fact an essential error display. Would be interesting to know if you get that same thing in the log and/or if your GPU queue does indeed work after installing ocl-icd-opencl-dev. You would on Nvidia certainly stand a bigger chance of things "just working" than here on this ancient AMD...

Note; the [c] stuff was supposed to introduce "inline code" display on the forum; am used to that working from another forum...
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

So I managed to get it working (I think), but the FAHControl still doesn't recognize it.

LOG FROM FAHClient:

Code: Select all

00:56:13:INFO(1):Read GPUs.txt
00:56:13:************************* Folding@home Client *************************
00:56:13:        Website: https://foldingathome.org/
00:56:13:      Copyright: (c) 2009-2018 foldingathome.org
00:56:13:         Author: Joseph Coffland <joseph@cauldrondevelopment.com>
00:56:13:           Args: 
00:56:13:         Config: /home/_/config.xml
00:56:13:******************************** Build ********************************
00:56:13:        Version: 7.5.1
00:56:13:           Date: May 11 2018
00:56:13:           Time: 19:59:04
00:56:13:     Repository: Git
00:56:13:       Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
00:56:13:         Branch: master
00:56:13:       Compiler: GNU 6.3.0 20170516
00:56:13:        Options: -std=gnu++98 -O3 -funroll-loops
00:56:13:       Platform: linux2 4.14.0-3-amd64
00:56:13:           Bits: 64
00:56:13:           Mode: Release
00:56:13:******************************* System ********************************
00:56:13:            CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:56:13:         CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
00:56:13:           CPUs: 8
00:56:13:         Memory: 31.32GiB
00:56:13:    Free Memory: 26.60GiB
00:56:13:        Threads: POSIX_THREADS
00:56:13:     OS Version: 5.3
00:56:13:    Has Battery: false
00:56:13:     On Battery: false
00:56:13:     UTC Offset: 0
00:56:13:            PID: 6224
00:56:13:            CWD: /home/_
00:56:13:             OS: Linux 5.3.0-42-generic x86_64
00:56:13:        OS Arch: AMD64
00:56:13:           GPUs: 1
00:56:13:          GPU 0: Bus:2 Slot:0 Func:0 NVIDIA:7 GP104 [GeForce GTX 1070] 6463
00:56:13:  CUDA Device 0: Platform:0 Device:0 Bus:2 Slot:0 Compute:6.1 Driver:10.1
00:56:13:OpenCL Device 0: Platform:0 Device:0 Bus:2 Slot:0 Compute:1.2 Driver:435.21
00:56:13:***********************************************************************
00:56:13:<config>
00:56:13:  <!-- Folding Slots -->
00:56:13:  <slot id='0' type='CPU'/>
00:56:13:  <slot id='1' type='GPU'/>
00:56:13:</config>
00:56:13:Trying to access database...
00:56:13:Successfully acquired database lock
00:56:13:Enabled folding slot 00: READY cpu:6
00:56:13:Enabled folding slot 01: READY gpu:0:GP104 [GeForce GTX 1070] 6463
00:56:13:ERROR:Exception: Could not bind socket to 0.0.0.0:7396: Address already in use
00:56:13:ERROR:Exception: Could not bind socket to 0.0.0.0:36330: Address already in use
00:56:13:WU01:FS01:Starting
00:56:13:WU01:FS01:Running FahCore: /usr/bin/FAHCoreWrapper /home/_/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 01 -suffix 01 -version 705 -lifeline 6224 -checkpoint 15 -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device 0 -gpu 0
00:56:13:WU01:FS01:Started FahCore on PID 6234
00:56:13:WU01:FS01:Core PID:6238
00:56:13:WU01:FS01:FahCore 0x22 started
00:56:14:WU01:FS01:0x22:*********************** Log Started 2020-03-27T00:56:13Z ***********************
00:56:14:WU01:FS01:0x22:*************************** Core22 Folding@home Core ***************************
00:56:14:WU01:FS01:0x22:       Type: 0x22
00:56:14:WU01:FS01:0x22:       Core: Core22
00:56:14:WU01:FS01:0x22:    Website: https://foldingathome.org/
00:56:14:WU01:FS01:0x22:  Copyright: (c) 2009-2018 foldingathome.org
00:56:14:WU01:FS01:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
00:56:14:WU01:FS01:0x22:             <rafal.wiewiora@choderalab.org>
00:56:14:WU01:FS01:0x22:       Args: -dir 01 -suffix 01 -version 705 -lifeline 6234 -checkpoint 15
00:56:14:WU01:FS01:0x22:             -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device
00:56:14:WU01:FS01:0x22:             0 -gpu 0
00:56:14:WU01:FS01:0x22:     Config: <none>
00:56:14:WU01:FS01:0x22:************************************ Build *************************************
00:56:14:WU01:FS01:0x22:    Version: 0.0.2
00:56:14:WU01:FS01:0x22:       Date: Dec 6 2019
00:56:14:WU01:FS01:0x22:       Time: 21:20:17
00:56:14:WU01:FS01:0x22: Repository: Git
00:56:14:WU01:FS01:0x22:   Revision: f87d92b58abdf7e6bf2e173cfbc4dc3e837c7042
00:56:14:WU01:FS01:0x22:     Branch: core22
00:56:14:WU01:FS01:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
00:56:14:WU01:FS01:0x22:    Options: -std=gnu++98 -O3 -funroll-loops
00:56:14:WU01:FS01:0x22:   Platform: linux2 4.9.87-linuxkit-aufs
00:56:14:WU01:FS01:0x22:       Bits: 64
00:56:14:WU01:FS01:0x22:       Mode: Release
00:56:14:WU01:FS01:0x22:************************************ System ************************************
00:56:14:WU01:FS01:0x22:        CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:56:14:WU01:FS01:0x22:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
00:56:14:WU01:FS01:0x22:       CPUs: 8
00:56:14:WU01:FS01:0x22:     Memory: 31.32GiB
00:56:14:WU01:FS01:0x22:Free Memory: 26.60GiB
00:56:14:WU01:FS01:0x22:    Threads: POSIX_THREADS
00:56:14:WU01:FS01:0x22: OS Version: 5.3
00:56:14:WU01:FS01:0x22:Has Battery: false
00:56:14:WU01:FS01:0x22: On Battery: false
00:56:14:WU01:FS01:0x22: UTC Offset: 0
00:56:14:WU01:FS01:0x22:        PID: 6238
00:56:14:WU01:FS01:0x22:        CWD: /home/_/work
00:56:14:WU01:FS01:0x22:         OS: Linux 5.3.0-42-generic x86_64
00:56:14:WU01:FS01:0x22:    OS Arch: AMD64
00:56:14:WU01:FS01:0x22:********************************************************************************
00:56:14:WU01:FS01:0x22:Project: 11776 (Run 0, Clone 8436, Gen 7)
00:56:14:WU01:FS01:0x22:Unit: 0x0000000c287234c95e7433754eef35bd
00:56:14:WU01:FS01:0x22:Digital signatures verified
00:56:14:WU01:FS01:0x22:Folding@home GPU Core22 Folding@home Core
00:56:14:WU01:FS01:0x22:Version 0.0.2
00:56:14:WU00:FS00:Starting
00:56:14:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /home/_/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 705 -lifeline 6224 -checkpoint 15 -np 6
00:56:14:WU00:FS00:Started FahCore on PID 6241
00:56:14:WU00:FS00:Core PID:6245
00:56:14:WU00:FS00:FahCore 0xa7 started
00:56:14:WU00:FS00:0xa7:*********************** Log Started 2020-03-27T00:56:14Z ***********************
00:56:14:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
00:56:14:WU00:FS00:0xa7:       Type: 0xa7
00:56:14:WU00:FS00:0xa7:       Core: Gromacs
00:56:14:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 705 -lifeline 6241 -checkpoint 15 -np 6
00:56:14:WU00:FS00:0xa7:************************************ CBang *************************************
00:56:14:WU00:FS00:0xa7:       Date: Nov 5 2019
00:56:14:WU00:FS00:0xa7:       Time: 06:06:57
00:56:14:WU00:FS00:0xa7:   Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9
00:56:14:WU00:FS00:0xa7:     Branch: master
00:56:14:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
00:56:14:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC
00:56:14:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
00:56:14:WU00:FS00:0xa7:       Bits: 64
00:56:14:WU00:FS00:0xa7:       Mode: Release
00:56:14:WU00:FS00:0xa7:************************************ System ************************************
00:56:14:WU00:FS00:0xa7:        CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:56:14:WU00:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
00:56:14:WU00:FS00:0xa7:       CPUs: 8
00:56:14:WU00:FS00:0xa7:     Memory: 31.32GiB
00:56:14:WU00:FS00:0xa7:Free Memory: 26.28GiB
00:56:14:WU00:FS00:0xa7:    Threads: POSIX_THREADS
00:56:14:WU00:FS00:0xa7: OS Version: 5.3
00:56:14:WU00:FS00:0xa7:Has Battery: false
00:56:14:WU00:FS00:0xa7: On Battery: false
00:56:14:WU00:FS00:0xa7: UTC Offset: 0
00:56:14:WU00:FS00:0xa7:        PID: 6245
00:56:14:WU00:FS00:0xa7:        CWD: /home/_/work
00:56:14:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
00:56:14:WU00:FS00:0xa7:    Version: 0.0.18
00:56:14:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
00:56:14:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
00:56:14:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
00:56:14:WU00:FS00:0xa7:       Date: Nov 5 2019
00:56:14:WU00:FS00:0xa7:       Time: 06:13:26
00:56:14:WU00:FS00:0xa7:   Revision: 490c9aa2957b725af319379424d5c5cb36efb656
00:56:14:WU00:FS00:0xa7:     Branch: master
00:56:14:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
00:56:14:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie
00:56:14:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
00:56:14:WU00:FS00:0xa7:       Bits: 64
00:56:14:WU00:FS00:0xa7:       Mode: Release
00:56:14:WU00:FS00:0xa7:************************************ Build *************************************
00:56:14:WU00:FS00:0xa7:       SIMD: avx_256
00:56:14:WU00:FS00:0xa7:********************************************************************************
00:56:14:WU00:FS00:0xa7:Project: 13850 (Run 0, Clone 27565, Gen 2)
00:56:14:WU00:FS00:0xa7:Unit: 0x00000005287234c95e788c4ebb8f04fb
00:56:14:WU00:FS00:0xa7:Digital signatures verified
00:56:14:WU00:FS00:0xa7:Calling: mdrun -s frame2.tpr -o frame2.trr -x frame2.xtc -e frame2.edr -cpi state.cpt -cpt 15 -nt 6
00:56:14:WU00:FS00:0xa7:Steps: first=1000000 total=500000
LOG FROM FAHCONTROL:

Code: Select all

00:53:07:Saving configuration to /etc/fahclient/config.xml
00:53:07:<config>
00:53:07:  <!-- Client Control -->
00:53:07:  <fold-anon v='true'/>
00:53:07:
00:53:07:  <!-- Folding Slot Configuration -->
00:53:07:  <gpu v='false'/>
00:53:07:
00:53:07:  <!-- Network -->
00:53:07:  <proxy v=':8080'/>
00:53:07:
00:53:07:  <!-- User Information -->
00:53:07:  <passkey v='********************************'/>
00:53:07:  <team v='224497'/>
00:53:07:  <user v='Mavpt'/>
00:53:07:
00:53:07:  <!-- Folding Slots -->
00:53:07:  <slot id='0' type='CPU'/>
00:53:07:</config>
00:53:30:Saving configuration to /etc/fahclient/config.xml
00:53:30:<config>
00:53:30:  <!-- Client Control -->
00:53:30:  <fold-anon v='true'/>
00:53:30:
00:53:30:  <!-- Folding Slot Configuration -->
00:53:30:  <gpu v='false'/>
00:53:30:
00:53:30:  <!-- Network -->
00:53:30:  <proxy v=':8080'/>
00:53:30:
00:53:30:  <!-- User Information -->
00:53:30:  <passkey v='********************************'/>
00:53:30:  <team v='224497'/>
00:53:30:  <user v='Mavpt'/>
00:53:30:
00:53:30:  <!-- Folding Slots -->
00:53:30:  <slot id='0' type='CPU'/>
00:53:30:</config>
00:54:08:WU00:FS00:Connecting to 65.254.110.245:8080
00:54:09:WARNING:WU00:FS00:Failed to get assignment from '65.254.110.245:8080': No WUs available for this configuration
00:54:09:WU00:FS00:Connecting to 18.218.241.186:80
00:54:09:WU00:FS00:Assigned to work server 13.90.152.57
00:54:09:WU00:FS00:Requesting new work unit for slot 00: READY cpu:7 from 13.90.152.57
00:54:09:WU00:FS00:Connecting to 13.90.152.57:8080
00:55:18:WU00:FS00:Downloading 4.50MiB
00:55:20:WU00:FS00:Download complete
00:55:20:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:13860 run:0 clone:12702 gen:11 core:0xa7 unit:0x0000000d0d5a98395e73116b26911911
00:55:20:WU00:FS00:Downloading core from http://cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah
00:55:20:WU00:FS00:Connecting to cores.foldingathome.org:80
00:55:21:WU00:FS00:FahCore a7: Downloading 8.91MiB
00:55:23:WU00:FS00:FahCore a7: Download complete
00:55:23:WU00:FS00:Valid core signature
00:55:23:WU00:FS00:Unpacked 20.97MiB to cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7
00:55:23:WU00:FS00:Starting
00:55:23:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 705 -lifeline 4757 -checkpoint 15 -np 7
00:55:23:WU00:FS00:Started FahCore on PID 6194
00:55:23:WU00:FS00:Core PID:6198
00:55:23:WU00:FS00:FahCore 0xa7 started
00:55:24:WU00:FS00:0xa7:*********************** Log Started 2020-03-27T00:55:23Z ***********************
00:55:24:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
00:55:24:WU00:FS00:0xa7:       Type: 0xa7
00:55:24:WU00:FS00:0xa7:       Core: Gromacs
00:55:24:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 705 -lifeline 6194 -checkpoint 15 -np 7
00:55:24:WU00:FS00:0xa7:************************************ CBang *************************************
00:55:24:WU00:FS00:0xa7:       Date: Nov 5 2019
00:55:24:WU00:FS00:0xa7:       Time: 06:06:57
00:55:24:WU00:FS00:0xa7:   Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9
00:55:24:WU00:FS00:0xa7:     Branch: master
00:55:24:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
00:55:24:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC
00:55:24:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
00:55:24:WU00:FS00:0xa7:       Bits: 64
00:55:24:WU00:FS00:0xa7:       Mode: Release
00:55:24:WU00:FS00:0xa7:************************************ System ************************************
00:55:24:WU00:FS00:0xa7:        CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:55:24:WU00:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
00:55:24:WU00:FS00:0xa7:       CPUs: 8
00:55:24:WU00:FS00:0xa7:     Memory: 31.32GiB
00:55:24:WU00:FS00:0xa7:Free Memory: 26.75GiB
00:55:24:WU00:FS00:0xa7:    Threads: POSIX_THREADS
00:55:24:WU00:FS00:0xa7: OS Version: 5.3
00:55:24:WU00:FS00:0xa7:Has Battery: false
00:55:24:WU00:FS00:0xa7: On Battery: false
00:55:24:WU00:FS00:0xa7: UTC Offset: 0
00:55:24:WU00:FS00:0xa7:        PID: 6198
00:55:24:WU00:FS00:0xa7:        CWD: /var/lib/fahclient/work
00:55:24:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
00:55:24:WU00:FS00:0xa7:    Version: 0.0.18
00:55:24:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
00:55:24:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
00:55:24:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
00:55:24:WU00:FS00:0xa7:       Date: Nov 5 2019
00:55:24:WU00:FS00:0xa7:       Time: 06:13:26
00:55:24:WU00:FS00:0xa7:   Revision: 490c9aa2957b725af319379424d5c5cb36efb656
00:55:24:WU00:FS00:0xa7:     Branch: master
00:55:24:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
00:55:24:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie
00:55:24:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
00:55:24:WU00:FS00:0xa7:       Bits: 64
00:55:24:WU00:FS00:0xa7:       Mode: Release
00:55:24:WU00:FS00:0xa7:************************************ Build *************************************
00:55:24:WU00:FS00:0xa7:       SIMD: avx_256
00:55:24:WU00:FS00:0xa7:********************************************************************************
00:55:24:WU00:FS00:0xa7:Project: 13860 (Run 0, Clone 12702, Gen 11)
00:55:24:WU00:FS00:0xa7:Unit: 0x0000000d0d5a98395e73116b26911911
00:55:24:WU00:FS00:0xa7:Reading tar file core.xml
00:55:24:WU00:FS00:0xa7:Reading tar file frame11.tpr
00:55:24:WU00:FS00:0xa7:Digital signatures verified
00:55:24:WU00:FS00:0xa7:Reducing thread count from 7 to 6 to avoid domain decomposition by a prime number > 3
00:55:24:WU00:FS00:0xa7:Calling: mdrun -s frame11.tpr -o frame11.trr -x frame11.xtc -e frame11.edr -cpt 15 -nt 6
00:55:24:WU00:FS00:0xa7:Steps: first=1375000 total=125000
00:55:24:WU00:FS00:0xa7:Completed 1 out of 125000 steps (0%)
00:56:04:WU00:FS00:0xa7:Completed 1250 out of 125000 steps (1%)
Mod Edit: Added Code Tags - PantherX
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

Mavpt wrote:So I managed to get it working (I think) [ ... ]
So what did you do?

In any case, it might be the case that you need/want to setup the client from scratch with e.g. fahclient --configure or, better certainly if you already have a CPU WU running, manually add a GPU slot through FAHControl -> Configure -> Slots -> Add. I.e., just move the selection in that dialogue from CPU to GPU and click OK. Again may or may not have to restart after that.
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

Yujah wrote: So what did you do?
Followed your advice in:
Yujah wrote: you solve with [c]sudo apt-get install ocl-icd-opencl-dev[/c] followed by a [c]sudo service FAHClient restart[/c] (may need/want to pause any currently running WUs before you do latter; not sure if needed).
Yujah wrote: In any case, it might be the case that you need/want to setup the client from scratch with e.g. fahclient --configure or, better certainly if you already have a CPU WU running, manually add a GPU slot through FAHControl -> Configure -> Slots -> Add. I.e., just move the selection in that dialogue from CPU to GPU and click OK. Again may or may not have to restart after that.
Already tried to do so both ways, always getting the same result. It works (I believe) when I run sudo FAHClient from the terminal, but isn't recognized (even when I attempt to add it in FAHControl -> Configure -> Slots -> Add using the default (-1) configurations).

Even went as far as reinstalling the whole thing but without any success.
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

Ah. Well, that's a little unfortunate, as I believed would be able to assist there, having done much the same earlier this evening. As to the reinstall, did you "sudo apt-get purge fahclient" to also remove current configuration rather than just "sudo apt-get remove fahclient" or similar?

And, yes, I do suppose you'd first need to stop the current FAHClient ("sudo service FAHClient stop") and then configure as root, "sudo FAHClient --configure", before starting it again; "sudo service FAHClient start". But.... certainly if you purge rather than just remove a reinstall should do the same thing, so if that's not working, seems I'll unfortunately not be able to assist after all.
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

Yujah wrote:"sudo apt-get purge fahclient"
Did that for fahcontrol and it did the trick. :D
Thank you very much for your help. I'm still very much new to Linux and still getting used to all the... details lets say :)
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

I'm very new to FAHClient, and not so much to Linux :-)

Very good to know that it now works. If you can, please let me/us know if the GPU slot now also in fact picks up WUs; if it does, I'll take that "clGetDeviceIDs() returned -1" thing that I myself had more seriously...
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

Yujah wrote: If you can, please let me/us know if the GPU slot now also in fact picks up WUs; if it does, I'll take that "clGetDeviceIDs() returned -1" thing that I myself had more seriously...
Both the CPU and the GPU are showing progress on FAHControl if that's what you're asking.
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

It is. Darn; that means I get to debug OpenCL on an ancient AMD chip on Linux. Thanks :(
Mavpt
Posts: 7
Joined: Thu Mar 26, 2020 11:56 pm

Re: Configuring GPU

Post by Mavpt »

Yujah wrote:It is. Darn; that means I get to debug OpenCL on an ancient AMD chip on Linux. Thanks :(
You're welcome. Good luck!
Yujah
Posts: 43
Joined: Tue Mar 24, 2020 2:36 pm

Re: Configuring GPU

Post by Yujah »

For the next poor sod that hits on this thread trying to get his AMD HD 5770 or more generally HD 5000 series card folding: after (on Debian/Ubuntu/Mint/...)

- installing ocl-icd-libopencl1, ocl-icd-opencl-dev and mesa-opencl-icd
- creating a file /etc/default/fahclient consisting of "USER=root" so as to run FAHClient as root
- although I don't think it's necessary other than for auto-configuration downloading http://fah-web.stanford.edu/file-releas ... c/GPUs.txt to /var/lib/fahclient/
- if not auto-configuring manually adding a GPU slot through FAHControl -> Configure -> Slots
- restarting with "sudo service FAHClient restart"

... FAHClient itself feels everything hunky dory. The log says e.g.

******************************* System ********************************
[ ... ]
GPUs: 1
GPU 0: Bus:3 Slot:0 Func:0 AMD:4 Juniper [Radeon HD 5700 Series]
[ ... ]
OpenCL Device 0: Platform:0 Device:0 Bus:NA Slot:NA Compute:1.1 Driver:19.2
***********************************************************************

and the GPU slot appears fully functional. Upon requesting a WU it is however assigned 192.0.2.1 as its work server; an unroutable and for documentation and examples reserved IP address. It seems that the assignment server therethrough basically says "unsupported GPU" --- although I note that the above displayed GPU string "Juniper [Radeon HD 5700 Series]" does in fact appear in the at the time of writing current GPUs.txt.

What appears to be the eventual issue is that the HD 5770 does not support OpenCL double-precision; that with that generation of AMD GPUs only the top models in the 5000 and 6000 series do, the 5800 and (supposedly) 5900 series and 6900 series if I'm not mistaken, and that current GPU WUs (almost?) universally do require double-precision.

EDIT: Very specifically, I believe it's HD 5830+ (TeraScale 2), HD 6930+ (TeraScale 3)

As in, no dice; isn't going to work on anything lower than 5800 series certainly.
Last edited by Yujah on Sun Mar 29, 2020 2:42 pm, edited 4 times in total.
Post Reply