AMD RX480 Not Detected/Not Working

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
aurorans_solis
Posts: 5
Joined: Mon Mar 23, 2020 10:03 pm

AMD RX480 Not Detected/Not Working

Post by aurorans_solis »

Hello, new user here just trying to sort out GPU compute on my machine.

Long story short, I installed =dev-libs/rocm-opencl-runtime-3.1.0 and its dependencies, as well as dev-util/{cl,rocm}info. Two of the packages for dev-libs/rocm-opencl-runtime have USE flags (just one relevant one apiece):
  • =media-libs/mesa-20.0.1-r1 has the "opencl" USE flag
  • =dev-libs/rocr-runtime-3.1.0 has the "nonfree" USE flag, which pulls in dev-libs/hsa-ext-rocr, described as "Proprietary image-support library for Radeon Open Compute."
I haven't been able to get rocr-runtime installed with the "nonfree" USE flag, so I suppose it's not entirely relevant. So, onto the main point. I have installed Mesa with and without the "opencl" flag, and these are the results:
  • with OpenCL: clinfo segfaults when run (shows some GPU information then segfaults), rocminfo runs fine (shows all GPU information), and F@H recognizes my GPU (caveat: in the "OpenCL Device" section for it it says, "Bus:NA Slot:NA,") but fails to start using it saying, "Folding@home Core Shutdown: BAD_WORK_UNIT."
  • without OpenCL: clinfo runs fine (shows all GPU information), rocminfo runs fine (shows all GPU information), F@H no longer recognizes my GPU.
I'd like to contribute using my GPU, but I'm not sure at this point how to go about doing it.

Other information:

I have confirmed that other applications are able to use my GPU for compute purposes. I've tested this with the Collatz Conjecture project on BOINC. So I'm now really not sure what the issue is for F@H.

System information (from inxi)

Code: Select all

auro@auro-desktop ~ $ inxi -CGMS --memory-short
System:    Host: auro-desktop Kernel: 5.5.9-gentoo x86_64 bits: 64 Desktop: i3 4.16.1 Distro: Gentoo Base System release 2.6 
Machine:   Type: Desktop System: Gigabyte product: Z170XP-SLI v: N/A serial: <root required> 
           Mobo: Gigabyte model: Z170XP-SLI-CF v: x.x serial: <root required> UEFI: American Megatrends v: F22d 
           date: 01/11/2018 
Memory:    RAM: total: 15.59 GiB used: 2.10 GiB (13.5%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: Quad Core model: Intel Core i5-6600K bits: 64 type: MCP L2 cache: 6144 KiB 
           Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu 
           v: kernel 
           Device-2: NVIDIA GK104 [GeForce GTX 760] driver: N/A 
           Display: x11 server: X.Org 1.20.7 driver: amdgpu,ati unloaded: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD Radeon RX 480 Graphics (POLARIS10 DRM 3.36.0 5.5.9-gentoo LLVM 9.0.1) v: 4.6 Mesa 20.0.1
Output of clinfo (no OpenCL in Mesa)

Code: Select all

auro@auro-desktop ~ $ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP.internal (3084.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_object_metadata cl_amd_event_callback 
  Platform Max metadata object keys (AMD)         8
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx803
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.2 
  Driver Version                                  3084.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  Device Topology (AMD)                           PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               36
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1288MHz
  Graphics IP (AMD)                               8.3
  Device Partition                                (core)
    Max number of sub-devices                     36
    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              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                                     No
    Infinity and NANs                             No
    Round to nearest                              No
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     No
    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)                        8388608 (8GiB)
  Global memory channels (AMD)                    8
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           7301444403 (6.8GiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   No
    Base address alignment for 2D image buffers   0 bytes
    Pitch alignment for 2D image buffers          0 pixels
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory syze per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        7301444403 (6.8GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  P2P devices (AMD)                               <printDeviceInfo:147: get number of CL_DEVICE_P2P_DEVICES_AMD : error -30>
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Wed Dec 31 17:00:00 1969)
  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)             36
  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, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [AMD]
  clCreateContext(NULL, ...) [default]            Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx803
  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                                   gfx803
  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                                   gfx803

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.12
  ICD loader Profile                              OpenCL 2.2
Output of clinfo (OpenCL in Mesa, segfaults with or without sudo)

Code: Select all

auro@auro-desktop ~ $ clinfo
Number of platforms                               2
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 20.0.1
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP.internal (3084.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_object_metadata cl_amd_event_callback 
  Platform Max metadata object keys (AMD)         8
  Platform Extensions function suffix             AMD

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.36.0, 5.5.9-gentoo, LLVM 9.0.1)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 20.0.1
  Driver Version                                  20.0.1
  Device OpenCL C Version                         OpenCL C 1.1 
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Max compute units                               36
  Max clock frequency                             1288MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
  Preferred work group size multiple              64
  Preferred / native vector sizes                 
    char                                                16 / 16      
    short                                                8 / 8       
    int                                                  4 / 4       
    long                                                 2 / 2       
    half                                                 8 / 8        (cl_khr_fp16)
    float                                                4 / 4       
    double                                               2 / 2        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    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
  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         (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)
  Error Correction support                        No
  Max memory allocation                           6871947673 (6.4GiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       32768 bits (4096 bytes)
  Global Memory cache type                        None
  Image support                                   No
  Local memory type                               Local
  Local memory size                               32768 (32KiB)
  Max number of constant args                     16
  Max constant buffer size                        2147483647 (2GiB)
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Profiling timer resolution                      0ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
  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 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_fp16

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx803
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.2 
  Driver Version                                  3084.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  Device Topology (AMD)                           PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               36
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1288MHz
  Graphics IP (AMD)                               8.3
  Device Partition                                (core)
    Max number of sub-devices                     36
    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
Segmentation fault
Complete log up to bad work unit (from fah-control):

Code: Select all

*********************** Log Started 2020-03-24T01:08:20Z ***********************
01:08:45:FS01:Unpaused
01:08:45:WU01:FS01:Starting
01:08:45:WU01:FS01:Running FahCore: /opt/foldingathome/FAHCoreWrapper /opt/foldingathome/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 01 -suffix 01 -version 705 -lifeline 8284 -checkpoint 15 -gpu-vendor amd -opencl-platform 0 -opencl-device 0 -gpu 0
01:08:45:WU01:FS01:Started FahCore on PID 8306
01:08:45:WU01:FS01:Core PID:8310
01:08:45:WU01:FS01:FahCore 0x22 started
01:08:45:WU01:FS01:0x22:*********************** Log Started 2020-03-24T01:08:45Z ***********************
01:08:45:WU01:FS01:0x22:*************************** Core22 Folding@home Core ***************************
01:08:45:WU01:FS01:0x22:       Type: 0x22
01:08:45:WU01:FS01:0x22:       Core: Core22
01:08:45:WU01:FS01:0x22:    Website: https://foldingathome.org/
01:08:45:WU01:FS01:0x22:  Copyright: (c) 2009-2018 foldingathome.org
01:08:45:WU01:FS01:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
01:08:45:WU01:FS01:0x22:             <rafal.wiewiora@choderalab.org>
01:08:45:WU01:FS01:0x22:       Args: -dir 01 -suffix 01 -version 705 -lifeline 8306 -checkpoint 15
01:08:45:WU01:FS01:0x22:             -gpu-vendor amd -opencl-platform 0 -opencl-device 0 -gpu 0
01:08:45:WU01:FS01:0x22:     Config: <none>
01:08:45:WU01:FS01:0x22:************************************ Build *************************************
01:08:45:WU01:FS01:0x22:    Version: 0.0.2
01:08:45:WU01:FS01:0x22:       Date: Dec 6 2019
01:08:45:WU01:FS01:0x22:       Time: 21:20:17
01:08:45:WU01:FS01:0x22: Repository: Git
01:08:45:WU01:FS01:0x22:   Revision: f87d92b58abdf7e6bf2e173cfbc4dc3e837c7042
01:08:45:WU01:FS01:0x22:     Branch: core22
01:08:45:WU01:FS01:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
01:08:45:WU01:FS01:0x22:    Options: -std=gnu++98 -O3 -funroll-loops
01:08:45:WU01:FS01:0x22:   Platform: linux2 4.9.87-linuxkit-aufs
01:08:45:WU01:FS01:0x22:       Bits: 64
01:08:45:WU01:FS01:0x22:       Mode: Release
01:08:45:WU01:FS01:0x22:************************************ System ************************************
01:08:45:WU01:FS01:0x22:        CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
01:08:45:WU01:FS01:0x22:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
01:08:45:WU01:FS01:0x22:       CPUs: 4
01:08:45:WU01:FS01:0x22:     Memory: 15.59GiB
01:08:45:WU01:FS01:0x22:Free Memory: 8.99GiB
01:08:45:WU01:FS01:0x22:    Threads: POSIX_THREADS
01:08:45:WU01:FS01:0x22: OS Version: 5.5
01:08:45:WU01:FS01:0x22:Has Battery: false
01:08:45:WU01:FS01:0x22: On Battery: false
01:08:45:WU01:FS01:0x22: UTC Offset: -7
01:08:45:WU01:FS01:0x22:        PID: 8310
01:08:45:WU01:FS01:0x22:        CWD: /opt/foldingathome/work
01:08:45:WU01:FS01:0x22:         OS: Linux 5.5.9-gentoo x86_64
01:08:45:WU01:FS01:0x22:    OS Arch: AMD64
01:08:45:WU01:FS01:0x22:********************************************************************************
01:08:45:WU01:FS01:0x22:Project: 11751 (Run 0, Clone 1046, Gen 4)
01:08:45:WU01:FS01:0x22:Unit: 0x000000118ca304e75e6a803eb583808f
01:08:45:WU01:FS01:0x22:Reading tar file core.xml
01:08:45:WU01:FS01:0x22:Reading tar file integrator.xml
01:08:45:WU01:FS01:0x22:Reading tar file state.xml
01:08:46:WU01:FS01:0x22:Reading tar file system.xml
01:08:46:WU01:FS01:0x22:Digital signatures verified
01:08:46:WU01:FS01:0x22:Folding@home GPU Core22 Folding@home Core
01:08:46:WU01:FS01:0x22:Version 0.0.2
01:08:52:WU01:FS01:0x22:Caught signal SIGABRT(6) on PID 8310
01:08:52:WU01:FS01:0x22:WARNING:Unexpected exit from science code
01:08:52:WU01:FS01:0x22:Saving result file ../logfile_01.txt
01:08:52:WU01:FS01:0x22:Saving result file science.log
01:08:52:WU01:FS01:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
Joe_H
Site Admin
Posts: 7867
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: AMD RX480 Not Detected/Not Working

Post by Joe_H »

My understanding is that the GPU folding core does not work with the Mesa drivers, you need to use the AMD proprietary drivers.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
aurorans_solis
Posts: 5
Joined: Mon Mar 23, 2020 10:03 pm

Re: AMD RX480 Not Detected/Not Working

Post by aurorans_solis »

Oh, as in the closed-source OpenCL drivers? I believe those are available with dev-libs/amdgpu-pro-opencl, but I'm not sure.
aurorans_solis
Posts: 5
Joined: Mon Mar 23, 2020 10:03 pm

Re: AMD RX480 Not Detected/Not Working

Post by aurorans_solis »

Well, I went and installed those (=dev-libs/amdgpu-pro-opencl-19.30.838629), and my card is now recognized properly in fah-control (I think). I now see "OpenCL Device 0 Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:2906.7" in the system info tab. Though now that I look a little closer, GPU 0 shows as bus 1 slot 0 and GPU 1 as bus 2 slot 0, but OpenCL devices 0 and 1 show as bus 1 slot 0. Regardless, I still get the "BAD_WORK_UNIT" error.

Code: Select all

05:57:01:WU01:FS01:0x22:*********************** Log Started 2020-03-24T05:57:00Z ***********************
05:57:01:WU01:FS01:0x22:*************************** Core22 Folding@home Core ***************************
05:57:01:WU01:FS01:0x22:       Type: 0x22
05:57:01:WU01:FS01:0x22:       Core: Core22
05:57:01:WU01:FS01:0x22:    Website: https://foldingathome.org/
05:57:01:WU01:FS01:0x22:  Copyright: (c) 2009-2018 foldingathome.org
05:57:01:WU01:FS01:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
05:57:01:WU01:FS01:0x22:             <rafal.wiewiora@choderalab.org>
05:57:01:WU01:FS01:0x22:       Args: -dir 01 -suffix 01 -version 705 -lifeline 32187 -checkpoint 15
05:57:01:WU01:FS01:0x22:             -gpu-vendor amd -opencl-platform 0 -opencl-device 0 -gpu 0
05:57:01:WU01:FS01:0x22:     Config: <none>
05:57:01:WU01:FS01:0x22:************************************ Build *************************************
05:57:01:WU01:FS01:0x22:    Version: 0.0.2
05:57:01:WU01:FS01:0x22:       Date: Dec 6 2019
05:57:01:WU01:FS01:0x22:       Time: 21:20:17
05:57:01:WU01:FS01:0x22: Repository: Git
05:57:01:WU01:FS01:0x22:   Revision: f87d92b58abdf7e6bf2e173cfbc4dc3e837c7042
05:57:01:WU01:FS01:0x22:     Branch: core22
05:57:01:WU01:FS01:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
05:57:01:WU01:FS01:0x22:    Options: -std=gnu++98 -O3 -funroll-loops
05:57:01:WU01:FS01:0x22:   Platform: linux2 4.9.87-linuxkit-aufs
05:57:01:WU01:FS01:0x22:       Bits: 64
05:57:01:WU01:FS01:0x22:       Mode: Release
05:57:01:WU01:FS01:0x22:************************************ System ************************************
05:57:01:WU01:FS01:0x22:        CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
05:57:01:WU01:FS01:0x22:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
05:57:01:WU01:FS01:0x22:       CPUs: 4
05:57:01:WU01:FS01:0x22:     Memory: 15.59GiB
05:57:01:WU01:FS01:0x22:Free Memory: 3.29GiB
05:57:01:WU01:FS01:0x22:    Threads: POSIX_THREADS
05:57:01:WU01:FS01:0x22: OS Version: 5.5
05:57:01:WU01:FS01:0x22:Has Battery: false
05:57:01:WU01:FS01:0x22: On Battery: false
05:57:01:WU01:FS01:0x22: UTC Offset: -7
05:57:01:WU01:FS01:0x22:        PID: 32191
05:57:01:WU01:FS01:0x22:        CWD: /opt/foldingathome/work
05:57:01:WU01:FS01:0x22:         OS: Linux 5.5.9-gentoo x86_64
05:57:01:WU01:FS01:0x22:    OS Arch: AMD64
05:57:01:WU01:FS01:0x22:********************************************************************************
05:57:01:WU01:FS01:0x22:Project: 11777 (Run 0, Clone 18568, Gen 0)
05:57:01:WU01:FS01:0x22:Unit: 0x00000001287234c95e774a69b2bbc611
05:57:01:WU01:FS01:0x22:Reading tar file core.xml
05:57:01:WU01:FS01:0x22:Reading tar file integrator.xml
05:57:01:WU01:FS01:0x22:Reading tar file state.xml
05:57:01:WU01:FS01:0x22:Reading tar file system.xml
05:57:01:WU01:FS01:0x22:Digital signatures verified
05:57:01:WU01:FS01:0x22:Folding@home GPU Core22 Folding@home Core
05:57:01:WU01:FS01:0x22:Version 0.0.2
05:57:06:WU01:FS01:0x22:Caught signal SIGABRT(6) on PID 32191
05:57:06:WU01:FS01:0x22:WARNING:Unexpected exit from science code
05:57:06:WU01:FS01:0x22:Saving result file ../logfile_01.txt
05:57:06:WU01:FS01:0x22:Saving result file science.log
05:57:06:WU01:FS01:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
And here's the system information as reported by /opt/foldingathome/FAHClient --info:

Code: Select all

/opt/foldingathome/FAHClient: /opt/foldingathome/libssl.so.10: no version information available (required by /opt/foldingathome/FAHClient)
/opt/foldingathome/FAHClient: /opt/foldingathome/libcrypto.so.10: no version information available (required by /opt/foldingathome/FAHClient)
/opt/foldingathome/FAHClient: /opt/foldingathome/libcrypto.so.10: no version information available (required by /opt/foldingathome/FAHClient)
***************************** Folding@home Client ******************************
        Website: https://foldingathome.org/
      Copyright: (c) 2009-2018 foldingathome.org
         Author: Joseph Coffland <joseph@cauldrondevelopment.com>
           Args: --info
************************************ Build *************************************
        Version: 7.5.1
           Date: May 12 2018
           Time: 22:51:07
     Repository: Git
       Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
         Branch: master
       Compiler: GNU 4.4.7 20120313 (Red Hat 4.4.7-18)
        Options: -std=gnu++98 -O3 -funroll-loops
       Platform: linux2 4.14.0-3-amd64
           Bits: 64
           Mode: Release
************************************ System ************************************
            CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
         CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
           CPUs: 4
         Memory: 15.59GiB
    Free Memory: 2.93GiB
        Threads: POSIX_THREADS
     OS Version: 5.5
    Has Battery: false
     On Battery: false
     UTC Offset: -7
            PID: 5375
            CWD: /
             OS: Linux 5.5.9-gentoo x86_64
        OS Arch: AMD64
           GPUs: 1
          GPU 0: Bus:2 Slot:0 Func:0 NVIDIA:3 GK104 [GeForce GTX 760]
           CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
                 libcuda.so: cannot open shared object file: No such file or
                 directory
OpenCL Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:2906.7
OpenCL Device 1: Platform:1 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:3084.0
********************************************************************************
I'm not sure if it's something to do with the version of F@H in the Gentoo repo or what, but the things about libssl and libcrypto have been there since I first started using it.
Curiously, fah-control reports things slightly differently than FAHClient does:
Image
Joe_H
Site Admin
Posts: 7867
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: AMD RX480 Not Detected/Not Working

Post by Joe_H »

Not certain of the name, but the AMD proprietary video drivers instead of Mesa. Depending on the Linux distro, a depository may have them in a single package or split into drivers and OpenCL separately, or you would download them direct from AMD support.

The libssl and libcrypto messages are from the client using older versions than are the default in recent versions of Linux. Some workarounds have been posted here and I understand on some other sites.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
aurorans_solis
Posts: 5
Joined: Mon Mar 23, 2020 10:03 pm

Re: AMD RX480 Not Detected/Not Working

Post by aurorans_solis »

Well, if it's going to require completely redoing my graphics stack, I don't think I'm going to put the effort in. It would be a lot of work for me to redo the whole graphics stack in my system just for this, especially since it's not officially supported by the distribution I prefer to use. So I'll probably end up finding some other project to try and contribute to in a similar capacity.

Thank you for your time.
aurorans_solis
Posts: 5
Joined: Mon Mar 23, 2020 10:03 pm

Re: AMD RX480 Not Detected/Not Working

Post by aurorans_solis »

Er so as I was cleaning things up I took a look at some files I'd just sort of glossed over previously, and came across the executable to start F@H. I decided I was curious enough to play with it a bit more, so I ran it manually with a high verbosity setting and came across this in /opt/foldingathome/work/o1/wuresults_01.dat:

Code: Select all

[ Initializing Core Contexts ]
  Using platform OpenCL
  Looking for vendor: amd...found on platformId 0
  Setting platform precision to mixed
  Setting DisablePmeStream to 1
  Deserializing System...
  Found MonteCarloBarostat @ 1.01325 (default) Bar, 310 Kelvin, 25 pressure change frequency.
    Found: 182699 atoms, 5 forces.
  Deserializing State...  done.
    Ewald error tolerance in force 3 is 0.0005
    Ewald parameters: alpha 2.628260884878466 nx 100 ny 100 nz 100
    Integrator Type: N6OpenMM16CustomIntegratorE
    Constraint Tolerance: 1e-08
    Time Step in PS: 0.004
    Resetting random number seed in CustomIntegrator
    Using CPU platform for reference calculations.
  Checking core state against reference...
Caught signal SIGABRT(6) on PID 18038
WARNING:Unexpected exit from science code
Saving result file ../logfile_01.txt
Saving result file science.log
The "Checking core state against reference..." caught my attention, so I rebuilt Mesa with the "opencl" flag and ran F@H again and found that the same thing happens. It seems to me that something in F@H isn't getting the core state correctly, since that's exactly where it fails regardless of Mesa OpenCL support or what options I pass in when running the command manually. Mesa added in its own OpenCL platform when compiled with support for it, but regardless of Mesa's support there was always:

Code: Select all

[1] compatible platform(s):
  -- 0 --
  PROFILE = FULL_PROFILE
  VERSION = OpenCL 2.0 AMD-APP.internal (3084.0)
  NAME = AMD Accelerated Parallel Processing
  VENDOR = Advanced Micro Devices, Inc.

(1) device(s) found on platform 0:
  -- 0 --
  DEVICE_NAME = gfx803
  DEVICE_VENDOR = Advanced Micro Devices, Inc.
  DEVICE_VERSION = OpenCL 1.2
I've tried targeting that, and the output of doing so is what you see in the first code block. I'm not sure whether calling it a bug or failed implementation of core state checking in F@H is a bit presumptuous of me, but at first blush that seems to be the issue. Either that, or it could be a slight misconfiguration of my kernel, but I don't think it is, since none of the ROCm packages complain anymore about incorrectly set kernel flags.
Post Reply