You are not logged in.
After updating my system with "pacman -Syu" my OpenCL platform(mesa) disappeared! This is critical for me as an OpenCL developer. clinfo now reports number of platforms as 0. I noticed the update upgraded opencl-mesa from 22.2.3-1 to 22.3.1-1. The mesa ICD stills exists where it should be (/etc/OpenCL/vendors/mesa.icd).
My video card that used to show up as a device in the mesa platform is an AMD Radeon RX 6800 XT.
Last edited by alucinor (2022-12-29 18:17:56)
Offline
opencl-mesa gained rusticl support with mesa 22.3 and that doesn't have support for radeonsi yet.
That should result in clinfo showing atleast clover AND rusticl platrform.
Neither of those has support* for rdna3 cards like yours so both should show 0 devices.
You are probably using something else to get opencl support .
Please post full outputs of
$ ls -l /etc/OpenCL/vendors/
$ pacman -Qs opencl
$ clinfo
* rusticl will gain support for cards using radeonsi in the near future
Last edited by Lone_Wolf (2022-12-29 10:21:25)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
According to my googlers that card doesn't exist (yet) is this a typo on your part alucinor? I'm assuming 6800 XT is what is meant
Offline
V1del is correct I have an AMD Radeon RX 6800 XT, sorry for the confusion that caused.
requested output:
$ ls -l /etc/OpenCL/vendors/
total 8
-rw-r--r-- 1 root root 19 Dec 14 20:56 mesa.icd
-rw-r--r-- 1 root root 22 Dec 14 20:56 rusticl.icd
$ pacman -Qs opencl
local/clinfo 3.0.21.02.21-1
Simple OpenCL application that enumerates all available platform and device properties
local/libclc 14.0.6-1
Library requirements of the OpenCL C programming language
local/ocl-icd 2.3.1-1
OpenCL ICD Bindings
local/opencl-headers 2:2022.05.18-1
OpenCL (Open Computing Language) header files
local/opencl-mesa 22.3.1-1
OpenCL support with clover and rusticl for mesa drivers
$ clinfo
Number of platforms 0
Offline
Those look as expected, maybe you are bitten by https://bugs.archlinux.org/task/76845 .
Install spirv-tools and spirv-llvm-translator , then rerun clinfo .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
That solved my problem of no platforms Lone_Wolf much thanks!
It revealed another problem
I was able to compile OpenCL kernels on my device before this update too. However now it appears that fails. Below is the output of clinfo.
Number of platforms 2
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 22.3.1
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
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 Clover
Number of devices 1
Device Name AMD Radeon RX 6800 XT (navi21, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 22.3.1
Device Numeric Version 0x401000 (1.1.0)
Driver Version 22.3.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 72
Max clock frequency 2575MHz
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/share/clc/gfx1030-amdgcn-mesa-mesa3d.bc': No such file or directory
Preferred work group size multiple (kernel) <getWGsizes:1504: create kernel : error -46>
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 0 / 0 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
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 (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 17179869184 (16GiB)
Error Correction support No
Max memory allocation 4294967296 (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 65536 (64KiB)
Max number of constant args 16
Max constant buffer size 67108864 (64MiB)
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
ILs with version SPIR-V 0x400000 (1.0.0)
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 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_extended_versioning
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)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_khr_fp64 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
Platform Name rusticl
Number of devices 0
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA]
clCreateContext(NULL, ...) [default] Success [MESA]
clCreateContext(NULL, ...) [other]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Clover
Device Name AMD Radeon RX 6800 XT (navi21, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Clover
Device Name AMD Radeon RX 6800 XT (navi21, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)
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 Clover
Device Name AMD Radeon RX 6800 XT (navi21, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)
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
It appears it is missing a file for 1030 amd graphics?
Offline
libclc has limited support for newer cards, mesa might support it in the future[1] , but how well it will function is unknown .
As far as I know the 1030 hasn't been supported in libclc at all.
I was able to compile OpenCL kernels on my device before this update too.
what opencl platform / commands were you using to compile opencl kernels with mesa 22.2.3-1 ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline