You are not logged in.

#1 2024-09-20 13:28:35

jorjro
Member
Registered: 2024-09-20
Posts: 3

[SOLVED] OpenCL drivers will not see my GPU

clinfo output: https://bpa.st/FUHGW

pacman -Qs opencl output: https://bpa.st/NAAS2

ls /usr/lib/dri/ | grep radeonsi shows radeonsi_dri.so and radeonsi_drv_video.so

sudo pacman -Qs mesa and llvm output: https://bpa.st/77LF4

grep -E "(EE)|(WW)|failed|error" /var/log/Xorg.0.log output: https://bpa.st/E2OTK

lsmod | grep amdgpu output:  https://bpa.st/2D5G6

printenv output: https://bpa.st/P5DMS

glxinfo -B output: https://bpa.st/YZBRU shows:

MESA-LOADER: glx: failed to open rusticl: driver not built!
failed to load driver: rusticl
OpenGL renderer string: llvmpipe (LLVM 18.1.8, 256 bits)

ChatGPT says: "If llvmpipe is still listed, there may be further issues with driver loading."

This is all the relevant info I could think of, I have an RX 570 and I've seen this guy get rusticl working on his RX 580 but for me clinfo just shows the number of devices as 0 no matter what env variables I try, I've tried different opencl drivers with both mesa and amd pro drivers to no luck, but so far rusticl has taken me the farthest, maybe I'm missing some dependencies I couldn't find?

Last edited by jorjro (2024-09-20 16:06:06)

Offline

#2 2024-09-20 14:52:36

seth
Member
Registered: 2012-09-03
Posts: 60,922

Re: [SOLVED] OpenCL drivers will not see my GPU

glx: failed to open rusticl: driver not built!

Then please post
1. the complete xorg log and
2. complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#3 2024-09-20 15:11:13

jorjro
Member
Registered: 2024-09-20
Posts: 3

Re: [SOLVED] OpenCL drivers will not see my GPU

seth wrote:
glx: failed to open rusticl: driver not built!

Then please post
1. the complete xorg log and
2. complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

/var/log/Xorg.0.log: https://bpa.st/NJT3M
journal: http://0x0.st/X3GM.txt

Offline

#4 2024-09-20 15:46:25

seth
Member
Registered: 2012-09-03
Posts: 60,922

Re: [SOLVED] OpenCL drivers will not see my GPU

That's all fine, the problem is actually

MESA_LOADER_DRIVER_OVERRIDE=rusticl

You want

OCL_ICD_FILENAMES=/etc/OpenCL/vendors/rusticl.icd

and leave mesa alone.
Then post an updated "glxinfo -B; clinfo -l"

Offline

#5 2024-09-20 16:05:33

jorjro
Member
Registered: 2024-09-20
Posts: 3

Re: [SOLVED] OpenCL drivers will not see my GPU

seth wrote:

That's all fine, the problem is actually

MESA_LOADER_DRIVER_OVERRIDE=rusticl

You want

OCL_ICD_FILENAMES=/etc/OpenCL/vendors/rusticl.icd

and leave mesa alone.
Then post an updated "glxinfo -B; clinfo -l"

Would've never thought it was that simple after spending 8 hours on this, thanks a lot seth, I've solved many problems from your replies I've seen on here

[jorj@arch ~]$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX 570 Series (radeonsi, polaris10, LLVM 18.1.8, DRM 3.54, 6.6.52-1-lts) (0x67df)
    Version: 24.2.2
    Accelerated: yes
    Video memory: 4096MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 3362 MB, largest block: 3362 MB
    VBO free aux. memory - total: 7875 MB, largest block: 7875 MB
    Texture free memory - total: 3362 MB, largest block: 3362 MB
    Texture free aux. memory - total: 7875 MB, largest block: 7875 MB
    Renderbuffer free memory - total: 3362 MB, largest block: 3362 MB
    Renderbuffer free aux. memory - total: 7875 MB, largest block: 7875 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 12056 MB
    Currently available dedicated video memory: 3362 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 570 Series (radeonsi, polaris10, LLVM 18.1.8, DRM 3.54, 6.6.52-1-lts)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.2-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.2-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.2-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
[jorj@arch ~]$ clinfo -l
Platform #0: rusticl
 `-- Device #0: AMD Radeon RX 570 Series (radeonsi, polaris10, LLVM 18.1.8, DRM 3.54, 6.6.52-1-lts)

Offline

#6 2024-12-25 13:04:54

ianioc
Member
Registered: 2018-06-20
Posts: 7

Re: [SOLVED] OpenCL drivers will not see my GPU

I have the same problem. The glxinfo output is normal, but clinfo has no output. I don't know if it is because I installed too many packages. I used ocl-icd-choose to solve it.

Offline

Board footer

Powered by FluxBB