OpenCL not working

I’m trying to play around with some AI/LLM stuff. opencl is screwed up, I can’t even run clinfo. It just hangs indefinitely. maybe because i have three different libraries installed? I try setting paths, but it doesn’t make a difference. I try to uninstall the intel library and I get a bunch of dependency errors. (I have a 6700xt)

I think it was all working a while ago after I installed rocm, but then there was a system update, and that broke it? not sure if that’s what did it.

ldconfig -p | grep -i opencl (libc6,x86-64) => /opt/intel/oneapi/compiler/latest/linux/lib/ (libc6,x86-64) => /opt/intel/oneapi/compiler/latest/linux/lib/ (libc6,x86-64) => /opt/rocm/lib/ (libc6,x86-64) => /opt/intel/oneapi/compiler/latest/linux/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /opt/rocm/lib/ (libc6,x86-64) => /opt/intel/oneapi/compiler/latest/linux/lib/ (libc6,x86-64) => /usr/lib/

on AMD, you only need to install rocm-opencl-runtime for OpenCL. If you already installed something else, remove it.

1 Like

I’m running into trouble

ryzen5700x ~]$ pactree -r intel-oneapi-compiler-dpcpp-cpp-runtime
│ └─python-pytorch-opt-rocm
│   └─python-torchvision-rocm

ryzen5700x ~]$ sudo pacman -R intel-oneapi-compiler-shared-runtime intel-oneapi-compiler-dpcpp-cpp-runtime
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing intel-oneapi-compiler-dpcpp-cpp-runtime breaks dependency 'intel-oneapi-compiler-dpcpp-cpp-runtime' required by intel-oneapi-mkl
:: removing intel-oneapi-compiler-dpcpp-cpp-runtime breaks dependency 'intel-oneapi-compiler-dpcpp-cpp-common' required by intel-oneapi-openmp


pacman -Rdd intel-oneapi-compiler-shared-runtime intel-oneapi-compiler-dpcpp-cpp-runtime
1 Like

I think it’s working fine now. thanks!

edit: having some occasional/rare graphic glitches since last night. hopefully nothing but a rare quirk.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.