Hello,
I have trouble to run Folding@Home (FAH) with GPU (OpenCL) Support.
If I start FAHClient it starts, but it only run with CPU support. FAHClient detects the graphiccard correct and try to start libOpenCL, but it failed:
>FAHClient
15:52:29:INFO(1):Read GPUs.txt
15:52:29:Removing old file 'logs/log-20200318-185829.txt'
15:52:29:************************* Folding@home Client *************************
15:52:29: Website:
https://foldingathome.org/
15:52:29: Copyright: (c) 2009-2018 foldingathome.org
15:52:29: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
15:52:29: Args:
15:52:29: Config: /home/home/***/Downloads/Folding_at_Home/config.xml
15:52:29:******************************** Build ********************************
15:52:29: Version: 7.5.1
15:52:29: Date: May 11 2018
15:52:29: Time: 19:59:04
15:52:29: Repository: Git
15:52:29: Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
15:52:29: Branch: master
15:52:29: Compiler: GNU 6.3.0 20170516
15:52:29: Options: -std=gnu++98 -O3 -funroll-loops
15:52:29: Platform: linux2 4.14.0-3-amd64
15:52:29: Bits: 64
15:52:29: Mode: Release
15:52:29:******************************* System ********************************
15:52:29: CPU: AMD Ryzen 9 3950X 16-Core Processor
15:52:29: CPU ID: AuthenticAMD Family 23 Model 113 Stepping 0
15:52:29: CPUs: 32
15:52:29: Memory: 31.32GiB
15:52:29: Free Memory: 22.76GiB
15:52:29: Threads: POSIX_THREADS
15:52:29: OS Version: 4.12
15:52:29: Has Battery: false
15:52:29: On Battery: false
15:52:29: UTC Offset: 1
15:52:29: PID: 6723
15:52:29: CWD: /home/home/***/Downloads/Folding_at_Home
15:52:29: OS: Linux 4.12.14-lp151.28.44-default x86_64
15:52:29: OS Arch: AMD64
15:52:29: GPUs: 1
15:52:29: GPU 0: Bus:8 Slot:0 Func:0 NVIDIA:7 TU116-250 [GeForce GTX 1650 SUPER]
15:52:29:CUDA Device 0: Platform:0 Device:0 Bus:8 Slot:0 Compute:7.5 Driver:10.2
15:52:29: OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
15:52:29: libOpenCL.so: cannot open shared object file: No such file or
15:52:29: directory
15:52:29:***********************************************************************
15:52:29:<config>
I can't find libOpenCL.so in /usr/lib64, but it is in /usr/lib:
#whereis libOpenCL
libOpenCL: /usr/lib/libOpenCL.so
# la /usr/lib/libOpenCL*
lrwxrwxrwx 1 root root 14 26. Feb 12:21 /usr/lib/libOpenCL.so -> libOpenCL.so.1
lrwxrwxrwx 1 root root 18 26. Feb 12:21 /usr/lib/libOpenCL.so.1 -> libOpenCL.so.1.0.0
-rwxr-xr-x 1 root root 32084 26. Feb 12:21 /usr/lib/libOpenCL.so.1.0.0
Ok, if I make a link in /usr/lib64 with ln - /usr/lib/libOpenCL.so it FAHClient is trying to load libOpenCL.so, but it failed and is reporting wrong binary ELF-Format:
OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
17:14:36: libOpenCL.so: wrong ELF class: ELFCLASS32
libOpenCL is installed:
#zypper search libopencl
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
S | Name | Zusammenfassung | Typ
---+--------------------------+----------------------------------------------+------
i+ | Mesa-libOpenCL | Mesa OpenCL implementation | Paket
| Mesa-libOpenCL-debuginfo | Debug information for package Mesa-libOpenCL | Paket
i+ | libOpenCL1 | OpenCL ICD Bindings | Paket
| libOpenCL1-debuginfo | Debug information for package libOpenCL1 | Paket
Graphiccard is installed and is working well:
# clinfo
Number of platforms 2
Platform Name NVIDIA CUDA
Platform Vendor NVIDIA Corporation
Platform Version OpenCL 1.2 CUDA 10.2.141
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
Platform Extensions function suffix NV
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 18.3.2
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
Platform Name NVIDIA CUDA
Number of devices 1
Device Name GeForce GTX 1650 SUPER
Device Vendor NVIDIA Corporation
Device Vendor ID 0x10de
Device Version OpenCL 1.2 CUDA
Driver Version 440.64
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Topology (NV) PCI-E, 08:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 20
Max clock frequency 1725MHz
Compute Capability (NV) 7.5
Device Partition (core)
Max number of sub-devices 1
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x64
Max work group size 1024
Preferred work group size multiple 32
Warp size (NV) 32
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (n/a)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 4100521984 (3.819GiB)
Error Correction support No
Max memory allocation 1025130496 (977.6MiB)
Unified memory for Host and Device No
Integrated memory (NV) No
Minimum alignment for any data type 128 bytes
Alignment of base address 4096 bits (512 bytes)
Global Memory cache type Read/Write
Global Memory cache size 655360 (640KiB)
Global Memory cache line size 128 bytes
Image support Yes
Max number of samplers per kernel 32
Max size for 1D images from buffer 268435456 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 32768x32768 pixels
Max 3D image size 16384x16384x16384 pixels
Max number of read image args 256
Max number of write image args 32
Local memory type Local
Local memory size 49152 (48KiB)
Registers per block (NV) 65536
Max number of constant args 9
Max constant buffer size 65536 (64KiB)
Max size of kernel argument 4352 (4.25KiB)
Queue properties
Out-of-order execution Yes
Profiling Yes
Prefer user sync for interop No
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Kernel execution timeout (NV) Yes
Concurrent copy and kernel execution (NV) Yes
Number of async copy engines 3
printf() buffer size 1048576 (1024KiB)
Built-in kernels (n/a)
Device Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
Platform Name Clover
Number of devices 0
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) NVIDIA CUDA
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [NV]
clCreateContext(NULL, ...) [default] Success [NV]
clCreateContext(NULL, ...) [other] @n�1HV
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.11
ICD loader Profile OpenCL 2.1
I think trouble is in the library, but I can't fix it, so I beg your help.