FAHClient fails to find working OpenCL Platform

Moderators: Site Moderators, FAHC Science Team

Post Reply
Vamp898
Posts: 1
Joined: Fri Apr 26, 2024 8:24 am

FAHClient fails to find working OpenCL Platform

Post by Vamp898 »

Hi there,

i can not use my GPU because the Client says, there is no OpenCL platform

Code: Select all

08:20:59:WU01:FS01:0x22:*********************** Log Started 2024-04-26T08:20:58Z ***********************
08:20:59:WU01:FS01:0x22:*************************** Core22 Folding@home Core ***************************
08:20:59:WU01:FS01:0x22:       Core: Core22
08:20:59:WU01:FS01:0x22:       Type: 0x22
08:20:59:WU01:FS01:0x22:    Version: 0.0.20
08:20:59:WU01:FS01:0x22:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
08:20:59:WU01:FS01:0x22:  Copyright: 2020 foldingathome.org
08:20:59:WU01:FS01:0x22:   Homepage: https://foldingathome.org/
08:20:59:WU01:FS01:0x22:       Date: Jan 20 2022
08:20:59:WU01:FS01:0x22:       Time: 00:57:52
08:20:59:WU01:FS01:0x22:   Revision: 3f211b8a4346514edbff34e3cb1c0e0ec951373c
08:20:59:WU01:FS01:0x22:     Branch: HEAD
08:20:59:WU01:FS01:0x22:   Compiler: GNU 9.4.0
08:20:59:WU01:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
08:20:59:WU01:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
08:20:59:WU01:FS01:0x22:             -DOPENMM_VERSION="\"7.7.0\""
08:20:59:WU01:FS01:0x22:   Platform: linux 5.11.0-1025-azure
08:20:59:WU01:FS01:0x22:       Bits: 64
08:20:59:WU01:FS01:0x22:       Mode: Release
08:20:59:WU01:FS01:0x22:Maintainers: John Chodera <john.chodera@choderalab.org> and Peter Eastman
08:20:59:WU01:FS01:0x22:             <peastman@stanford.edu>
08:20:59:WU01:FS01:0x22:       Args: -dir 01 -suffix 01 -version 706 -lifeline 18778 -checkpoint 15
08:20:59:WU01:FS01:0x22:             -opencl-platform 0 -opencl-device 0 -gpu-vendor amd -gpu 0
08:20:59:WU01:FS01:0x22:             -gpu-usage 100
08:20:59:WU01:FS01:0x22:************************************ libFAH ************************************
08:20:59:WU01:FS01:0x22:       Date: Jan 20 2022
08:20:59:WU01:FS01:0x22:       Time: 00:57:22
08:20:59:WU01:FS01:0x22:   Revision: 9f4ad694e75c2350d4bb6b8b5b769ba27e483a2f
08:20:59:WU01:FS01:0x22:     Branch: HEAD
08:20:59:WU01:FS01:0x22:   Compiler: GNU 9.4.0
08:20:59:WU01:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
08:20:59:WU01:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
08:20:59:WU01:FS01:0x22:   Platform: linux 5.11.0-1025-azure
08:20:59:WU01:FS01:0x22:       Bits: 64
08:20:59:WU01:FS01:0x22:       Mode: Release
08:20:59:WU01:FS01:0x22:************************************ CBang *************************************
08:20:59:WU01:FS01:0x22:       Date: Jan 20 2022
08:20:59:WU01:FS01:0x22:       Time: 00:57:00
08:20:59:WU01:FS01:0x22:   Revision: ab023d155b446906d55b0f6c9a1eedeea04f7a1a
08:20:59:WU01:FS01:0x22:     Branch: HEAD
08:20:59:WU01:FS01:0x22:   Compiler: GNU 9.4.0
08:20:59:WU01:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
08:20:59:WU01:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
08:20:59:WU01:FS01:0x22:   Platform: linux 5.11.0-1025-azure
08:20:59:WU01:FS01:0x22:       Bits: 64
08:20:59:WU01:FS01:0x22:       Mode: Release
08:20:59:WU01:FS01:0x22:************************************ System ************************************
08:20:59:WU01:FS01:0x22:        CPU: AMD Ryzen 7 5700G with Radeon Graphics
08:20:59:WU01:FS01:0x22:     CPU ID: AuthenticAMD Family 25 Model 80 Stepping 0
08:20:59:WU01:FS01:0x22:       CPUs: 16
08:20:59:WU01:FS01:0x22:     Memory: 54.71GiB
08:20:59:WU01:FS01:0x22:Free Memory: 44.77GiB
08:20:59:WU01:FS01:0x22:    Threads: POSIX_THREADS
08:20:59:WU01:FS01:0x22: OS Version: 6.8
08:20:59:WU01:FS01:0x22:Has Battery: false
08:20:59:WU01:FS01:0x22: On Battery: false
08:20:59:WU01:FS01:0x22: UTC Offset: 9
08:20:59:WU01:FS01:0x22:        PID: 18782
08:20:59:WU01:FS01:0x22:        CWD: /home/vamp898/work
08:20:59:WU01:FS01:0x22:************************************ OpenMM ************************************
08:20:59:WU01:FS01:0x22:    Version: 7.7.0
08:20:59:WU01:FS01:0x22:********************************************************************************
08:20:59:WU01:FS01:0x22:Project: 19217 (Run 1744, Clone 0, Gen 17)
08:20:59:WU01:FS01:0x22:Reading tar file core.xml
08:20:59:WU01:FS01:0x22:Reading tar file integrator.xml
08:20:59:WU01:FS01:0x22:Reading tar file state.xml
08:20:59:WU01:FS01:0x22:Reading tar file system.xml
08:20:59:WU01:FS01:0x22:Digital signatures verified
08:20:59:WU01:FS01:0x22:Folding@home GPU Core22 Folding@home Core
08:20:59:WU01:FS01:0x22:Version 0.0.20
08:20:59:WU01:FS01:0x22:  Checkpoint write interval: 62500 steps (5%) [20 total]
08:20:59:WU01:FS01:0x22:  JSON viewer frame write interval: 12500 steps (1%) [100 total]
08:20:59:WU01:FS01:0x22:  XTC frame write interval: 25000 steps (2%) [50 total]
08:20:59:WU01:FS01:0x22:  Global context and integrator variables write interval: disabled
08:20:59:WU01:FS01:0x22:There are 2 platforms available.
08:20:59:WU01:FS01:0x22:Platform 0: Reference
08:20:59:WU01:FS01:0x22:Platform 1: CPU
08:20:59:WU01:FS01:0x22:opencl-device was set but OpenCL platform could not be found.
08:20:59:WU01:FS01:0x22:ERROR:126: Neither CUDA nor OpenCL is available.
08:20:59:WU01:FS01:0x22:Saving result file ../logfile_01.txt
08:20:59:WU01:FS01:0x22:Saving result file science.log
08:20:59:WU01:FS01:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
According to clinfo, the Card should be working fine

Code: Select all

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP.dbg (3602.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx90c:xnack-
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3602.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon Graphics
  Device PCI-e ID (AMD)                           0x1638
  Device Topology (AMD)                           PCI-E, 0000:07:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2000MHz
  Graphics IP (AMD)                               9.0
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     64
  Wavefront width (AMD)                           64
  Preferred / native vector sizes                 
    char                                                 4 / 4       
    short                                                2 / 2       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    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
  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                              8589934592 (8GiB)
  Global free memory (AMD)                        8202240 (7.822GiB) 8202240 (7.822GiB)
  Global memory channels (AMD)                    4
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           7301444400 (6.8GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    7301444400 (6.8GiB)
  Preferred total size of global vars             8589934592 (8GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             16384x16384x8192 pixels
    Max number of read image args                 128
    Max number of write image args                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            3006477104 (2.8GiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        7301444400 (6.8GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Thu Jan  1 09:00:00 1970)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             8
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 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_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx90c:xnack-
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx90c:xnack-
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx90c:xnack-
Unsure what to do... i tried several workarounds i found, but nothing seems to have worked so far. Tried alternative OpenCL Drivers, but got the same error.
Joe_H
Site Admin
Posts: 7936
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: FAHClient fails to find working OpenCL Platform

Post by Joe_H »

A fix someone came up with was posted here - https://bbs.archlinux.org/viewtopic.php?id=287642. It appeared to be a conflict with the included C++ library from what they reported as fixing the issue.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
pcwolf
Posts: 62
Joined: Fri Apr 03, 2020 4:49 pm
Hardware configuration: Manjaro Linux - AsRock B550 Taichi - Ryzen 5950X - NVidia RTX 4070ti
FAH v8-4.3
Location: Yorktown, Virginia, USA

Re: FAHClient fails to find working OpenCL Platform

Post by pcwolf »

What flavor of Linux do you have installed?
I am showing OpenMM version of 8.0.0 on AMD Ryzen 7900
Image
Post Reply