clGetPlatformIDs() returned -1001
Posted: Sun Dec 10, 2023 4:15 pm
I've been trying to get V8.1.18 to work on a Raspberry Pi 4 running Raspberry Pi OS Bookworm. It's a remote server running headless, but all it does it error with:
```
pi@folding ~> fah-client -v
16:14:08:I1:*********************** Folding@home Client ***********************
16:14:08:I1: Version: 8.1.18
16:14:08:I1: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:14:08:I1: Org: foldingathome.org
16:14:08:I1: Copyright: 2023 foldingathome.org
16:14:08:I1: Homepage: https://foldingathome.org/
16:14:08:I1: License: https://www.gnu.org/licenses/gpl-3.0.txt
16:14:08:I1: Date: Apr 18 2023
16:14:08:I1: Time: 12:09:13
16:14:08:I1: Revision: 80a3d5eb8f60f7833de2954087682958b511895c
16:14:08:I1: Branch: master
16:14:08:I1: Compiler: GNU 10.2.1 20210110
16:14:08:I1: Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:14:08:I1: -fdata-sections -O3 -funroll-loops -fno-pie
16:14:08:I1: Platform: linux 5.10.0-15-arm64
16:14:08:I1: Bits: 64
16:14:08:I1: Mode: Release
16:14:08:I1: Args: -v
16:14:08:I1:****************************** CBang ******************************
16:14:08:I1: Version: 1.7.2
16:14:08:I1: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:14:08:I1: Org: Cauldron Development LLC
16:14:08:I1: Copyright: Cauldron Development LLC, 2003-2023
16:14:08:I1: Homepage: https://cauldrondevelopment.com/
16:14:08:I1: License: GPL 2+
16:14:08:I1: Date: Apr 14 2023
16:14:08:I1: Time: 16:50:35
16:14:08:I1: Revision: ac8bbdd5bb93c01679a881f5962fed800bf29e58
16:14:08:I1: Branch: master
16:14:08:I1: Compiler: GNU 10.2.1 20210110
16:14:08:I1: Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:14:08:I1: -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
16:14:08:I1: Platform: linux 5.10.0-15-arm64
16:14:08:I1: Bits: 64
16:14:08:I1: Mode: Release
16:14:08:I1:***************************** System ******************************
16:14:08:I1: CPU: Cortex-A
16:14:08:I1: CPU ID: ARM Family 8 Model 72 Stepping 3
16:14:08:I1: CPUs: 4
16:14:08:I1: Memory: 1.80GiB
16:14:08:I1:Free Memory: 1.38GiB
16:14:08:I1: Threads: POSIX_THREADS
16:14:08:I1: OS Version: 6.1
16:14:08:I1:Has Battery: false
16:14:08:I1: On Battery: false
16:14:08:I1: UTC Offset: 0
16:14:08:I1: PID: 5626
16:14:08:I1: CWD: /home/pi
16:14:08:I1: Exec: /usr/bin/fah-client
16:14:08:I1:*******************************************************************
16:14:08:I2:<config>
16:14:08:I2: <!-- Client -->
16:14:08:I2: <allowed-origins v='https://app.foldingathome.org'/>
16:14:08:I2: <fold-anon v='false'/>
16:14:08:I2: <on-idle v='false'/>
16:14:08:I2: <open-web-control v='false'/>
16:14:08:I2:
16:14:08:I2: <!-- Debugging -->
16:14:08:I2: <assignment-servers v='assign1.foldingathome.org assign2.foldingathome.org assign3.foldingathome.org assign4.foldingathome.org assign5.foldingathome.org assign6.foldingathome.org'/>
16:14:08:I2: <capture-directory v='capture'/>
16:14:08:I2: <capture-sockets v='false'/>
16:14:08:I2: <debug-libevent v='false'/>
16:14:08:I2: <debug-sockets v='false'/>
16:14:08:I2: <exception-locations v='true'/>
16:14:08:I2: <stack-traces v='false'/>
16:14:08:I2:
16:14:08:I2: <!-- HTTP Server -->
16:14:08:I2: <allow v='0/0'/>
16:14:08:I2: <http-addresses v='127.0.0.1:7396'/>
16:14:08:I2:
16:14:08:I2: <!-- Logging -->
16:14:08:I2: <log v='log.txt'/>
16:14:08:I2: <log-color v='true'/>
16:14:08:I2: <log-crlf v='false'/>
16:14:08:I2: <log-date v='false'/>
16:14:08:I2: <log-date-periodically v='0'/>
16:14:08:I2: <log-domain v='false'/>
16:14:08:I2: <log-header v='true'/>
16:14:08:I2: <log-level v='true'/>
16:14:08:I2: <log-no-info-header v='true'/>
16:14:08:I2: <log-rotate v='true'/>
16:14:08:I2: <log-rotate-compression v='0'/>
16:14:08:I2: <log-rotate-dir v='logs'/>
16:14:08:I2: <log-rotate-max v='90'/>
16:14:08:I2: <log-rotate-period v='86400'/>
16:14:08:I2: <log-short-level v='true'/>
16:14:08:I2: <log-simple-domains v='true'/>
16:14:08:I2: <log-thread-id v='false'/>
16:14:08:I2: <log-thread-prefix v='true'/>
16:14:08:I2: <log-time v='true'/>
16:14:08:I2: <log-to-screen v='true'/>
16:14:08:I2: <log-truncate v='false'/>
16:14:08:I2: <verbosity v='3'/>
16:14:08:I2:
16:14:08:I2: <!-- Project Settings -->
16:14:08:I2: <cause v='any'/>
16:14:08:I2: <project-key v='0'/>
16:14:08:I2:
16:14:08:I2: <!-- User Information -->
16:14:08:I2: <passkey v='*****'/>
16:14:08:I2: <team v='0'/>
16:14:08:I2: <user v='Anonymous'/>
16:14:08:I2:</config>
16:14:08:I1:Opening Database
16:14:08:I1:Listening for HTTP on 127.0.0.1:7396
16:14:08:I3:id = +gqNuDm0xon5t4dpZunMRR+WiWnrm1wxGQQT2eWb0GA=
16:14:08:I3:Loaded 0 wus.
16:14:08:E :Exception: clGetPlatformIDs() returned -1001
16:14:08:E :Exception: Failed to open dynamic library 'libcuda.so': libcuda.so: cannot open shared object file: No such file or directory
```
It also included an error stating that OpenCL didn't exist, however I've since installed that. It seems to be trying to use an Nvidia GPU instead of the Pi's CPU cores… Asking for any help, I can't access the web interface at https://app.foldingathome.org/ to change settings, as it just perpetually says 'connecting…'.
I've tried changing a number of things in config.xml, but due to most search results being for V7.x they don't work.
```
pi@folding ~> fah-client -v
16:14:08:I1:*********************** Folding@home Client ***********************
16:14:08:I1: Version: 8.1.18
16:14:08:I1: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:14:08:I1: Org: foldingathome.org
16:14:08:I1: Copyright: 2023 foldingathome.org
16:14:08:I1: Homepage: https://foldingathome.org/
16:14:08:I1: License: https://www.gnu.org/licenses/gpl-3.0.txt
16:14:08:I1: Date: Apr 18 2023
16:14:08:I1: Time: 12:09:13
16:14:08:I1: Revision: 80a3d5eb8f60f7833de2954087682958b511895c
16:14:08:I1: Branch: master
16:14:08:I1: Compiler: GNU 10.2.1 20210110
16:14:08:I1: Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:14:08:I1: -fdata-sections -O3 -funroll-loops -fno-pie
16:14:08:I1: Platform: linux 5.10.0-15-arm64
16:14:08:I1: Bits: 64
16:14:08:I1: Mode: Release
16:14:08:I1: Args: -v
16:14:08:I1:****************************** CBang ******************************
16:14:08:I1: Version: 1.7.2
16:14:08:I1: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:14:08:I1: Org: Cauldron Development LLC
16:14:08:I1: Copyright: Cauldron Development LLC, 2003-2023
16:14:08:I1: Homepage: https://cauldrondevelopment.com/
16:14:08:I1: License: GPL 2+
16:14:08:I1: Date: Apr 14 2023
16:14:08:I1: Time: 16:50:35
16:14:08:I1: Revision: ac8bbdd5bb93c01679a881f5962fed800bf29e58
16:14:08:I1: Branch: master
16:14:08:I1: Compiler: GNU 10.2.1 20210110
16:14:08:I1: Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:14:08:I1: -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
16:14:08:I1: Platform: linux 5.10.0-15-arm64
16:14:08:I1: Bits: 64
16:14:08:I1: Mode: Release
16:14:08:I1:***************************** System ******************************
16:14:08:I1: CPU: Cortex-A
16:14:08:I1: CPU ID: ARM Family 8 Model 72 Stepping 3
16:14:08:I1: CPUs: 4
16:14:08:I1: Memory: 1.80GiB
16:14:08:I1:Free Memory: 1.38GiB
16:14:08:I1: Threads: POSIX_THREADS
16:14:08:I1: OS Version: 6.1
16:14:08:I1:Has Battery: false
16:14:08:I1: On Battery: false
16:14:08:I1: UTC Offset: 0
16:14:08:I1: PID: 5626
16:14:08:I1: CWD: /home/pi
16:14:08:I1: Exec: /usr/bin/fah-client
16:14:08:I1:*******************************************************************
16:14:08:I2:<config>
16:14:08:I2: <!-- Client -->
16:14:08:I2: <allowed-origins v='https://app.foldingathome.org'/>
16:14:08:I2: <fold-anon v='false'/>
16:14:08:I2: <on-idle v='false'/>
16:14:08:I2: <open-web-control v='false'/>
16:14:08:I2:
16:14:08:I2: <!-- Debugging -->
16:14:08:I2: <assignment-servers v='assign1.foldingathome.org assign2.foldingathome.org assign3.foldingathome.org assign4.foldingathome.org assign5.foldingathome.org assign6.foldingathome.org'/>
16:14:08:I2: <capture-directory v='capture'/>
16:14:08:I2: <capture-sockets v='false'/>
16:14:08:I2: <debug-libevent v='false'/>
16:14:08:I2: <debug-sockets v='false'/>
16:14:08:I2: <exception-locations v='true'/>
16:14:08:I2: <stack-traces v='false'/>
16:14:08:I2:
16:14:08:I2: <!-- HTTP Server -->
16:14:08:I2: <allow v='0/0'/>
16:14:08:I2: <http-addresses v='127.0.0.1:7396'/>
16:14:08:I2:
16:14:08:I2: <!-- Logging -->
16:14:08:I2: <log v='log.txt'/>
16:14:08:I2: <log-color v='true'/>
16:14:08:I2: <log-crlf v='false'/>
16:14:08:I2: <log-date v='false'/>
16:14:08:I2: <log-date-periodically v='0'/>
16:14:08:I2: <log-domain v='false'/>
16:14:08:I2: <log-header v='true'/>
16:14:08:I2: <log-level v='true'/>
16:14:08:I2: <log-no-info-header v='true'/>
16:14:08:I2: <log-rotate v='true'/>
16:14:08:I2: <log-rotate-compression v='0'/>
16:14:08:I2: <log-rotate-dir v='logs'/>
16:14:08:I2: <log-rotate-max v='90'/>
16:14:08:I2: <log-rotate-period v='86400'/>
16:14:08:I2: <log-short-level v='true'/>
16:14:08:I2: <log-simple-domains v='true'/>
16:14:08:I2: <log-thread-id v='false'/>
16:14:08:I2: <log-thread-prefix v='true'/>
16:14:08:I2: <log-time v='true'/>
16:14:08:I2: <log-to-screen v='true'/>
16:14:08:I2: <log-truncate v='false'/>
16:14:08:I2: <verbosity v='3'/>
16:14:08:I2:
16:14:08:I2: <!-- Project Settings -->
16:14:08:I2: <cause v='any'/>
16:14:08:I2: <project-key v='0'/>
16:14:08:I2:
16:14:08:I2: <!-- User Information -->
16:14:08:I2: <passkey v='*****'/>
16:14:08:I2: <team v='0'/>
16:14:08:I2: <user v='Anonymous'/>
16:14:08:I2:</config>
16:14:08:I1:Opening Database
16:14:08:I1:Listening for HTTP on 127.0.0.1:7396
16:14:08:I3:id = +gqNuDm0xon5t4dpZunMRR+WiWnrm1wxGQQT2eWb0GA=
16:14:08:I3:Loaded 0 wus.
16:14:08:E :Exception: clGetPlatformIDs() returned -1001
16:14:08:E :Exception: Failed to open dynamic library 'libcuda.so': libcuda.so: cannot open shared object file: No such file or directory
```
It also included an error stating that OpenCL didn't exist, however I've since installed that. It seems to be trying to use an Nvidia GPU instead of the Pi's CPU cores… Asking for any help, I can't access the web interface at https://app.foldingathome.org/ to change settings, as it just perpetually says 'connecting…'.
I've tried changing a number of things in config.xml, but due to most search results being for V7.x they don't work.