[Linux Mint 19.3] OpenCL Not Detected

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

Post Reply
Phobos001
Posts: 2
Joined: Tue Mar 17, 2020 3:22 am

[Linux Mint 19.3] OpenCL Not Detected

Post by Phobos001 »

Hello! I'm having trouble adding my GPU as a folding slot. The FAHControl GUI says that no GPU's can be found. When I look in the logs, it says

Code: Select all

OpenCL: Not detected: clGetDeviceIDs() returned -1
. What can I do to fix this? I've installed AMDGPU-PRO 19.50 drivers and Blender recognizes my OpenCL installation. Thank you again!


FULL LOG:

Code: Select all

*********************** Log Started 2020-03-17T03:02:26Z ***********************
03:02:26:************************* Folding@home Client *************************
03:02:26:    Website: https://foldingathome.org/
03:02:26:  Copyright: (c) 2009-2018 foldingathome.org
03:02:26:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
03:02:26:       Args: --child --lifeline 1366 /etc/fahclient/config.xml --run-as
03:02:26:             fahclient --pid-file=/var/run/fahclient.pid --daemon
03:02:26:     Config: /etc/fahclient/config.xml
03:02:26:******************************** Build ********************************
03:02:26:    Version: 7.5.1
03:02:26:       Date: May 11 2018
03:02:26:       Time: 19:59:04
03:02:26: Repository: Git
03:02:26:   Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
03:02:26:     Branch: master
03:02:26:   Compiler: GNU 6.3.0 20170516
03:02:26:    Options: -std=gnu++98 -O3 -funroll-loops
03:02:26:   Platform: linux2 4.14.0-3-amd64
03:02:26:       Bits: 64
03:02:26:       Mode: Release
03:02:26:******************************* System ********************************
03:02:26:        CPU: AMD Ryzen 7 3700X 8-Core Processor
03:02:26:     CPU ID: AuthenticAMD Family 23 Model 113 Stepping 0
03:02:26:       CPUs: 16
03:02:26:     Memory: 15.67GiB
03:02:26:Free Memory: 14.65GiB
03:02:26:    Threads: POSIX_THREADS
03:02:26: OS Version: 4.15
03:02:26:Has Battery: false
03:02:26: On Battery: false
03:02:26: UTC Offset: -5
03:02:26:        PID: 1368
03:02:26:        CWD: /var/lib/fahclient
03:02:26:         OS: Linux 4.15.0-91-generic x86_64
03:02:26:    OS Arch: AMD64
03:02:26:       GPUs: 0
03:02:26:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
03:02:26:             libcuda.so: cannot open shared object file: No such file or
03:02:26:             directory
03:02:26:     OpenCL: Not detected: clGetDeviceIDs() returned -1
03:02:26:***********************************************************************
03:02:26:<config>
03:02:26:  <!-- Client Control -->
03:02:26:  <fold-anon v='true'/>
03:02:26:
03:02:26:  <!-- Folding Slot Configuration -->
03:02:26:  <gpu v='false'/>
03:02:26:
03:02:26:  <!-- Network -->
03:02:26:  <proxy v=':8080'/>
03:02:26:
03:02:26:  <!-- Slot Control -->
03:02:26:  <power v='full'/>
03:02:26:
03:02:26:  <!-- User Information -->
03:02:26:  <team v='236962'/>
03:02:26:  <user v='Phobos001'/>
03:02:26:
03:02:26:  <!-- Folding Slots -->
03:02:26:  <slot id='0' type='CPU'>
03:02:26:    <paused v='true'/>
03:02:26:  </slot>
03:02:26:</config>
03:02:26:Switching to user fahclient
03:02:26:Trying to access database...
03:02:26:Successfully acquired database lock
03:02:26:Enabled folding slot 00: PAUSED cpu:16 (by user)
03:04:30:Saving configuration to /etc/fahclient/config.xml
03:04:30:<config>
03:04:30:  <!-- Client Control -->
03:04:30:  <fold-anon v='true'/>
03:04:30:
03:04:30:  <!-- Folding Slot Configuration -->
03:04:30:  <gpu v='false'/>
03:04:30:
03:04:30:  <!-- Network -->
03:04:30:  <proxy v=':8080'/>
03:04:30:
03:04:30:  <!-- Slot Control -->
03:04:30:  <power v='full'/>
03:04:30:
03:04:30:  <!-- User Information -->
03:04:30:  <team v='236962'/>
03:04:30:  <user v='Phobos001'/>
03:04:30:
03:04:30:  <!-- Folding Slots -->
03:04:30:  <slot id='0' type='CPU'>
03:04:30:    <paused v='true'/>
03:04:30:  </slot>
03:04:30:</config>
03:05:03:Saving configuration to /etc/fahclient/config.xml
03:05:03:<config>
03:05:03:  <!-- Client Control -->
03:05:03:  <fold-anon v='true'/>
03:05:03:
03:05:03:  <!-- Folding Slot Configuration -->
03:05:03:  <gpu v='false'/>
03:05:03:
03:05:03:  <!-- Network -->
03:05:03:  <proxy v=':8080'/>
03:05:03:
03:05:03:  <!-- Slot Control -->
03:05:03:  <power v='full'/>
03:05:03:
03:05:03:  <!-- User Information -->
03:05:03:  <team v='236962'/>
03:05:03:  <user v='Phobos001'/>
03:05:03:
03:05:03:  <!-- Folding Slots -->
03:05:03:  <slot id='0' type='CPU'>
03:05:03:    <paused v='true'/>
03:05:03:  </slot>
03:05:03:</config>
03:19:04:Saving configuration to /etc/fahclient/config.xml
03:19:04:<config>
03:19:04:  <!-- Client Control -->
03:19:04:  <fold-anon v='true'/>
03:19:04:
03:19:04:  <!-- Folding Slot Configuration -->
03:19:04:  <gpu v='false'/>
03:19:04:
03:19:04:  <!-- Network -->
03:19:04:  <proxy v=':8080'/>
03:19:04:
03:19:04:  <!-- Slot Control -->
03:19:04:  <power v='full'/>
03:19:04:
03:19:04:  <!-- User Information -->
03:19:04:  <team v='236962'/>
03:19:04:  <user v='Phobos001'/>
03:19:04:
03:19:04:  <!-- Folding Slots -->
03:19:04:  <slot id='0' type='CPU'>
03:19:04:    <paused v='true'/>
03:19:04:  </slot>
03:19:04:</config>
03:19:15:FS00:Unpaused
03:19:15:WU00:FS00:Starting
03:19:15: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 1368 -checkpoint 15 -np 16
03:19:15:WU00:FS00:Started FahCore on PID 12850
03:19:15:WU00:FS00:Core PID:12854
03:19:15:WU00:FS00:FahCore 0xa7 started
03:19:16:WU00:FS00:0xa7:*********************** Log Started 2020-03-17T03:19:15Z ***********************
03:19:16:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
03:19:16:WU00:FS00:0xa7:       Type: 0xa7
03:19:16:WU00:FS00:0xa7:       Core: Gromacs
03:19:16:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 705 -lifeline 12850 -checkpoint 15 -np
03:19:16:WU00:FS00:0xa7:             16
03:19:16:WU00:FS00:0xa7:************************************ CBang *************************************
03:19:16:WU00:FS00:0xa7:       Date: Nov 5 2019
03:19:16:WU00:FS00:0xa7:       Time: 06:06:57
03:19:16:WU00:FS00:0xa7:   Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9
03:19:16:WU00:FS00:0xa7:     Branch: master
03:19:16:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
03:19:16:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC
03:19:16:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
03:19:16:WU00:FS00:0xa7:       Bits: 64
03:19:16:WU00:FS00:0xa7:       Mode: Release
03:19:16:WU00:FS00:0xa7:************************************ System ************************************
03:19:16:WU00:FS00:0xa7:        CPU: AMD Ryzen 7 3700X 8-Core Processor
03:19:16:WU00:FS00:0xa7:     CPU ID: AuthenticAMD Family 23 Model 113 Stepping 0
03:19:16:WU00:FS00:0xa7:       CPUs: 16
03:19:16:WU00:FS00:0xa7:     Memory: 15.67GiB
03:19:16:WU00:FS00:0xa7:Free Memory: 9.20GiB
03:19:16:WU00:FS00:0xa7:    Threads: POSIX_THREADS
03:19:16:WU00:FS00:0xa7: OS Version: 4.15
03:19:16:WU00:FS00:0xa7:Has Battery: false
03:19:16:WU00:FS00:0xa7: On Battery: false
03:19:16:WU00:FS00:0xa7: UTC Offset: -5
03:19:16:WU00:FS00:0xa7:        PID: 12854
03:19:16:WU00:FS00:0xa7:        CWD: /var/lib/fahclient/work
03:19:16:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
03:19:16:WU00:FS00:0xa7:    Version: 0.0.18
03:19:16:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
03:19:16:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
03:19:16:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
03:19:16:WU00:FS00:0xa7:       Date: Nov 5 2019
03:19:16:WU00:FS00:0xa7:       Time: 06:13:26
03:19:16:WU00:FS00:0xa7:   Revision: 490c9aa2957b725af319379424d5c5cb36efb656
03:19:16:WU00:FS00:0xa7:     Branch: master
03:19:16:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
03:19:16:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie
03:19:16:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
03:19:16:WU00:FS00:0xa7:       Bits: 64
03:19:16:WU00:FS00:0xa7:       Mode: Release
03:19:16:WU00:FS00:0xa7:************************************ Build *************************************
03:19:16:WU00:FS00:0xa7:       SIMD: avx_256
03:19:16:WU00:FS00:0xa7:********************************************************************************
03:19:16:WU00:FS00:0xa7:Project: 13833 (Run 0, Clone 3633, Gen 1)
03:19:16:WU00:FS00:0xa7:Unit: 0x0000000180fccb095e6e55bb67095533
03:19:16:WU00:FS00:0xa7:Digital signatures verified
03:19:16:WU00:FS00:0xa7:Calling: mdrun -s frame1.tpr -o frame1.trr -x frame1.xtc -cpi state.cpt -cpt 15 -nt 16
03:19:16:WU00:FS00:0xa7:Steps: first=250000 total=250000
03:19:17:WU00:FS00:0xa7:Completed 136342 out of 250000 steps (54%)
03:19:26:Saving configuration to /etc/fahclient/config.xml
03:19:26:<config>
03:19:26:  <!-- Client Control -->
03:19:26:  <fold-anon v='true'/>
03:19:26:
03:19:26:  <!-- Folding Slot Configuration -->
03:19:26:  <gpu v='false'/>
03:19:26:
03:19:26:  <!-- Network -->
03:19:26:  <proxy v=':8080'/>
03:19:26:
03:19:26:  <!-- Slot Control -->
03:19:26:  <power v='full'/>
03:19:26:
03:19:26:  <!-- User Information -->
03:19:26:  <team v='236962'/>
03:19:26:  <user v='Phobos001'/>
03:19:26:
03:19:26:  <!-- Folding Slots -->
03:19:26:  <slot id='0' type='CPU'/>
03:19:26:</config>
03:19:27:WU00:FS00:0xa7:Completed 137500 out of 250000 steps (55%)
03:19:43:Saving configuration to /etc/fahclient/config.xml
03:19:43:<config>
03:19:43:  <!-- Client Control -->
03:19:43:  <fold-anon v='true'/>
03:19:43:
03:19:43:  <!-- Folding Slot Configuration -->
03:19:43:  <gpu v='false'/>
03:19:43:
03:19:43:  <!-- Network -->
03:19:43:  <proxy v=':8080'/>
03:19:43:
03:19:43:  <!-- Slot Control -->
03:19:43:  <power v='full'/>
03:19:43:
03:19:43:  <!-- User Information -->
03:19:43:  <team v='236962'/>
03:19:43:  <user v='Phobos001'/>
03:19:43:
03:19:43:  <!-- Folding Slots -->
03:19:43:  <slot id='0' type='CPU'/>
03:19:43:</config>
03:19:51:WU00:FS00:0xa7:Completed 140000 out of 250000 steps (56%)
03:20:17:WU00:FS00:0xa7:Completed 142500 out of 250000 steps (57%)
03:20:39:WU00:FS00:0xa7:Completed 145000 out of 250000 steps (58%)
03:21:04:WU00:FS00:0xa7:Completed 147500 out of 250000 steps (59%)
03:21:30:WU00:FS00:0xa7:Completed 150000 out of 250000 steps (60%)
03:21:55:WU00:FS00:0xa7:Completed 152500 out of 250000 steps (61%)
03:22:20:WU00:FS00:0xa7:Completed 155000 out of 250000 steps (62%)
03:22:45:WU00:FS00:0xa7:Completed 157500 out of 250000 steps (63%)
03:23:11:WU00:FS00:0xa7:Completed 160000 out of 250000 steps (64%)
03:23:38:WU00:FS00:0xa7:Completed 162500 out of 250000 steps (65%)
03:24:01:WU00:FS00:0xa7:Completed 165000 out of 250000 steps (66%)
03:24:23:WU00:FS00:0xa7:Completed 167500 out of 250000 steps (67%)
03:24:45:WU00:FS00:0xa7:Completed 170000 out of 250000 steps (68%)
03:25:07:WU00:FS00:0xa7:Completed 172500 out of 250000 steps (69%)
03:25:29:WU00:FS00:0xa7:Completed 175000 out of 250000 steps (70%)
03:25:51:WU00:FS00:0xa7:Completed 177500 out of 250000 steps (71%)
03:26:13:WU00:FS00:0xa7:Completed 180000 out of 250000 steps (72%)
03:26:35:WU00:FS00:0xa7:Completed 182500 out of 250000 steps (73%)
03:26:58:WU00:FS00:0xa7:Completed 185000 out of 250000 steps (74%)
03:27:20:WU00:FS00:0xa7:Completed 187500 out of 250000 steps (75%)
03:27:42:WU00:FS00:0xa7:Completed 190000 out of 250000 steps (76%)
03:28:04:WU00:FS00:0xa7:Completed 192500 out of 250000 steps (77%)
03:28:27:WU00:FS00:0xa7:Completed 195000 out of 250000 steps (78%)
03:28:52:WU00:FS00:0xa7:Completed 197500 out of 250000 steps (79%)
03:29:15:WU00:FS00:0xa7:Completed 200000 out of 250000 steps (80%)
03:29:38:WU00:FS00:0xa7:Completed 202500 out of 250000 steps (81%)
03:29:44:Saving configuration to /etc/fahclient/config.xml
03:29:44:<config>
03:29:44:  <!-- Client Control -->
03:29:44:  <fold-anon v='true'/>
03:29:44:
03:29:44:  <!-- Network -->
03:29:44:  <proxy v=':8080'/>
03:29:44:
03:29:44:  <!-- Slot Control -->
03:29:44:  <power v='full'/>
03:29:44:
03:29:44:  <!-- User Information -->
03:29:44:  <team v='236962'/>
03:29:44:  <user v='Phobos001'/>
03:29:44:
03:29:44:  <!-- Folding Slots -->
03:29:44:  <slot id='0' type='CPU'/>
03:29:44:</config>
03:29:44:Connecting to assign1.foldingathome.org:8080
03:29:44:Updated GPUs.txt
03:29:53:Saving configuration to /etc/fahclient/config.xml
03:29:53:<config>
03:29:53:  <!-- Client Control -->
03:29:53:  <fold-anon v='true'/>
03:29:53:
03:29:53:  <!-- Network -->
03:29:53:  <proxy v=':8080'/>
03:29:53:
03:29:53:  <!-- Slot Control -->
03:29:53:  <power v='full'/>
03:29:53:
03:29:53:  <!-- User Information -->
03:29:53:  <team v='236962'/>
03:29:53:  <user v='Phobos001'/>
03:29:53:
03:29:53:  <!-- Folding Slots -->
03:29:53:  <slot id='0' type='CPU'/>
03:29:53:</config>
03:29:55:Saving configuration to /etc/fahclient/config.xml
03:29:55:<config>
03:29:55:  <!-- Client Control -->
03:29:55:  <fold-anon v='true'/>
03:29:55:
03:29:55:  <!-- Network -->
03:29:55:  <proxy v=':8080'/>
03:29:55:
03:29:55:  <!-- Slot Control -->
03:29:55:  <power v='full'/>
03:29:55:
03:29:55:  <!-- User Information -->
03:29:55:  <team v='236962'/>
03:29:55:  <user v='Phobos001'/>
03:29:55:
03:29:55:  <!-- Folding Slots -->
03:29:55:  <slot id='0' type='CPU'/>
03:29:55:</config>
03:30:03:WU00:FS00:0xa7:Completed 205000 out of 250000 steps (82%)
03:30:25:WU00:FS00:0xa7:Completed 207500 out of 250000 steps (83%)
03:30:48:WU00:FS00:0xa7:Completed 210000 out of 250000 steps (84%)
03:31:10:WU00:FS00:0xa7:Completed 212500 out of 250000 steps (85%)
03:31:33:WU00:FS00:0xa7:Completed 215000 out of 250000 steps (86%)
03:31:57:WU00:FS00:0xa7:Completed 217500 out of 250000 steps (87%)
03:32:04:Removing old file 'configs/config-20200315-144312.xml'
03:32:04:Saving configuration to /etc/fahclient/config.xml
03:32:04:<config>
03:32:04:  <!-- Client Control -->
03:32:04:  <fold-anon v='true'/>
03:32:04:
03:32:04:  <!-- Folding Slot Configuration -->
03:32:04:  <extra-core-args v='-forcegpu'/>
03:32:04:
03:32:04:  <!-- Network -->
03:32:04:  <proxy v=':8080'/>
03:32:04:
03:32:04:  <!-- Slot Control -->
03:32:04:  <power v='full'/>
03:32:04:
03:32:04:  <!-- User Information -->
03:32:04:  <team v='236962'/>
03:32:04:  <user v='Phobos001'/>
03:32:04:
03:32:04:  <!-- Folding Slots -->
03:32:04:  <slot id='0' type='CPU'/>
03:32:04:</config>
03:32:12:Removing old file 'configs/config-20200315-203436.xml'
03:32:12:Saving configuration to /etc/fahclient/config.xml
03:32:12:<config>
03:32:12:  <!-- Client Control -->
03:32:12:  <fold-anon v='true'/>
03:32:12:
03:32:12:  <!-- Folding Slot Configuration -->
03:32:12:  <extra-core-args v='-forcegpu'/>
03:32:12:
03:32:12:  <!-- Network -->
03:32:12:  <proxy v=':8080'/>
03:32:12:
03:32:12:  <!-- Slot Control -->
03:32:12:  <power v='full'/>
03:32:12:
03:32:12:  <!-- User Information -->
03:32:12:  <team v='236962'/>
03:32:12:  <user v='Phobos001'/>
03:32:12:
03:32:12:  <!-- Folding Slots -->
03:32:12:  <slot id='0' type='CPU'/>
03:32:12:</config>
03:32:21:WU00:FS00:0xa7:Completed 220000 out of 250000 steps (88%)
03:32:46:WU00:FS00:0xa7:Completed 222500 out of 250000 steps (89%)
03:32:56:Removing old file 'configs/config-20200315-203457.xml'
03:32:56:Saving configuration to /etc/fahclient/config.xml
03:32:56:<config>
03:32:56:  <!-- Client Control -->
03:32:56:  <fold-anon v='true'/>
03:32:56:
03:32:56:  <!-- Folding Slot Configuration -->
03:32:56:  <extra-core-args v='-forcegpu'/>
03:32:56:
03:32:56:  <!-- Network -->
03:32:56:  <proxy v=':8080'/>
03:32:56:
03:32:56:  <!-- Slot Control -->
03:32:56:  <power v='full'/>
03:32:56:
03:32:56:  <!-- User Information -->
03:32:56:  <team v='236962'/>
03:32:56:  <user v='Phobos001'/>
03:32:56:
03:32:56:  <!-- Folding Slots -->
03:32:56:  <slot id='0' type='CPU'/>
03:32:56:</config>
03:33:09:WU00:FS00:0xa7:Completed 225000 out of 250000 steps (90%)
03:33:32:WU00:FS00:0xa7:Completed 227500 out of 250000 steps (91%)
03:33:57:WU00:FS00:0xa7:Completed 230000 out of 250000 steps (92%)
03:34:23:WU00:FS00:0xa7:Completed 232500 out of 250000 steps (93%)
03:34:48:WU00:FS00:0xa7:Completed 235000 out of 250000 steps (94%)
03:35:13:WU00:FS00:0xa7:Completed 237500 out of 250000 steps (95%)
03:35:37:WU00:FS00:0xa7:Completed 240000 out of 250000 steps (96%)
03:36:01:WU00:FS00:0xa7:Completed 242500 out of 250000 steps (97%)
foldy
Posts: 2040
Joined: Sat Dec 01, 2012 3:43 pm
Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441

Re: [Linux Mint 19.3] OpenCL Not Detected

Post by foldy »

Try that:
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev
Phobos001
Posts: 2
Joined: Tue Mar 17, 2020 3:22 am

Re: [Linux Mint 19.3] OpenCL Not Detected

Post by Phobos001 »

foldy wrote:Try that:
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev
I installed these, restarted, and BINGO

Image

Thank you so much! This has been eating away at me for a few days now.
Roadpower
Posts: 71
Joined: Mon Mar 16, 2020 5:11 pm

Re: [Linux Mint 19.3] OpenCL Not Detected

Post by Roadpower »

"sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev"

Both of those are installed on my system but F@H still doesn't detect the RX480.
Darth_Peter_dualxeon
Posts: 46
Joined: Fri Mar 20, 2020 3:13 am
Hardware configuration: EVGA SR-2 motherboard
2x Xeon x5670 CPU
64 GB ECC DDR3
Nvidia RTX 2070

Re: [Linux Mint 19.3] OpenCL Not Detected

Post by Darth_Peter_dualxeon »

Roadpower wrote:"sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev"

Both of those are installed on my system but F@H still doesn't detect the RX480.
Is the manufacturer-made video card driver installed? (usually Linux might come with some open source driver that may not include every capability)
Can you play 3D games?
Did you try to add the GPU slot in fahcontrol, and set folding intensity to maximum?
( by the way, is it a clean install of linux? Or some older installation with lot of programs and upgrades and who knows what configuration?
Lot of things on the same system may get into eachother's way sometimes, if configuration gets messed up)
Or you just cannot get work unit (then wait)
Post Reply