AMD RX480 Not Detected/Not Working
Posted: Tue Mar 24, 2020 12:45 am
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):
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)
Output of clinfo (no OpenCL in Mesa)
Output of clinfo (OpenCL in Mesa, segfaults with or without sudo)
Complete log up to bad work unit (from fah-control):
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."
- 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.
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
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
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
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