Can't use OpenCL with AMD W5500 GPU

hi i have a issue with AMD W5500 radeonpro install

opencl no devices found in platorm when i run the command clinfo

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                                   gfx1012:xnack-
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform

hp@SFF805G9:\~$ sudo clinfo gfx1012:xnack-
\[sudo\] password for hp:
ignoring unknown command-line parameter gfx1012:xnack-
Number of platforms                               1
Platform Name                                   AMD Accelerated Parallel Processing
Platform Vendor                                 Advanced Micro Devices, Inc.
Platform Version                                OpenCL 2.1 AMD-APP (3625.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                                     gfx1012:xnack-
Device Vendor                                   Advanced Micro Devices, Inc.
Device Vendor ID                                0x1002
Device Version                                  OpenCL 2.0
Driver Version                                  3625.0 (HSA1.1,LC)
Device OpenCL C Version                         OpenCL C 2.0
Device Type                                     GPU
Device Board Name (AMD)                         AMD Radeon Pro W5500
Device PCI-e ID (AMD)                           0x7341
Device Topology (AMD)                           PCI-E, 0000:03:00.0
Device Profile                                  FULL_PROFILE
Device Available                                Yes
Compiler Available                              Yes
Linker Available                                Yes
Max compute units                               11
SIMD per compute unit (AMD)                     4
SIMD width (AMD)                                32
SIMD instruction width (AMD)                    1
Max clock frequency                             1900MHz
Graphics IP (AMD)                               10.1
Device Partition                                (core)
Max number of sub-devices                     11
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)     32
Wavefront width (AMD)                           32
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                              8573157376 (7.984GiB)
Global free memory (AMD)                        8198144 (7.818GiB) 8198144 (7.818GiB)
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                           7287183768 (6.787GiB)
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                    7287183768 (6.787GiB)
Preferred total size of global vars             8573157376 (7.984GiB)
Global Memory cache type                        Read/Write
Global Memory cache size                        16384 (16KiB)
Global Memory cache line size                   128 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                            2992216472 (2.787GiB)
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                        7287183768 (6.787GiB)
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 01: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)             11
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                                   gfx1012: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                                   gfx1012: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                                   gfx1012:xnack-

ICD loader properties
ICD loader Name                                 Khronos OpenCL ICD Loader
ICD loader Vendor                               Khronos Group
ICD loader Version                              3.0.6
ICD loader Profile                              OpenCL 3.0

XMrig miner not working with AMD Radeon Pro W5500 due to clinfo not present

|  # | GPU |  BUS ID | INTENSITY | WSIZE | MEMORY | NAME
|  0 |   0 | 03:00.0 |       704 |     8 |   1408 | AMD Radeon Pro W5500 (gfx1012:xnack-)
|  1 |   0 | 03:00.0 |       704 |     8 |   1408 | AMD Radeon Pro W5500 (gfx1012:xnack-)
\[2026-02-23 21:13:32.249\]  cpu      READY threads 8/8 (8) huge pages 100% 8/8 memory 16384 KB (10 ms)
\[2026-02-23 21:13:33.507\]  opencl   error CL_OUT_OF_HOST_MEMORY when calling clCreateKernel for kernel randomx_run
\[2026-02-23 21:13:33.510\]  opencl   thread #0 failed with error CL_OUT_OF_HOST_MEMORY
\[2026-02-23 21:13:33.511\]  opencl   thread #0 self-test failed
\[2026-02-23 21:13:33.513\]  opencl   error CL_OUT_OF_HOST_MEMORY when calling clCreateKernel for kernel randomx_run
\[2026-02-23 21:13:33.513\]  opencl   thread #1 failed with error CL_OUT_OF_HOST_MEMORY
\[2026-02-23 21:13:33.517\]  opencl   thread #1 self-test failed
\[2026-02-23 21:13:33.517\]  opencl   disabled (failed to start threads)

Graphics:
Device-1: AMD Navi 14 \[Radeon Pro W5500\] driver: amdgpu v: kernel
Display: wayland server: X.Org v: 23.2.6 with: Xwayland
v: 23.2.6 compositor: gnome-shell v: 46.0 driver: X:
loaded: radeon unloaded: fbdev,modesetting,vesa dri: radeonsi
gpu: amdgpu resolution: 1920x1080\~60Hz
API: EGL v: 1.5 drivers: radeonsi,swrast
platforms: wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa
v: 24.2.0-devel renderer: AMD Radeon Pro W5500 (radeonsi navi14
LLVM 18.1.7 DRM 3.64 6.17.0-14-generic)

1 Like

Hi, @john_butler and welcome to the Ubuntu MATE Community!

device 0 is using rusticl ? lower config AMD Accelerated Parallel Processing i think

hp@SFF805G9:~$ clinfo -l
Platform #0: rusticl
`-- Device #0: AMD Radeon Pro W5500 (radeonsi, navi14, LLVM 20.1.2, DRM 3.64, 6.17.0-14-generic)
Platform #1: AMD Accelerated Parallel Processing


should be using 
Platform #0: AMD Accelerated Parallel Processing
 
1 Like

Hi John,

Try this (at least, read it through):
https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu

Or try this suggestion from Duck A.I. :

To install AMD OpenCL on Linux, download the latest AMDGPU-PRO drivers from the AMD website, then install them using the command sudo apt install ./amdgpu-install_*.deb. After that, run amdgpu-install --opencl=pal to set up OpenCL support.
(see linuxconfig.org and largo.lip6.fr )

Installing AMD OpenCL on Linux

To install AMD OpenCL on a Linux system, follow these steps:

Prerequisites

  • Ensure you have a compatible AMD GPU.
  • Update your system packages.

Installation Steps

  1. Download the AMDGPU-PRO Drivers

Visit the AMD support website to download the latest AMDGPU-PRO driver package for your specific Linux distribution.

  1. Install Required Packages

Open a terminal and install necessary packages:

sudo apt install build-essential dkms
  1. Extract the Driver Package

Navigate to the directory where you downloaded the driver and extract it:

tar -xJpf amdgpu-pro-*.tar.xz
cd amdgpu-pro-*
  1. Install OpenCL Components

Install the OpenCL packages in the following order:

sudo dpkg -i amdgpu-pro-core_*.deb
sudo dpkg -i libopencl1-amdgpu-pro_*.deb
sudo dpkg -i clinfo-amdgpu-pro_*.deb
sudo dpkg -i opencl-amdgpu-pro-icd_*.deb
sudo dpkg -i amdgpu-pro-dkms_*.deb
  1. Add User to Render Group

To allow your user to access the GPU, add it to the render group:

sudo usermod -a -G render $LOGNAME
  1. Reboot Your System

Restart your computer to apply the changes.

Verification

After rebooting, verify the installation by running:

clinfo

This command should display information about your OpenCL platforms and devices.

By following these steps, you should have AMD OpenCL installed and ready to use.

2 Likes