Steam Deck

Steam Deck

MrSandman Jun 3, 2022 @ 3:23pm
[Bug] libclc-amdgcn missing files for current AMD Custom GPU 0405 APU
Bug Description

I'm finding that the libclc support for current AMD APU is missing, at least for AMD Custom GPU 0405 APU. when running something like `clinfo`, you get the following:

=== 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>


Not gfx1030-amdgcn-mesa-mesa3d.bc file in libclc-13.0.0-1-any.pkg.tar.zst package and/or /usr/share/clc path


ProblemType: Bug
DistroRelease: SteamOS 3.x
Package: extra/libclc 13.0.0-1
Uname: 5.13.0-valve14-3-neptune-02195-g5b0f749d00fa
Architecture: amd64
Date: Sat Jun 4 00:21:54 CEST 2022
Last edited by MrSandman; Jun 3, 2022 @ 3:37pm
< >
Showing 1-15 of 15 comments
jrepin Jun 18, 2022 @ 12:19pm 
+1
Melkor Jun 19, 2022 @ 9:36am 
+1
KiUQS Jun 19, 2022 @ 9:56am 
+1
SoeR Jun 19, 2022 @ 10:21am 
+1
MrSandman Jun 29, 2022 @ 8:02pm 
Up!

I opened a ticket and they closed it telling me to open a thread in this sub forum. It's been a month and no one from support deigns to answer.
MrSandman Jun 29, 2022 @ 9:18pm 
(B)(root@steamdeck deck)# uname -a
Linux steamdeck 5.13.0-valve20-1-neptune-02207-gbd986a7e1c7f #1 SMP PREEMPT Wed, 22 Jun 2022 22:15:00 +0000 x86_64 GNU/Linux
(B)(root@steamdeck deck)# clinfo
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 22.0.2 (git-71648faf15)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA

Platform Name Clover
Number of devices 1
Device Name AMD Custom GPU 0405 (vangogh, LLVM 13.0.0, DRM 3.45, 5.13.0-valve20-1-neptune-02207-gbd986a7e1c7f)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 22.0.2 (git-71648faf15)
Device Numeric Version 0x401000 (1.1.0)
Driver Version 22.0.2
Device OpenCL C Version OpenCL C 1.1
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Max compute units 8
Max clock frequency 0MHz
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 8522825728 (7.938GiB)
Error Correction support No
Max memory allocation 5965978009 (5.556GiB)
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 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 (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 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)

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA]
clCreateContext(NULL, ...) [default] Success [MESA]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Clover
Device Name AMD Custom GPU 0405 (vangogh, LLVM 13.0.0, DRM 3.45, 5.13.0-valve20-1-neptune-02207-gbd986a7e1c7f)
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 Custom GPU 0405 (vangogh, LLVM 13.0.0, DRM 3.45, 5.13.0-valve20-1-neptune-02207-gbd986a7e1c7f)
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 Custom GPU 0405 (vangogh, LLVM 13.0.0, DRM 3.45, 5.13.0-valve20-1-neptune-02207-gbd986a7e1c7f)

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
(B)(root@steamdeck deck)#


Still not working opencl on steamdeck.

Steam support is not responding.
MrSandman Jul 6, 2022 @ 4:52am 
Up
Cypherous Jul 6, 2022 @ 12:53pm 
"Steam support is not responding."

What are you expecting them to say, they would need to wait for SteamOS to be updated with it if you're not willing to install it yourself
MrSandman Jul 6, 2022 @ 2:35pm 
Originally posted by Cypherous:
"Steam support is not responding."

What are you expecting them to say, they would need to wait for SteamOS to be updated with it if you're not willing to install it yourself

Read the main post again.
Last edited by MrSandman; Jul 6, 2022 @ 2:36pm
Cypherous Jul 6, 2022 @ 3:12pm 
Originally posted by MrSandman:
Originally posted by Cypherous:
"Steam support is not responding."

What are you expecting them to say, they would need to wait for SteamOS to be updated with it if you're not willing to install it yourself

Read the main post again.

And thats still going to require a SteamOS update to resolve, not sure which part of mine you didn't read, support can't help you, it will be down to the team building SteamOS
MrSandman Jul 7, 2022 @ 3:28am 
A month ago, I opened a support ticket about this problem in the graphics driver. Support closed the ticket and told me to open the ticket in this forum, since it was a bug.

I don't care how long it takes. What I am denouncing is that they do not deign to respond to a bug that directly affects the announced capabilities, which they are not complying with and for which the owners have paid.

I hope this clears your doubts.
Cypherous Jul 7, 2022 @ 5:30am 
Originally posted by MrSandman:
A month ago, I opened a support ticket about this problem in the graphics driver. Support closed the ticket and told me to open the ticket in this forum, since it was a bug.

I don't care how long it takes. What I am denouncing is that they do not deign to respond to a bug that directly affects the announced capabilities, which they are not complying with and for which the owners have paid.

I hope this clears your doubts.

Right but what advertised capability is this actually affecting, because one would assume its missing from all decks, yet all of them seem to be running fine with all advertised features, what exactly is this breaking that was advertised?
MrSandman Jul 9, 2022 @ 4:55am 
Originally posted by Cypherous:
Originally posted by MrSandman:
A month ago, I opened a support ticket about this problem in the graphics driver. Support closed the ticket and told me to open the ticket in this forum, since it was a bug.

I don't care how long it takes. What I am denouncing is that they do not deign to respond to a bug that directly affects the announced capabilities, which they are not complying with and for which the owners have paid.

I hope this clears your doubts.

Right but what advertised capability is this actually affecting, because one would assume its missing from all decks, yet all of them seem to be running fine with all advertised features, what exactly is this breaking that was advertised?

An OpenCL game physics compatibility. Mesa driver basic feature.
MrSandman Jul 19, 2022 @ 6:30am 
up
alain bkr Oct 9, 2023 @ 11:03am 
AFAIK, this libclc is part of llvm, and currently (october 2023) i guess it is still under development, because noone ships this gfx1030-amdgcn :-(

There are open requests on github/llvm for 1010 stuff...

If find this issue because this lib is lacking for mesa openCL for RX6800XT too

If you need openCL :
  • One possibility is compile it from source, that is compile llvm/libclc/ and i guess the gfx1030-amdgcn-* will not work (or it would have been included in a linux distro)
  • Use Rocm from AMD site. It works on RX6800XT, maybe it will on steamdeck too.

But if you wreak havoc in your nice steam deck it is not my fault :-)
Last edited by alain bkr; Oct 9, 2023 @ 11:19am
< >
Showing 1-15 of 15 comments
Per page: 1530 50

Date Posted: Jun 3, 2022 @ 3:23pm
Posts: 15