NVIDIA works under Ubuntu 20.04

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

Moderators: Site Moderators, FAHC Science Team

Post Reply
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

NVIDIA works under Ubuntu 20.04

Post by ng0177 »

Hi, under Ubuntu 20.04, I downloaded from https://foldingathome.org/beta/ fahclient_7.6.10_amd64.deb which does not use systemctl but works and

Code: Select all

sudo gdebi fahclient_nnn.deb
and changed <gpu v='true'/> from false to true and <slot id='0' type='GPU'/> from CPU to GPU

Code: Select all

sudo nano /etc/fahclient/config.xml
<config>
  <!-- Client Control -->
  <fold-anon v='true'/>

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

  <!-- User Information -->
  <team v='251999'/>
  <user v='ng0177'/>

  <!-- Folding Slots -->
  <slot id='0' type='GPU'/>
</config>
It works! Here is the log. Did I make any mistakes?

Code: Select all

*********************** Log Started 2020-04-19T10:40:09Z ***********************
10:40:09:****************************** FAHClient ******************************
10:40:09:        Version: 7.6.10
10:40:09:         Author: Joseph Coffland <joseph@cauldrondevelopment.com>
10:40:09:      Copyright: 2020 foldingathome.org
10:40:09:       Homepage: https://foldingathome.org/
10:40:09:           Date: Apr 18 2020
10:40:09:           Time: 03:31:35
10:40:09:       Revision: 05835e6a32e37abf3c82dbb9d2050d906637a345
10:40:09:         Branch: master
10:40:09:       Compiler: GNU 8.3.0
10:40:09:        Options: -std=c++11 -ffunction-sections -fdata-sections -O3
10:40:09:                 -funroll-loops -fno-pie
10:40:09:       Platform: linux2 4.19.0-5-amd64
10:40:09:           Bits: 64
10:40:09:           Mode: Release
10:40:09:           Args: --child /etc/fahclient/config.xml --run-as fahclient
10:40:09:                 --pid-file=/var/run/fahclient.pid --daemon
10:40:09:         Config: /etc/fahclient/config.xml
10:40:09:******************************** CBang ********************************
10:40:09:           Date: Apr 17 2020
10:40:09:           Time: 18:10:13
10:40:09:       Revision: 2fb0be7809c5e45287a122ca5fbc15b5ae859a3b
10:40:09:         Branch: master
10:40:09:       Compiler: GNU 8.3.0
10:40:09:        Options: -std=c++11 -ffunction-sections -fdata-sections -O3
10:40:09:                 -funroll-loops -fno-pie -fPIC
10:40:09:       Platform: linux2 4.19.0-5-amd64
10:40:09:           Bits: 64
10:40:09:           Mode: Release
10:40:09:******************************* System ********************************
10:40:09:            CPU: AMD Ryzen 7 1700 Eight-Core Processor
10:40:09:         CPU ID: AuthenticAMD Family 23 Model 1 Stepping 1
10:40:09:           CPUs: 8
10:40:09:         Memory: 31.37GiB
10:40:09:    Free Memory: 30.41GiB
10:40:09:        Threads: POSIX_THREADS
10:40:09:     OS Version: 5.4
10:40:09:    Has Battery: false
10:40:09:     On Battery: false
10:40:09:     UTC Offset: 2
10:40:09:            PID: 1612
10:40:09:            CWD: /var/lib/fahclient
10:40:09:             OS: Linux 5.4.0-24-generic x86_64
10:40:09:        OS Arch: AMD64
10:40:09:           GPUs: 1
10:40:09:          GPU 0: Bus:29 Slot:0 Func:0 NVIDIA:7 GP106 [GeForce GTX 1060 6GB] 4372
10:40:09:  CUDA Device 0: Platform:0 Device:0 Bus:29 Slot:0 Compute:6.1 Driver:10.2
10:40:09:OpenCL Device 0: Platform:0 Device:0 Bus:29 Slot:0 Compute:1.2 Driver:440.64
10:40:09:******************************* libFAH ********************************
10:40:09:           Date: Apr 15 2020
10:40:09:           Time: 21:43:24
10:40:09:       Revision: 216968bc7025029c841ed6e36e81a03a316890d3
10:40:09:         Branch: master
10:40:09:       Compiler: GNU 8.3.0
10:40:09:        Options: -std=c++11 -ffunction-sections -fdata-sections -O3
10:40:09:                 -funroll-loops -fno-pie
10:40:09:       Platform: linux2 4.19.0-5-amd64
10:40:09:           Bits: 64
10:40:09:           Mode: Release
10:40:09:***********************************************************************
10:40:09:<config>
10:40:09:  <!-- Client Control -->
10:40:09:  <fold-anon v='true'/>
10:40:09:
10:40:09:  <!-- Folding Slot Configuration -->
10:40:09:  <cause v='COVID_19'/>
10:40:09:
10:40:09:  <!-- User Information -->
10:40:09:  <team v='251999'/>
10:40:09:  <user v='ng0177'/>
10:40:09:
10:40:09:  <!-- Folding Slots -->
10:40:09:  <slot id='0' type='GPU'/>
10:40:09:</config>
10:40:09:Trying to access database...
10:40:09:Successfully acquired database lock
10:40:09:Enabled folding slot 00: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372
[93m10:40:09:WARNING:WU00:No longer matches Slot 0's configuration and there are no other matching slots, dumping[0m
10:40:09:WU00:FS00:Sending unit results: id:00 state:SEND error:DUMPED project:14616 run:1777 clone:0 gen:35 core:0xa7 unit:0x000000289bf7a4d65e83237243786149
10:40:09:WU00:FS00:Connecting to 155.247.164.214:8080
10:40:09:WU01:FS00:Connecting to 65.254.110.245:80
10:40:10:WU00:FS00:Server responded WORK_ACK (400)
10:40:10:WU00:FS00:Cleaning up
[93m10:40:10:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:40:10:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:40:11:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
10:40:11:WU01:FS00:Connecting to 65.254.110.245:80
[93m10:40:12:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:40:12:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:40:13:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
[91m10:40:13:ERROR:WU01:FS00:Exception: Could not get an assignment[0m
10:40:13:WU01:FS00:Connecting to 65.254.110.245:80
[93m10:40:14:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:40:14:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:40:14:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
10:40:14:WU01:FS00:Connecting to 65.254.110.245:80
[93m10:40:15:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:40:15:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:40:15:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
[91m10:40:15:ERROR:WU01:FS00:Exception: Could not get an assignment[0m
10:41:13:WU01:FS00:Connecting to 65.254.110.245:80
[93m10:41:14:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:41:14:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:41:14:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
10:41:14:WU01:FS00:Connecting to 65.254.110.245:80
[93m10:41:15:WARNING:WU01:FS00:Failed to get assignment from '65.254.110.245:80': No WUs available for this configuration[0m
10:41:15:WU01:FS00:Connecting to 18.218.241.186:80
[93m10:41:15:WARNING:WU01:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration[0m
[91m10:41:15:ERROR:WU01:FS00:Exception: Could not get an assignment[0m
10:42:50:WU01:FS00:Connecting to 65.254.110.245:80
10:42:51:WU01:FS00:Assigned to work server 140.163.4.241
10:42:51:WU01:FS00:Requesting new work unit for slot 00: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 140.163.4.241
10:42:51:WU01:FS00:Connecting to 140.163.4.241:8080
10:43:08:WU01:FS00:Downloading 11.98MiB
10:43:14:WU01:FS00:Download 75.14%
10:43:16:WU01:FS00:Download complete
10:43:16:WU01:FS00:Received Unit: id:01 state:DOWNLOAD error:NO_ERROR project:11741 run:0 clone:1475 gen:51 core:0x22 unit:0x000000548ca304f15e67d8098f801396
10:43:16:WU01:FS00:Downloading core from http://cores.foldingathome.org/v7/lin/64bit/Core_22.fah
10:43:16:WU01:FS00:Connecting to cores.foldingathome.org:80
10:43:16:WU01:FS00:FahCore 22: Downloading 3.58MiB
10:43:17:WU01:FS00:FahCore 22: Download complete
10:43:17:WU01:FS00:Valid core signature
10:43:17:WU01:FS00:Unpacked 9.30MiB to cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22
10:43:17:WU01:FS00:Starting
10:43:17:WU01:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 01 -suffix 01 -version 706 -lifeline 1612 -checkpoint 15 -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device 0 -gpu 0
10:43:17:WU01:FS00:Started FahCore on PID 4361
10:43:17:WU01:FS00:Core PID:4365
10:43:17:WU01:FS00:FahCore 0x22 started
10:43:18:WU01:FS00:0x22:*********************** Log Started 2020-04-19T10:43:17Z ***********************
10:43:18:WU01:FS00:0x22:*************************** Core22 Folding@home Core ***************************
10:43:18:WU01:FS00:0x22:       Type: 0x22
10:43:18:WU01:FS00:0x22:       Core: Core22
10:43:18:WU01:FS00:0x22:    Website: https://foldingathome.org/
10:43:18:WU01:FS00:0x22:  Copyright: (c) 2009-2018 foldingathome.org
10:43:18:WU01:FS00:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
10:43:18:WU01:FS00:0x22:             <rafal.wiewiora@choderalab.org>
10:43:18:WU01:FS00:0x22:       Args: -dir 01 -suffix 01 -version 706 -lifeline 4361 -checkpoint 15
10:43:18:WU01:FS00:0x22:             -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device
10:43:18:WU01:FS00:0x22:             0 -gpu 0
10:43:18:WU01:FS00:0x22:     Config: <none>
10:43:18:WU01:FS00:0x22:************************************ Build *************************************
10:43:18:WU01:FS00:0x22:    Version: 0.0.2
10:43:18:WU01:FS00:0x22:       Date: Dec 6 2019
10:43:18:WU01:FS00:0x22:       Time: 21:20:17
10:43:18:WU01:FS00:0x22: Repository: Git
10:43:18:WU01:FS00:0x22:   Revision: f87d92b58abdf7e6bf2e173cfbc4dc3e837c7042
10:43:18:WU01:FS00:0x22:     Branch: core22
10:43:18:WU01:FS00:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
10:43:18:WU01:FS00:0x22:    Options: -std=gnu++98 -O3 -funroll-loops
10:43:18:WU01:FS00:0x22:   Platform: linux2 4.9.87-linuxkit-aufs
10:43:18:WU01:FS00:0x22:       Bits: 64
10:43:18:WU01:FS00:0x22:       Mode: Release
10:43:18:WU01:FS00:0x22:************************************ System ************************************
10:43:18:WU01:FS00:0x22:        CPU: AMD Ryzen 7 1700 Eight-Core Processor
10:43:18:WU01:FS00:0x22:     CPU ID: AuthenticAMD Family 23 Model 1 Stepping 1
10:43:18:WU01:FS00:0x22:       CPUs: 8
10:43:18:WU01:FS00:0x22:     Memory: 31.37GiB
10:43:18:WU01:FS00:0x22:Free Memory: 26.70GiB
10:43:18:WU01:FS00:0x22:    Threads: POSIX_THREADS
10:43:18:WU01:FS00:0x22: OS Version: 5.4
10:43:18:WU01:FS00:0x22:Has Battery: false
10:43:18:WU01:FS00:0x22: On Battery: false
10:43:18:WU01:FS00:0x22: UTC Offset: 2
10:43:18:WU01:FS00:0x22:        PID: 4365
10:43:18:WU01:FS00:0x22:        CWD: /var/lib/fahclient/work
10:43:18:WU01:FS00:0x22:         OS: Linux 5.4.0-24-generic x86_64
10:43:18:WU01:FS00:0x22:    OS Arch: AMD64
10:43:18:WU01:FS00:0x22:********************************************************************************
10:43:18:WU01:FS00:0x22:Project: 11741 (Run 0, Clone 1475, Gen 51)
10:43:18:WU01:FS00:0x22:Unit: 0x000000548ca304f15e67d8098f801396
10:43:18:WU01:FS00:0x22:Reading tar file core.xml
10:43:18:WU01:FS00:0x22:Reading tar file integrator.xml
10:43:18:WU01:FS00:0x22:Reading tar file state.xml
10:43:19:WU01:FS00:0x22:Reading tar file system.xml
10:43:20:WU01:FS00:0x22:Digital signatures verified
10:43:20:WU01:FS00:0x22:Folding@home GPU Core22 Folding@home Core
10:43:20:WU01:FS00:0x22:Version 0.0.2
10:43:34:WU01:FS00:0x22:Completed 0 out of 1000000 steps (0%)
10:43:34:WU01:FS00:0x22:Temperature control disabled. Requirements: single Nvidia GPU, tmax must be < 110 and twait >= 900
Last edited by Joe_H on Sat Jul 11, 2020 2:16 pm, edited 2 times in total.
Reason: Restored original Subject after splitting off topic change
jonault
Posts: 216
Joined: Fri Dec 14, 2007 9:53 pm

Re: NVIDIA works under Ubuntu 20.04

Post by jonault »

By changing slot 0 from a CPU slot to a GPU slot while a CPU work unit was in progress, you caused the client to throw away the CPU work unit:

Code: Select all

[10:40:09:WARNING:WU00:No longer matches Slot 0's configuration and there are no other matching slots, dumping
[10:40:09:WU00:FS00:Sending unit results: id:00 state:SEND error:DUMPED project:14616 run:1777 clone:0 gen:35 core:0xa7 unit:0x000000289bf7a4d65e83237243786149
It would have been better to wait until the CPU work unit was complete before making the change.

And you won't be getting any more CPU work units. Is that what you intended? Instead of changing slot 0 to a GPU you could have created a new GPU slot, then you'd be folding on both CPU and GPU.

As far as the GPU goes, things seem to be working fine.

Finally, it looks like you don't have a passkey set up. You should get one, you'll get more points.
Image
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

Thanks for that. Yes, I would like to use both GPU and CPU and modified /etc/fahclient/config.xml accordingly but a reboot is needed to take effect.

Code: Select all

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

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

  <!-- User Information -->
  <passkey v='nnn'/>
  <team v='251999'/>
  <user v='ng0177'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'>
    <paused v='true'/>
  </slot>
  <slot id='1' type='GPU'>
    <paused v='true'/>
  </slot>
</config>
Last edited by ng0177 on Mon Apr 20, 2020 6:39 pm, edited 1 time in total.
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

A prerequiste for all this to work are the drivers and Cuda to be installed.

Code: Select all

sudo apt -y install nvidia-driver-440
sudo apt -y install nvidia-cuda-toolkit
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

And it works under Ubuntu 18.04 likewise.
bumbel123
Posts: 21
Joined: Fri Mar 20, 2020 12:17 pm

Re: NVIDIA works under Ubuntu 20.04

Post by bumbel123 »

Hmm, where was the issue with Ubuntu 20.04?

It does work here since weeks on several machine (Ryzen & GTX), flawless from the USB stick, Focal Desktop Installation, then enable additional hardware drivers for Nvidia (440.xx).

Just one package may need to be installed additional manually in prior to FAHClient installation:

Code: Select all

#/> sudo apt update
#/> sudo apt install ocl-icd-opencl-dev
Dependencies for FAHViewer don't work on Focal 20.04, but doesn't matter to me, I control all my folding machines from one Windows Desktop with FAHControl ...
Last edited by bumbel123 on Wed Apr 22, 2020 11:59 pm, edited 1 time in total.
  • Ryzen 3 3100 (Zen2), Nv GTX 1660 Ti, Win10 Ent
  • Ryzen 5 3600 (Zen2), Nv RTX 2060, Win10 Ent
  • Ryzen 7 2700 (Zen+), Nv RTX 2060, Nv GTX 1660, Ubuntu LTS 20.04
  • Ryzen 5 3600 (Zen2), Nv RTX 2060, Nv GTX 1650, Ubuntu LTS 20.04
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

/etc/fahclient/config.xml is now much more verbose. Still

Code: Select all

<gpu v='true'/>
needs to be set manually and is not recognized automatically.

ocl-icd-opencl-dev seems to be part of cuda but good to know!
bumbel123
Posts: 21
Joined: Fri Mar 20, 2020 12:17 pm

Re: NVIDIA works under Ubuntu 20.04

Post by bumbel123 »

ng0177 wrote:Still

Code: Select all

<gpu v='true'/>
needs to be set manually and is not recognized automatically.
Ah, ok, that's right, but just a minor issue for a Linux user ... 8-)

From my point of view it's enough to delete the section with

Code: Select all

<gpu v='false'/>
the value true seems to be default. And if already editing "config.xml" manually, quickly add

Code: Select all

<slot id='1' type='GPU'>
underneath the CPU in slot section ...

And to be honest, on some Windows machines I had also manually to add/enable the GPU slot also from whatever reason ...
  • Ryzen 3 3100 (Zen2), Nv GTX 1660 Ti, Win10 Ent
  • Ryzen 5 3600 (Zen2), Nv RTX 2060, Win10 Ent
  • Ryzen 7 2700 (Zen+), Nv RTX 2060, Nv GTX 1660, Ubuntu LTS 20.04
  • Ryzen 5 3600 (Zen2), Nv RTX 2060, Nv GTX 1650, Ubuntu LTS 20.04
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

On Fedora 32: 5.6.7-300.fc32.x86_64 having installed

Code: Select all

sudo dnf install xorg-x11-drv-nvidia-cuda
Package ocl-icd-2.2.12-9.fc32.x86_64 is already installed.

Code: Select all

~ $ clinfo | grep -i opencl
  Platform Version                                OpenCL 1.2 CUDA 10.2.159
  Device Version                                  OpenCL 1.2 CUDA
  Device OpenCL C Version                         OpenCL C 1.2 
    Run OpenCL kernels                            Yes
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Profile                              OpenCL 2.2
I am still facing the below error. Any ideas? Thanks.

Code: Select all

12:43:16:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually
ajm
Posts: 750
Joined: Sat Mar 21, 2020 5:22 am
Location: Lucerne, Switzerland

Re: NVIDIA works under Ubuntu 20.04

Post by ajm »

I would install the dev package:

Code: Select all

sudo apt install ocl-icd-opencl-dev
and reboot.
ng0177
Posts: 15
Joined: Sun Apr 19, 2020 10:57 am

Re: NVIDIA works under Ubuntu 20.04

Post by ng0177 »

Yes indeed: -dev does the trick in Fedora. In addtion, GPU units for Covid-19 seem to be not available all the time.
PantherX
Site Moderator
Posts: 6986
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: NVIDIA works under Ubuntu 20.04

Post by PantherX »

Currently, there's a shortage of GPU WUs since the demand has exceeded the supply. Work is being done to increase the GPU WU supply.
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
Post Reply