No support for Rusticl?

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
SovietReimu1917
Posts: 2
Joined: Thu Sep 29, 2022 11:17 pm

No support for Rusticl?

Post by SovietReimu1917 »

I'm using Rusticl as my OpenCL driver.
Rusticl supports Opencl 1.2, so it meets Folding@home's requirements, but does not work well.

The output of clinfo is as follows:

Code: Select all

Number of platforms                               1
  Platform Name                                   rusticl
  Platform Vendor                                 Mesa/X.org
  Platform Version                                OpenCL 3.0 
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions with Version                cl_khr_icd                                                       0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             MESA
  Platform Host timer resolution                  0ns

  Platform Name                                   rusticl
Number of devices                                 1
  Device Name                                     AMD Radeon Vega 8 Graphics (raven, LLVM 14.0.6, DRM 3.48, 6.0.0-1-MANJARO)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 3.0
  Device Numeric Version                          0xc00000 (3.0.0)
  Driver Version                                  22.3.0-devel (git-6ab5d742bd)
  Device OpenCL C Version                         OpenCL C 1.2 
  Device OpenCL C all versions                    OpenCL C                                                         0xc00000 (3.0.0)
                                                  OpenCL C                                                         0x402000 (1.2.0)
                                                  OpenCL C                                                         0x401000 (1.1.0)
                                                  OpenCL C                                                         0x400000 (1.0.0)
  Device OpenCL C features                        __opencl_c_int64                                                 0x400000 (1.0.0)
                                                  __opencl_c_images                                                0x400000 (1.0.0)
                                                  __opencl_c_3d_image_writes                                       0x400000 (1.0.0)
  Latest comfornace test passed                   v0000-01-01-00
  Device Type                                     GPU
  Device Profile                                  EMBEDDED_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  Max clock frequency                             1250MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             1024
  Preferred work group size multiple (device)     64
  Preferred work group size multiple (kernel)     64
  Max sub-groups per work group                   0
  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                                               0 / 0        (n/a)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
  Global memory size                              15727951872 (14.65GiB)
  Error Correction support                        No
  Max memory allocation                           2147483648 (2GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 No
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Atomic memory capabilities                      relaxed, work-group scope
  Atomic fence capabilities                       relaxed, acquire/release, work-group scope
  Max size for global variable                    0
  Preferred total size of global vars             0
  Global Memory cache type                        None
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435455 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 32
    Max number of write image args                16
    Max number of read/write image args           0
  Pipe support                                    No
  Max number of pipe args                         0
  Max active pipe reservations                    0
  Max pipe packet size                            0
  Local memory type                               Global
  Local memory size                               65536 (64KiB)
  Max number of constant args                     1024
  Max constant buffer size                        67108864 (64MiB)
  Generic address space support                   No
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Device enqueue capabilities                     (n/a)
  Queue properties (on device)                    
    Out-of-order execution                        No
    Profiling                                     No
    Preferred size                                0
    Max size                                      0
  Max queues on device                            0
  Max events on device                            0
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      0ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Non-uniform work-groups                       No
    Work-group collective functions               No
    Sub-group independent forward progress        No
    IL version                                    (n/a)
    ILs with version                              (n/a)
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cles_khr_int64 cl_khr_3d_image_writes
  Device Extensions with Version                  cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                  cles_khr_int64                                                   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes                                           0x400000 (1.0.0)

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  rusticl
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]
  clCreateContext(NULL, ...) [default]            Success [MESA]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon Vega 8 Graphics (raven, LLVM 14.0.6, DRM 3.48, 6.0.0-1-MANJARO)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon Vega 8 Graphics (raven, LLVM 14.0.6, DRM 3.48, 6.0.0-1-MANJARO)
  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                                 rusticl
    Device Name                                   AMD Radeon Vega 8 Graphics (raven, LLVM 14.0.6, DRM 3.48, 6.0.0-1-MANJARO)

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.1
  ICD loader Profile                              OpenCL 3.0
The log of FAH is as follows:

Code: Select all

23:27:37:WU02:FS01:Starting
23:27:37:WU02:FS01:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/private/fah/cores/cores.foldingathome.org/lin/64bit/22-0.0.20/Core_22.fah/FahCore_22 -dir 02 -suffix 01 -version 706 -lifeline 7528 -checkpoint 3 -opencl-platform 0 -opencl-device 0 -gpu-vendor amd -gpu 0 -gpu-usage 100
23:27:37:WU02:FS01:Started FahCore on PID 7558
23:27:37:WU02:FS01:Core PID:7562
23:27:37:WU02:FS01:FahCore 0x22 started
23:27:38:WU02:FS01:0x22:*********************** Log Started 2022-09-29T23:27:37Z ***********************
23:27:38:WU02:FS01:0x22:*************************** Core22 Folding@home Core ***************************
23:27:38:WU02:FS01:0x22:       Core: Core22
23:27:38:WU02:FS01:0x22:       Type: 0x22
23:27:38:WU02:FS01:0x22:    Version: 0.0.20
23:27:38:WU02:FS01:0x22:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
23:27:38:WU02:FS01:0x22:  Copyright: 2020 foldingathome.org
23:27:38:WU02:FS01:0x22:   Homepage: https://foldingathome.org/
23:27:38:WU02:FS01:0x22:       Date: Jan 20 2022
23:27:38:WU02:FS01:0x22:       Time: 00:57:52
23:27:38:WU02:FS01:0x22:   Revision: 3f211b8a4346514edbff34e3cb1c0e0ec951373c
23:27:38:WU02:FS01:0x22:     Branch: HEAD
23:27:38:WU02:FS01:0x22:   Compiler: GNU 9.4.0
23:27:38:WU02:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
23:27:38:WU02:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
23:27:38:WU02:FS01:0x22:             -DOPENMM_VERSION="\"7.7.0\""
23:27:38:WU02:FS01:0x22:   Platform: linux 5.11.0-1025-azure
23:27:38:WU02:FS01:0x22:       Bits: 64
23:27:38:WU02:FS01:0x22:       Mode: Release
23:27:38:WU02:FS01:0x22:Maintainers: John Chodera <john.chodera@choderalab.org> and Peter Eastman
23:27:38:WU02:FS01:0x22:             <peastman@stanford.edu>
23:27:38:WU02:FS01:0x22:       Args: -dir 02 -suffix 01 -version 706 -lifeline 7558 -checkpoint 3
23:27:38:WU02:FS01:0x22:             -opencl-platform 0 -opencl-device 0 -gpu-vendor amd -gpu 0
23:27:38:WU02:FS01:0x22:             -gpu-usage 100
23:27:38:WU02:FS01:0x22:************************************ libFAH ************************************
23:27:38:WU02:FS01:0x22:       Date: Jan 20 2022
23:27:38:WU02:FS01:0x22:       Time: 00:57:22
23:27:38:WU02:FS01:0x22:   Revision: 9f4ad694e75c2350d4bb6b8b5b769ba27e483a2f
23:27:38:WU02:FS01:0x22:     Branch: HEAD
23:27:38:WU02:FS01:0x22:   Compiler: GNU 9.4.0
23:27:38:WU02:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
23:27:38:WU02:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
23:27:38:WU02:FS01:0x22:   Platform: linux 5.11.0-1025-azure
23:27:38:WU02:FS01:0x22:       Bits: 64
23:27:38:WU02:FS01:0x22:       Mode: Release
23:27:38:WU02:FS01:0x22:************************************ CBang *************************************
23:27:38:WU02:FS01:0x22:       Date: Jan 20 2022
23:27:38:WU02:FS01:0x22:       Time: 00:57:00
23:27:38:WU02:FS01:0x22:   Revision: ab023d155b446906d55b0f6c9a1eedeea04f7a1a
23:27:38:WU02:FS01:0x22:     Branch: HEAD
23:27:38:WU02:FS01:0x22:   Compiler: GNU 9.4.0
23:27:38:WU02:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
23:27:38:WU02:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
23:27:38:WU02:FS01:0x22:   Platform: linux 5.11.0-1025-azure
23:27:38:WU02:FS01:0x22:       Bits: 64
23:27:38:WU02:FS01:0x22:       Mode: Release
23:27:38:WU02:FS01:0x22:************************************ System ************************************
23:27:38:WU02:FS01:0x22:        CPU: AMD Ryzen 3 3200G with Radeon Vega Graphics
23:27:38:WU02:FS01:0x22:     CPU ID: AuthenticAMD Family 23 Model 24 Stepping 1
23:27:38:WU02:FS01:0x22:       CPUs: 4
23:27:38:WU02:FS01:0x22:     Memory: 29.30GiB
23:27:38:WU02:FS01:0x22:Free Memory: 17.05GiB
23:27:38:WU02:FS01:0x22:    Threads: POSIX_THREADS
23:27:38:WU02:FS01:0x22: OS Version: 6.0
23:27:38:WU02:FS01:0x22:Has Battery: false
23:27:38:WU02:FS01:0x22: On Battery: false
23:27:38:WU02:FS01:0x22: UTC Offset: 9
23:27:38:WU02:FS01:0x22:        PID: 7562
23:27:38:WU02:FS01:0x22:        CWD: /var/lib/private/fah/work
23:27:38:WU02:FS01:0x22:************************************ OpenMM ************************************
23:27:38:WU02:FS01:0x22:    Version: 7.7.0
23:27:38:WU02:FS01:0x22:********************************************************************************
23:27:38:WU02:FS01:0x22:Project: 18213 (Run 7212, Clone 0, Gen 39)
23:27:38:WU02:FS01:0x22:Reading tar file core.xml
23:27:38:WU02:FS01:0x22:Reading tar file integrator.xml
23:27:38:WU02:FS01:0x22:Reading tar file state.xml
23:27:38:WU02:FS01:0x22:Reading tar file system.xml
23:27:39:WU02:FS01:0x22:Digital signatures verified
23:27:39:WU02:FS01:0x22:Folding@home GPU Core22 Folding@home Core
23:27:39:WU02:FS01:0x22:Version 0.0.20
23:27:39:WU02:FS01:0x22:  Checkpoint write interval: 25000 steps (2%) [50 total]
23:27:39:WU02:FS01:0x22:  JSON viewer frame write interval: 12500 steps (1%) [100 total]
23:27:39:WU02:FS01:0x22:  XTC frame write interval: 20000 steps (1.6%) [62 total]
23:27:39:WU02:FS01:0x22:  Global context and integrator variables write interval: disabled
23:27:39:WU02:FS01:0x22:There are 2 platforms available.
23:27:39:WU02:FS01:0x22:Platform 0: Reference
23:27:39:WU02:FS01:0x22:Platform 1: CPU
23:27:39:WU02:FS01:0x22:opencl-device was set but OpenCL platform could not be found.
23:27:39:WU02:FS01:0x22:ERROR:126: Neither CUDA nor OpenCL is available.
23:27:39:WU02:FS01:0x22:Saving result file ../logfile_01.txt
23:27:39:WU02:FS01:0x22:Saving result file science.log
23:27:39:WU02:FS01:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
23:27:39:WARNING:WU02:FS01:FahCore returned: BAD_WORK_UNIT (114 = 0x72)
23:27:39:WU02:FS01:Sending unit results: id:02 state:SEND error:FAULTY project:18213 run:7212 clone:0 gen:39 core:0x22 unit:0x00000000000000270000472500001c2c
23:27:39:WU02:FS01:Uploading 2.05KiB to 206.223.170.146
23:27:39:WU02:FS01:Connecting to 206.223.170.146:8080
23:27:39:WU01:FS01:Connecting to assign1.foldingathome.org:80
23:27:40:WU02:FS01:Upload complete
23:27:40:WU02:FS01:Server responded WORK_ACK (400)
23:27:40:WU02:FS01:Cleaning up
Joe_H
Site Admin
Posts: 7856
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: No support for Rusticl?

Post by Joe_H »

From looking it up and what clinfo reports, RustiCL is an offshoot from the Mesa coding for OpenCL support. Mesa also never worked well enough to support the folding core processing for GPUs. F@h never supported the mesa drivers and I expect they won't modify their code to work with them. It will be up to the people working on RustiCL to improve compatibility, and it would be even better if they worked towards being fully OpenCL 2 compliant.

OpenCL 1.2 as a minimum version is mostly to support older Nvidia GPUs that can not use CUDA for folding and some older AMD GPUs. You may have better results using the ROCm drivers with your Vega iGPU.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Post Reply