CUDA, OpenCL not detected- Mint 20, Nvidia 1060

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
Starfleet42
Posts: 2
Joined: Thu Aug 06, 2020 4:34 am

CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by Starfleet42 »

Not much of a Linux user, but I've already done some package-related problem solving. I managed to complete several WU on the GTX 1060, but now the gpu is stuck 'downloading' at 00.00% and the System Info section gives me the following info. Any help is appreciated. Please let me know if there is additional info that might help. :?

Code: Select all

*********************** Log Started 2020-08-06T04:28:42Z ***********************
04:28:42:Trying to access database...
04:28:42:Successfully acquired database lock
04:28:42:Read GPUs.txt
04:28:42:Enabled folding slot 00: READY cpu:3
04:28:43:Enabled folding slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372
04:28:43:ERROR:No compute devices matched GPU #0 {
04:28:43:ERROR:  "vendor": 4318,
04:28:43:ERROR:  "device": 7171,
04:28:43:ERROR:  "type": 2,
04:28:43:ERROR:  "species": 7,
04:28:43:ERROR:  "description": "GP106 [GeForce GTX 1060 6GB] 4372"
04:28:43:ERROR:}.  You may need to update your graphics drivers.
04:28:43:****************************** FAHClient ******************************
04:28:43:    Version: 7.6.13
04:28:43:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
04:28:43:  Copyright: 2020 foldingathome.org
04:28:43:   Homepage: https://foldingathome.org/
04:28:43:       Date: Apr 28 2020
04:28:43:       Time: 04:20:16
04:28:43:   Revision: 5a652817f46116b6e135503af97f18e094414e3b
04:28:43:     Branch: master
04:28:43:   Compiler: GNU 8.3.0
04:28:43:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
04:28:43:             -fno-pie
04:28:43:   Platform: linux2 4.19.0-5-amd64
04:28:43:       Bits: 64
04:28:43:       Mode: Release
04:28:43:       Args: --child /etc/fahclient/config.xml --run-as fahclient
04:28:43:             --pid-file=/var/run/fahclient.pid --daemon
04:28:43:     Config: /etc/fahclient/config.xml
04:28:43:******************************** CBang ********************************
04:28:43:       Date: Apr 25 2020
04:28:43:       Time: 00:07:53
04:28:43:   Revision: ea081a3b3b0f4a37c4d0440b4f1bc184197c7797
04:28:43:     Branch: master
04:28:43:   Compiler: GNU 8.3.0
04:28:43:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
04:28:43:             -fno-pie -fPIC
04:28:43:   Platform: linux2 4.19.0-5-amd64
04:28:43:       Bits: 64
04:28:43:       Mode: Release
04:28:43:******************************* System ********************************
04:28:43:        CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
04:28:43:     CPU ID: GenuineIntel Family 6 Model 58 Stepping 9
04:28:43:       CPUs: 4
04:28:43:     Memory: 15.52GiB
04:28:43:Free Memory: 15.02GiB
04:28:43:    Threads: POSIX_THREADS
04:28:43: OS Version: 5.4
04:28:43:Has Battery: false
04:28:43: On Battery: false
04:28:43: UTC Offset: -5
04:28:43:        PID: 989
04:28:43:        CWD: /var/lib/fahclient
04:28:43:         OS: Linux 5.4.0-40-generic x86_64
04:28:43:    OS Arch: AMD64
04:28:43:       GPUs: 1
04:28:43:      GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP106 [GeForce GTX 1060 6GB] 4372
04:28:43:       CUDA: Not detected: cuInit() returned 100
04:28:43:     OpenCL: Not detected: clGetPlatformIDs() returned -1001
04:28:43:******************************* libFAH ********************************
04:28:43:       Date: Apr 15 2020
04:28:43:       Time: 21:43:24
04:28:43:   Revision: 216968bc7025029c841ed6e36e81a03a316890d3
04:28:43:     Branch: master
04:28:43:   Compiler: GNU 8.3.0
04:28:43:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
04:28:43:             -fno-pie
04:28:43:   Platform: linux2 4.19.0-5-amd64
04:28:43:       Bits: 64
04:28:43:       Mode: Release
04:28:43:***********************************************************************
04:28:43:<config>
04:28:43:  <!-- Client Control -->
04:28:43:  <fold-anon v='true'/>
04:28:43:
04:28:43:  <!-- Folding Core -->
04:28:43:  <core-priority v='low'/>
04:28:43:
04:28:43:  <!-- Folding Slot Configuration -->
04:28:43:  <gpu v='false'/>
04:28:43:
04:28:43:  <!-- Network -->
04:28:43:  <proxy v=':8080'/>
04:28:43:
04:28:43:  <!-- Slot Control -->
04:28:43:  <pause-on-battery v='false'/>
04:28:43:  <power v='full'/>
04:28:43:
04:28:43:  <!-- User Information -->
04:28:43:  <passkey v='*****'/>
04:28:43:  <team v='223518'/>
04:28:43:  <user v='Starfleet42'/>
04:28:43:
04:28:43:  <!-- Folding Slots -->
04:28:43:  <slot id='0' type='CPU'>
04:28:43:    <paused v='False'/>
04:28:43:  </slot>
04:28:43:  <slot id='1' type='GPU'>
04:28:43:    <gpu-index v='0'/>
04:28:43:  </slot>
04:28:43:</config>
04:28:43:WU00:FS00:Connecting to assign1.foldingathome.org:80
04:28:43:WU01:FS01:Connecting to assign1.foldingathome.org:80
04:28:44:WU00:FS00:Assigned to work server 150.136.14.110
04:28:44:WU00:FS00:Requesting new work unit for slot 00: READY cpu:3 from 150.136.14.110
04:28:44:WU00:FS00:Connecting to 150.136.14.110:8080
04:28:44:WU01:FS01:Assigned to work server 192.0.2.1
04:28:44:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 192.0.2.1
04:28:44:WU01:FS01:Connecting to 192.0.2.1:8080
04:28:44:WU00:FS00:Downloading 2.18MiB
04:28:45:WU00:FS00:Download complete
04:28:45:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:16423 run:1982 clone:0 gen:167 core:0xa7 unit:0x000000b596880e6e5e8a8d7225581655
04:28:46:WU00:FS00:Starting
04:28:46:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit-avx-256/a7-0.0.19/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 706 -lifeline 989 -checkpoint 15 -np 3
04:28:46:WU00:FS00:Started FahCore on PID 1054
04:28:46:WU00:FS00:Core PID:1058
04:28:46:WU00:FS00:FahCore 0xa7 started
04:28:47:WU00:FS00:0xa7:*********************** Log Started 2020-08-06T04:28:46Z ***********************
04:28:47:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
04:28:47:WU00:FS00:0xa7:       Type: 0xa7
04:28:47:WU00:FS00:0xa7:       Core: Gromacs
04:28:47:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 706 -lifeline 1054 -checkpoint 15 -np 3
04:28:47:WU00:FS00:0xa7:************************************ CBang *************************************
04:28:47:WU00:FS00:0xa7:       Date: Nov 27 2019
04:28:47:WU00:FS00:0xa7:       Time: 11:26:54
04:28:47:WU00:FS00:0xa7:   Revision: d25803215b59272441049dfa05a0a9bf7a6e3c48
04:28:47:WU00:FS00:0xa7:     Branch: master
04:28:47:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
04:28:47:WU00:FS00:0xa7:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
04:28:47:WU00:FS00:0xa7:             -fno-pie -fPIC
04:28:47:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
04:28:47:WU00:FS00:0xa7:       Bits: 64
04:28:47:WU00:FS00:0xa7:       Mode: Release
04:28:47:WU00:FS00:0xa7:************************************ System ************************************
04:28:47:WU00:FS00:0xa7:        CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
04:28:47:WU00:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 58 Stepping 9
04:28:47:WU00:FS00:0xa7:       CPUs: 4
04:28:47:WU00:FS00:0xa7:     Memory: 15.52GiB
04:28:47:WU00:FS00:0xa7:Free Memory: 14.96GiB
04:28:47:WU00:FS00:0xa7:    Threads: POSIX_THREADS
04:28:47:WU00:FS00:0xa7: OS Version: 5.4
04:28:47:WU00:FS00:0xa7:Has Battery: false
04:28:47:WU00:FS00:0xa7: On Battery: false
04:28:47:WU00:FS00:0xa7: UTC Offset: -5
04:28:47:WU00:FS00:0xa7:        PID: 1058
04:28:47:WU00:FS00:0xa7:        CWD: /var/lib/fahclient/work
04:28:47:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
04:28:47:WU00:FS00:0xa7:    Version: 0.0.19
04:28:47:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
04:28:47:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
04:28:47:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
04:28:47:WU00:FS00:0xa7:       Date: Nov 26 2019
04:28:47:WU00:FS00:0xa7:       Time: 00:41:42
04:28:47:WU00:FS00:0xa7:   Revision: d5b5c747532224f986b7cd02c968ed9a20c16d6e
04:28:47:WU00:FS00:0xa7:     Branch: master
04:28:47:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
04:28:47:WU00:FS00:0xa7:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
04:28:47:WU00:FS00:0xa7:             -fno-pie
04:28:47:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
04:28:47:WU00:FS00:0xa7:       Bits: 64
04:28:47:WU00:FS00:0xa7:       Mode: Release
04:28:47:WU00:FS00:0xa7:************************************ Build *************************************
04:28:47:WU00:FS00:0xa7:       SIMD: avx_256
04:28:47:WU00:FS00:0xa7:********************************************************************************
04:28:47:WU00:FS00:0xa7:Project: 16423 (Run 1982, Clone 0, Gen 167)
04:28:47:WU00:FS00:0xa7:Unit: 0x000000b596880e6e5e8a8d7225581655
04:28:47:WU00:FS00:0xa7:Reading tar file core.xml
04:28:47:WU00:FS00:0xa7:Reading tar file frame167.tpr
04:28:47:WU00:FS00:0xa7:Digital signatures verified
04:28:47:WU00:FS00:0xa7:Calling: mdrun -s frame167.tpr -o frame167.trr -x frame167.xtc -cpt 15 -nt 3
04:28:47:WU00:FS00:0xa7:Steps: first=41750000 total=250000
04:28:49:WU00:FS00:0xa7:Completed 1 out of 250000 steps (0%)
04:30:09:WU00:FS00:0xa7:Completed 2500 out of 250000 steps (1%)
04:30:55:WARNING:WU01:FS01:WorkServer connection failed on port 8080 trying 80
04:30:55:WU01:FS01:Connecting to 192.0.2.1:80
04:31:26:WU00:FS00:0xa7:Completed 5000 out of 250000 steps (2%)
04:32:44:WU00:FS00:0xa7:Completed 7500 out of 250000 steps (3%)
04:33:06:ERROR:WU01:FS01:Exception: Failed to connect to 192.0.2.1:80: Connection timed out
04:33:06:WU01:FS01:Connecting to assign1.foldingathome.org:80
04:33:06:WU01:FS01:Assigned to work server 192.0.2.1
04:33:06:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 192.0.2.1
04:33:06:WU01:FS01:Connecting to 192.0.2.1:8080
04:34:02:WU00:FS00:0xa7:Completed 10000 out of 250000 steps (4%)
04:35:17:WARNING:WU01:FS01:WorkServer connection failed on port 8080 trying 80
04:35:17:WU01:FS01:Connecting to 192.0.2.1:80
04:35:20:WU00:FS00:0xa7:Completed 12500 out of 250000 steps (5%)
04:36:37:WU00:FS00:0xa7:Completed 15000 out of 250000 steps (6%)
04:37:28:ERROR:WU01:FS01:Exception: Failed to connect to 192.0.2.1:80: Connection timed out
04:37:28:WU01:FS01:Connecting to assign1.foldingathome.org:80
04:37:28:WU01:FS01:Assigned to work server 192.0.2.1
04:37:28:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 192.0.2.1
04:37:28:WU01:FS01:Connecting to 192.0.2.1:8080
04:37:55:WU00:FS00:0xa7:Completed 17500 out of 250000 steps (7%)
04:39:13:WU00:FS00:0xa7:Completed 20000 out of 250000 steps (8%)
04:39:39:WARNING:WU01:FS01:WorkServer connection failed on port 8080 trying 80
04:39:39:WU01:FS01:Connecting to 192.0.2.1:80
04:40:31:WU00:FS00:0xa7:Completed 22500 out of 250000 steps (9%)
04:41:50:WU00:FS00:0xa7:Completed 25000 out of 250000 steps (10%)
04:41:50:ERROR:WU01:FS01:Exception: Failed to connect to 192.0.2.1:80: Connection timed out
04:41:50:WU01:FS01:Connecting to assign1.foldingathome.org:80
04:41:51:WU01:FS01:Assigned to work server 192.0.2.1
04:41:51:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 192.0.2.1
04:41:51:WU01:FS01:Connecting to 192.0.2.1:8080
04:43:10:WU00:FS00:0xa7:Completed 27500 out of 250000 steps (11%)
04:44:01:WARNING:WU01:FS01:WorkServer connection failed on port 8080 trying 80
04:44:01:WU01:FS01:Connecting to 192.0.2.1:80
04:44:29:WU00:FS00:0xa7:Completed 30000 out of 250000 steps (12%)
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by bruce »

You must run the NVidia proprietary drivers and you must have OpenCL installed. Unless both are found, your GPU will be blacklisted (i.e.-not be recognized). When the GPU is blacklisted you will be redirected to "nowhere" (192.0.2.1) to keep you from dumping perfectly good WUs.

First error message: "You may need to update your graphics drivers."
toTOW
Site Moderator
Posts: 6296
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by toTOW »

Depending on the distribution you use, you might have to install additional packages (opencl-icd-dev) or make sure that you start the client from an user that has the right rights ("video" or "rendering" group) ...
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
bollix47
Posts: 2941
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by bollix47 »

FYI - here's a link to various methods for installing GPU drivers on Mint:
https://www.reallinuxuser.com/how-to-in ... inux-mint/
I find just letting the o/s do the install (the first method above) works best for me.
As toTOW mentioned above there may be more steps to get opencl working for FAH, but some distros know enough to add that when installing the drivers.
Starfleet42
Posts: 2
Joined: Thu Aug 06, 2020 4:34 am

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by Starfleet42 »

@bollix47 I tried opening the Driver Manager, but it says I don't have anything running proprietary drivers. Then I downloaded the most recent driver from NVidia's site, but I don't know what to do with it after that... The .run just opens in a text editor, and neither Nvidia or the RealLinuxUser site you posted explain what to do with it...
bollix47
Posts: 2941
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by bollix47 »

Open a terminal and copy/paste the following:

Code: Select all

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
Check Driver Manager again ... you should be able to install the latest graphics driver.

Using .run files can be dangerous to your linux installation and you could end up having to completely reinstall linux again but using a repo as above should be non-problematic.
Instructions for installing NVIDIA drivers using .run but I'm not suggesting you use this method:
http://us.download.nvidia.com/XFree86/L ... index.html
gunnarre
Posts: 567
Joined: Sun May 24, 2020 7:23 pm
Location: Norway

Re: CUDA, OpenCL not detected- Mint 20, Nvidia 1060

Post by gunnarre »

There's an issue with the permissions to the graphics card and the old way of starting the service in Ubuntu 18 doesn't work with GPUs on Ubuntu 20/Mint 20

Remember to reboot after installing the new graphics drivers. After adding the fahclient user to the groups video and render, run

Code: Select all

sudo /etc/init.d/FAHClient stop
put this in /etc/systemd/system/FAHClient.service

Code: Select all

    [Unit]
    Description=Folding@Home Client
    After=network.target

    [Service]
    Type=simple
    ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --pid-file=/var/run/fahclient/fahclient.pid --daemon
    PIDFile=/var/run/fahclient/fahclient.pid
    User=fahclient
    RuntimeDirectory=fahclient
    WorkingDirectory=~

    [Install]
    WantedBy=multi-user.target
then run

Code: Select all

sudo systemctl enable FAHClient.service
sudo systemctl start FAHClient.service
Image
Online: GTX 1660 Super, GTX 1080, GTX 1050 Ti 4G OC, RX580 + occasional CPU folding in the cold.
Offline: Radeon HD 7770, GTX 960, GTX 950
Post Reply