opencl-index=-1

Moderators: Site Moderators, FAHC Science Team

goodyca
Posts: 187
Joined: Sun Dec 02, 2007 12:36 pm

opencl-index=-1

Post by goodyca »

I have just upgraded from version 7.4.4 to 7.5.1. Since upgrading, I am getting the following error:

ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually

Prior to upgrading, the GPU was folding without problem.

Here is the log after the upgrade:

Code: Select all

*********************** Log Started 2018-06-04T14:51:17Z ***********************
14:51:17:************************* Folding@home Client *************************
14:51:17:      Website: https://foldingathome.org/
14:51:17:    Copyright: (c) 2009-2018 foldingathome.org
14:51:17:       Author: Joseph Coffland <[email protected]>
14:51:17:         Args: --child --lifeline 9989 /etc/fahclient/config.xml --run-as
14:51:17:               fahclient --pid-file=/var/run/fahclient.pid --daemon
14:51:17:       Config: /etc/fahclient/config.xml
14:51:17:******************************** Build ********************************
14:51:17:      Version: 7.5.1
14:51:17:         Date: May 12 2018
14:51:17:         Time: 22:51:07
14:51:17:   Repository: Git
14:51:17:     Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
14:51:17:       Branch: master
14:51:17:     Compiler: GNU 4.4.7 20120313 (Red Hat 4.4.7-18)
14:51:17:      Options: -std=gnu++98 -O3 -funroll-loops
14:51:17:     Platform: linux2 4.14.0-3-amd64
14:51:17:         Bits: 64
14:51:17:         Mode: Release
14:51:17:******************************* System ********************************
14:51:17:          CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
14:51:17:       CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
14:51:17:         CPUs: 12
14:51:17:       Memory: 7.72GiB
14:51:17:  Free Memory: 1.13GiB
14:51:17:      Threads: POSIX_THREADS
14:51:17:   OS Version: 4.16
14:51:17:  Has Battery: false
14:51:17:   On Battery: false
14:51:17:   UTC Offset: -5
14:51:17:          PID: 9991
14:51:17:          CWD: /var/lib/fahclient
14:51:17:           OS: Linux 4.16.11-300.fc28.x86_64 x86_64
14:51:17:      OS Arch: AMD64
14:51:17:         GPUs: 1
14:51:17:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP107 [GeForce GTX 1050 Ti] 2138
14:51:17:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:9.1
14:51:17:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
14:51:17:               libOpenCL.so: cannot open shared object file: No such file or
14:51:17:               directory
14:51:17:***********************************************************************
14:51:17:<config>
14:51:17:  <!-- Folding Slot Configuration -->
14:51:17:  <gpu v='false'/>
14:51:17:
14:51:17:  <!-- HTTP Server -->
14:51:17:  <allow v='127.0.0.1,192.168.48.0/24'/>
14:51:17:
14:51:17:  <!-- Network -->
14:51:17:  <proxy v=':8080'/>
14:51:17:
14:51:17:  <!-- Remote Command Server -->
14:51:17:  <password v='********'/>
14:51:17:
14:51:17:  <!-- Slot Control -->
14:51:17:  <power v='full'/>
14:51:17:
14:51:17:  <!-- User Information -->
14:51:17:  <passkey v='********************************'/>
14:51:17:  <team v='439'/>
14:51:17:  <user v='goodyca'/>
14:51:17:
14:51:17:  <!-- Work Unit Control -->
14:51:17:  <next-unit-percentage v='100'/>
14:51:17:
14:51:17:  <!-- Folding Slots -->
14:51:17:  <slot id='0' type='CPU'>
14:51:17:    <paused v='true'/>
14:51:17:  </slot>
14:51:17:  <slot id='1' type='GPU'>
14:51:17:    <paused v='true'/>
14:51:17:  </slot>
14:51:17:</config>
14:51:17:Switching to user fahclient
14:51:17:Trying to access database...
14:51:17:Upgrading database schema from version 13 to 16
14:51:17:Successfully acquired database lock
14:51:17:Enabled folding slot 00: PAUSED cpu:11 (by user)
14:51:17:Enabled folding slot 01: PAUSED gpu:0:GP107 [GeForce GTX 1050 Ti]  2138 (by user)
14:51:43:FS00:Unpaused
14:51:43:FS01:Unpaused
14:51:43:WU01:FS01:Starting
[91m14:51:43:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually[0m
14:51:43:WU02:FS00:Starting
14:51:43:WU02:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/Linux/AMD64/AVX/Core_a7.fah/FahCore_a7 -dir 02 -suffix 01 -version 705 -lifeline 9991 -checkpoint 15 -np 11
14:51:43:WU02:FS00:Started FahCore on PID 10183
14:51:43:WU02:FS00:Core PID:10187
14:51:43:WU02:FS00:FahCore 0xa7 started
14:51:43:WU01:FS01:Starting
[91m14:51:43:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually[0m
Here is the log prior to the upgrade:

Code: Select all

*********************** Log Started 2018-05-29T10:47:53Z ***********************
10:47:53:************************* Folding@home Client *************************
10:47:53:    Website: http://folding.stanford.edu/
10:47:53:  Copyright: (c) 2009-2014 Stanford University
10:47:53:     Author: Joseph Coffland <[email protected]>
10:47:53:       Args: --child --lifeline 1611 /etc/fahclient/config.xml --run-as
10:47:53:             fahclient --pid-file=/var/run/fahclient.pid --daemon
10:47:53:     Config: /etc/fahclient/config.xml
10:47:53:******************************** Build ********************************
10:47:53:    Version: 7.4.4
10:47:53:       Date: Mar 4 2014
10:47:53:       Time: 12:01:17
10:47:53:    SVN Rev: 4130
10:47:53:     Branch: fah/trunk/client
10:47:53:   Compiler: GNU 4.1.2 20080704 (Red Hat 4.1.2-46)
10:47:53:    Options: -std=gnu++98 -O3 -funroll-loops -mfpmath=sse -ffast-math
10:47:53:             -fno-unsafe-math-optimizations -msse2
10:47:53:   Platform: linux2 2.6.18-164.11.1.el5
10:47:53:       Bits: 64
10:47:53:       Mode: Release
10:47:53:******************************* System ********************************
10:47:53:        CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
10:47:53:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
10:47:53:       CPUs: 12
10:47:53:     Memory: 7.72GiB
10:47:53:Free Memory: 6.90GiB
10:47:53:    Threads: POSIX_THREADS
10:47:53: OS Version: 4.16
10:47:53:Has Battery: false
10:47:53: On Battery: false
10:47:53: UTC Offset: -5
10:47:53:        PID: 1613
10:47:53:        CWD: /var/lib/fahclient
10:47:53:         OS: Linux 4.16.11-300.fc28.x86_64 x86_64
10:47:53:    OS Arch: AMD64
10:47:53:       GPUs: 1
10:47:53:      GPU 0: NVIDIA:7 GP107 [GeForce GTX 1050 Ti] 2138
10:47:53:       CUDA: 6.1
10:47:53:CUDA Driver: 9010
10:47:53:***********************************************************************
10:47:53:<config>
10:47:53:  <!-- Folding Slot Configuration -->
10:47:53:  <gpu v='false'/>
10:47:53:
10:47:53:  <!-- HTTP Server -->
10:47:53:  <allow v='127.0.0.1,192.168.48.0/24'/>
10:47:53:
10:47:53:  <!-- Network -->
10:47:53:  <proxy v=':8080'/>
10:47:53:
10:47:53:  <!-- Remote Command Server -->
10:47:53:  <password v='********'/>
10:47:53:
10:47:53:  <!-- Slot Control -->
10:47:53:  <power v='full'/>
10:47:53:
10:47:53:  <!-- User Information -->
10:47:53:  <passkey v='********************************'/>
10:47:53:  <team v='439'/>
10:47:53:  <user v='goodyca'/>
10:47:53:
10:47:53:  <!-- Work Unit Control -->
10:47:53:  <next-unit-percentage v='100'/>
10:47:53:
10:47:53:  <!-- Folding Slots -->
10:47:53:  <slot id='0' type='CPU'/>
10:47:53:  <slot id='1' type='GPU'/>
10:47:53:</config>
10:47:53:Switching to user fahclient
10:47:53:Trying to access database...
10:47:54:Successfully acquired database lock
10:47:54:Enabled folding slot 00: READY cpu:11
10:47:54:Enabled folding slot 01: READY gpu:0:GP107 [GeForce GTX 1050 Ti]  2138
10:47:54:WU00:FS00:Starting
10:47:54:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/fahwebx.stanford.edu/cores/Linux/AMD64/AVX/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 704 -lifeline 1613 -checkpoint 15 -np 11
10:47:54:WU00:FS00:Started FahCore on PID 1623
10:47:54:WU00:FS00:Core PID:1627
10:47:54:WU00:FS00:FahCore 0xa7 started
10:47:55:WU00:FS00:0xa7:*********************** Log Started 2018-05-29T10:47:55Z ***********************
10:47:55:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
10:47:55:WU00:FS00:0xa7:       Type: 0xa7
10:47:55:WU00:FS00:0xa7:       Core: Gromacs
10:47:55:WU00:FS00:0xa7:    Website: http://folding.stanford.edu/
10:47:55:WU00:FS00:0xa7:  Copyright: (c) 2009-2016 Stanford University
10:47:55:WU00:FS00:0xa7:     Author: Joseph Coffland <[email protected]>
10:47:55:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 704 -lifeline 1623 -checkpoint 15 -np
10:47:55:WU00:FS00:0xa7:             11
10:47:55:WU00:FS00:0xa7:     Config: <none>
10:47:55:WU00:FS00:0xa7:************************************ Build *************************************
10:47:55:WU00:FS00:0xa7:    Version: 0.0.16
10:47:55:WU00:FS00:0xa7:       Date: Oct 31 2017
10:47:55:WU00:FS00:0xa7:       Time: 19:24:09
10:47:55:WU00:FS00:0xa7: Repository: Git
10:47:55:WU00:FS00:0xa7:   Revision: 2f0a8a3d0b0698be48154fe99a0216f289060932
10:47:55:WU00:FS00:0xa7:     Branch: master
10:47:55:WU00:FS00:0xa7:   Compiler: GNU 4.9.2
10:47:55:WU00:FS00:0xa7:    Options: -std=gnu++98 -O3 -funroll-loops
10:47:55:WU00:FS00:0xa7:   Platform: linux2 4.9.0-1-amd64
10:47:55:WU00:FS00:0xa7:       Bits: 64
10:47:55:WU00:FS00:0xa7:       Mode: Release
10:47:55:WU00:FS00:0xa7:       SIMD: avx_256
10:47:55:WU00:FS00:0xa7:************************************ System ************************************
10:47:55:WU00:FS00:0xa7:        CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
10:47:55:WU00:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
10:47:55:WU00:FS00:0xa7:       CPUs: 12
10:47:55:WU00:FS00:0xa7:     Memory: 7.72GiB
10:47:55:WU00:FS00:0xa7:Free Memory: 6.86GiB
10:47:55:WU00:FS00:0xa7:    Threads: POSIX_THREADS
10:47:55:WU00:FS00:0xa7: OS Version: 4.16
10:47:55:WU00:FS00:0xa7:Has Battery: false
10:47:55:WU00:FS00:0xa7: On Battery: false
10:47:55:WU00:FS00:0xa7: UTC Offset: -5
10:47:55:WU00:FS00:0xa7:        PID: 1627
10:47:55:WU00:FS00:0xa7:        CWD: /var/lib/fahclient/work
10:47:55:WU00:FS00:0xa7:         OS: Linux 4.16.11-300.fc28.x86_64 x86_64
10:47:55:WU00:FS00:0xa7:    OS Arch: AMD64
10:47:55:WU00:FS00:0xa7:********************************************************************************
10:47:55:WU00:FS00:0xa7:Project: 13798 (Run 10, Clone 2, Gen 7)
10:47:55:WU00:FS00:0xa7:Unit: 0x000000070002894c5ae74d2ccf1d4e01
10:47:55:WU00:FS00:0xa7:Digital signatures verified
10:47:55:WU00:FS00:0xa7:Reducing thread count from 11 to 10 to avoid domain decomposition by a prime number > 3
10:47:55:WU00:FS00:0xa7:Calling: mdrun -s frame7.tpr -o frame7.trr -cpi state.cpt -cpt 15 -nt 10
10:47:55:WU01:FS01:Starting
10:47:55:WU01:FS01:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/fahwebx.stanford.edu/cores/Linux/AMD64/NVIDIA/Fermi/Core_21.fah/FahCore_21 -dir 01 -suffix 01 -version 704 -lifeline 1613 -checkpoint 15 -gpu 0 -gpu-vendor nvidia
10:47:55:WU01:FS01:Started FahCore on PID 1808
10:47:55:WU01:FS01:Core PID:1815
10:47:55:WU01:FS01:FahCore 0x21 started
10:47:57:WU00:FS00:0xa7:Steps: first=17500000 total=2500000
10:47:57:WU01:FS01:0x21:*********************** Log Started 2018-05-29T10:47:57Z ***********************
10:47:57:WU01:FS01:0x21:Project: 11713 (Run 13, Clone 51, Gen 134)
10:47:57:WU01:FS01:0x21:Unit: 0x000000aa8ca304e75a5a5222bd63917b
10:47:57:WU01:FS01:0x21:CPU: 0x00000000000000000000000000000000
10:47:57:WU01:FS01:0x21:Machine: 1
10:47:57:WU01:FS01:0x21:Digital signatures verified
10:47:57:WU01:FS01:0x21:Folding@home GPU Core21 Folding@home Core
10:47:57:WU01:FS01:0x21:Version 0.0.18
10:48:00:WU00:FS00:0xa7:Completed 2434812 out of 2500000 steps (97%)
10:48:07:WU01:FS01:0x21:  Found a checkpoint file
10:48:18:WU01:FS01:0x21:Completed 750000 out of 7500000 steps (10%)
10:48:18:WU01:FS01:0x21:Temperature control disabled. Requirements: single Nvidia GPU, tmax must be < 110 and twait >= 900
10:50:29:WU00:FS00:0xa7:Completed 2450000 out of 2500000 steps (98%)
10:53:49:WU01:FS01:0x21:Completed 825000 out of 7500000 steps (11%)
What do need to do to get the GPU to fold?
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

goodyca wrote:I have just upgraded from version 7.4.4 to 7.5.1. Since upgrading, I am getting the following error:

ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually

Prior to upgrading, the GPU was folding without problem.

Here is the log after the upgrade:

Code: Select all

14:51:17:         GPUs: 1
14:51:17:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP107 [GeForce GTX 1050 Ti] 2138
14:51:17:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:9.1
14:51:17:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
14:51:17:               libOpenCL.so: cannot open shared object file: No such file or
14:51:17:               directory
What do need to do to get the GPU to fold?
Both the old and new FAHCore will fail when FAH cannot find the OpenCL drivers and I don't see how changing the Client would matter. When you install your Video drivers, libOpenCL should come with it although some sources for the Video drivers don't include them.

This is most commonly caused by WindowsUpdate, but for your Linux system, you still need to have OpenCL drivers that are compatible with your GPU. ... whether it's a .dll or a .so.
goodyca
Posts: 187
Joined: Sun Dec 02, 2007 12:36 pm

Re: New released client

Post by goodyca »

Setting opencl-index to 0 instead of the default value of -1 fixed it.
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

Really?

Set it back to -1 and temporarily increase the verbosity. Restart FAHClient. That should show that FAHClient changes opencl-index from -1 to 0 for a system like yours. Is that not working?

It's possible that simply restarting FAHClient would have accomplished the same thing as setting it manually.
DocJonz
Posts: 244
Joined: Thu Dec 06, 2007 6:31 pm
Hardware configuration: Folding with: 4x RTX 4070Ti, 1x RTX 4080 Super
Location: United Kingdom
Contact:

Re: opencl-index=-1

Post by DocJonz »

For what it is worth ...
I did a new install of Ubuntu 18.04 LTS on my test machine (which has two GTX 970s) and put on the v7.5.1 client. Two issues I came across;

1. As always with a fresh install of the fahclient, GPUs.txt is not present (this has ALWAYS happened to me every time I have installed any client over recent years ...) - I have to manually download it and add it to the fahclient directory (annoying, but easy once you know how).

2. In adding the GPU slots, I got an opencl-index error, with the client log telling me to set it manually. After a bit of fiddling, I set GPU1 to 0 and GPU2 to 1, and this seems to have worked - they are now Folding at any rate. (Note: I have never had to change the opencl-index settings in all the years I have been folding on dual GPU rigs).
Folding Stats (HFM.NET): DocJonz Folding Farm Stats
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

@DocJonz

1) FAH is supposed to download GPUs.txt. It has always been a bit of a problem because it has to complete that step BEFORE it tries to configure the GPUs, which is the first thing that happens. There's a new message about that in the log, but I have not tried it myself.

Code: Select all

07:13:30:Connecting to assign1.foldingathome.org:8080
07:13:30:Updated GPUs.txt
07:13:30:Read GPUs.txt
2) The ideal solution is to get the client to configure the slots correctly but Development would have to understand why that's not working. Please post the log showing that particular failure -- especially the opencl-index error.

Did you start with a preconfigured config.xml or did you do a clean install?
DocJonz
Posts: 244
Joined: Thu Dec 06, 2007 6:31 pm
Hardware configuration: Folding with: 4x RTX 4070Ti, 1x RTX 4080 Super
Location: United Kingdom
Contact:

Re: opencl-index=-1

Post by DocJonz »

@bruce

1) I understood that GPUs.txt was supposed to get pulled down, but unfortunately, it has never done so for me.
2) The log is a bit of a mess as I had to stop and start it a number of times to, for example; stop the CPU folding, get it restart with the GPUs.txt file manually installed, set remote access (and restart for it to take effect), add the GPU slots ...

At the very start, it did seem to have some issues identifying OpenCL (even though OpenCL 1.2 was present);

Code: Select all

********************************
16:09:48:          CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
16:09:48:       CPU ID: GenuineIntel Family 6 Model 15 Stepping 11
16:09:48:         CPUs: 4
16:09:48:       Memory: 3.85GiB
16:09:48:  Free Memory: 3.32GiB
16:09:48:      Threads: POSIX_THREADS
16:09:48:   OS Version: 4.15
16:09:48:  Has Battery: false
16:09:48:   On Battery: false
16:09:48:   UTC Offset: 1
16:09:48:          PID: 1095
16:09:48:          CWD: /var/lib/fahclient
16:09:48:           OS: Linux 4.15.0-22-generic x86_64
16:09:48:      OS Arch: AMD64
16:09:48:         GPUs: 2
16:09:48:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:5 GM204 [GeForce GTX 970]
16:09:48:        GPU 1: Bus:4 Slot:0 Func:0 NVIDIA:5 GM204 [GeForce GTX 970]
16:09:48:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:5.2 Driver:9.2
16:09:48:CUDA Device 1: Platform:0 Device:1 Bus:4 Slot:0 Compute:5.2 Driver:9.2
16:09:48:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
16:09:48:               libOpenCL.so: cannot open shared object file: No such file or
16:09:48:               directory
16:09:48:***********************************************************************
Then the index error was here;

Code: Select all

16:11:22:WU01:FS01:FahCore 21: Download complete
16:11:23:WU02:FS02:Download 88.09%
16:11:23:WU01:FS01:Valid core signature
16:11:23:WU01:FS01:Unpacked 7.94MiB to cores/cores.foldingathome.org/Linux/AMD64/NVIDIA/Fermi/Core_21.fah/FahCore_21
16:11:23:WU02:FS02:Download complete
16:11:24:WU01:FS01:Starting
[91m16:11:24:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually[0m
16:11:24:WU01:FS01:Starting
[91m16:11:24:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually[0m
16:11:25:WU02:FS02:Received Unit: id:02 state:DOWNLOAD error:NO_ERROR project:11713 run:7 clone:327 gen:62 core:0x21 unit:0x000000548ca304e75adf752ea5b82f58
16:11:25:WU02:FS02:Starting
[91m16:11:25:ERROR:WU02:FS02:Failed to start core: OpenCL device matching slot 2 not found, try setting 'opencl-index' manually[0m
16:11:25:WU02:FS02:Starting
[91m16:11:25:ERROR:WU02:FS02:Failed to start core: OpenCL device matching slot 2 not found, try setting 'opencl-index' manually[0m
This was a fresh install on a fresh OS, so there was nothing pre-configured.
Folding Stats (HFM.NET): DocJonz Folding Farm Stats
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

Code: Select all

OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':libOpenCL.so: cannot open shared object file: No such file or directory
This error will be followed by the other error messages you've reported. The library must be functional. In fact, FAH is not recognizing any GPU that has OpenCL support, so there is no valid value for opencl-index. The suggestion to set it manually is misleading.

This machine has one GPU so it gets two messages, one about CUDA and another about OpenCL.

Code: Select all

CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:3.5 Driver:9.1
OpenCL Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:390.65
Since you have two GPUs, you should get four messages identifying the Compute level and the Driver version.
DocJonz
Posts: 244
Joined: Thu Dec 06, 2007 6:31 pm
Hardware configuration: Folding with: 4x RTX 4070Ti, 1x RTX 4080 Super
Location: United Kingdom
Contact:

Re: opencl-index=-1

Post by DocJonz »

Not sure why it could not recognise that OpenCL was present - I had even checked it was there by running clinfo.
So, if it doesn't recognise that OpenCL is present, why did it start Folding on both GPUs when I changed the opencl-index values? Both GPUs are now on their 3rd WU ...
If you, or the developers, want the whole log to interrogate, I can PM it to you.
Folding Stats (HFM.NET): DocJonz Folding Farm Stats
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

Are you still getting that message when FAHClient is restarted?
Does the library exist?
Was it included in the path as seen by FAHClient?

You can post applicable segments of the log here.
DocJonz
Posts: 244
Joined: Thu Dec 06, 2007 6:31 pm
Hardware configuration: Folding with: 4x RTX 4070Ti, 1x RTX 4080 Super
Location: United Kingdom
Contact:

Re: opencl-index=-1

Post by DocJonz »

Yes, it looks like if I do a client restart I get the same message;

Code: Select all

********************************
15:26:09:          CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
15:26:09:       CPU ID: GenuineIntel Family 6 Model 15 Stepping 11
15:26:09:         CPUs: 4
15:26:09:       Memory: 3.85GiB
15:26:09:  Free Memory: 3.33GiB
15:26:09:      Threads: POSIX_THREADS
15:26:09:   OS Version: 4.15
15:26:09:  Has Battery: false
15:26:09:   On Battery: false
15:26:09:   UTC Offset: 1
15:26:09:          PID: 1111
15:26:09:          CWD: /var/lib/fahclient
15:26:09:           OS: Linux 4.15.0-22-generic x86_64
15:26:09:      OS Arch: AMD64
15:26:09:         GPUs: 2
15:26:09:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:5 GM204 [GeForce GTX 970]
15:26:09:        GPU 1: Bus:4 Slot:0 Func:0 NVIDIA:5 GM204 [GeForce GTX 970]
15:26:09:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:5.2 Driver:9.2
15:26:09:CUDA Device 1: Platform:0 Device:1 Bus:4 Slot:0 Compute:5.2 Driver:9.2
15:26:09:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
15:26:09:               libOpenCL.so: cannot open shared object file: No such file or
15:26:09:               directory
15:26:09:***********************************************************************
There is libOpenCl.so.1 and libOpenCL.so.1.0.0 located in '/usr/lib/x86_64-linux-gnu' if I search the PC.
You ask whether the path to it is seen by FAHClient - how do I check that?
Folding Stats (HFM.NET): DocJonz Folding Farm Stats
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: opencl-index=-1

Post by bruce »

When a library is installed, the file itself contains a version number but a link is supposed to be created so that an invariant name points to the current version. Your path must contain the entry libOpenCL.so which should point to libOpenCl.so.1 or libOpenCL.so.1.0.0.

How did you install libOpenCL.so? Maybe you need to correct that installation.
bollix47
Posts: 2963
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: opencl-index=-1

Post by bollix47 »

@DocJonz

Open a terminal and try the following after which restart the client and see if the opencl lines look better:

Code: Select all

sudo apt install ocl-icd-opencl-dev
Source: viewtopic.php?p=301659#p301659 (although it's mentioned in other posts too)
DocJonz
Posts: 244
Joined: Thu Dec 06, 2007 6:31 pm
Hardware configuration: Folding with: 4x RTX 4070Ti, 1x RTX 4080 Super
Location: United Kingdom
Contact:

Re: opencl-index=-1

Post by DocJonz »

@bollix47

I have run the code you gave (though modified it to 'apt-get') and then restarted the Client - this does correct the two OpenCL lines in the log.
I also went back into the client and reset the opencl-index values to -1 - this seems to be OK as well.

So, it seems that though FAH came up with the OpenCL errors, even though OpenCL was present and it could Fold on the GPUs, whatever your line of code has done has made the Client happier!
Folding Stats (HFM.NET): DocJonz Folding Farm Stats
bollix47
Posts: 2963
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: opencl-index=-1

Post by bollix47 »

The ocl-icd-opencl-dev software includes headers & libraries required by software that use opencl.

The changes you saw after installing it would suggest that your opencl installation was not complete. What nvidia drivers are you using and how did you install them? Also, what version of linux are you using?
Post Reply