OpenCL on Ubuntu 24.04 with open source drivers only
Running OpenCL on Linux with older AMD GPU (not supported by ROCm) has been mostly disappointing. Recently, I've stumbled upon Rusticl which an OpenCL implementation on Mesa Galium driver. However, my current Ubuntu 24.04 does not come with latest mesa packages and I'd prefer to not install kisak-mesa PPA which can sometimes mess up the system when upgrading Ubuntu. It seems that Fedora comes with latest Mesa packages with rusticl enabled and I found this blog describing how to install the required packages: https://nullr0ute.com/2023/12/getting-started-with-opencl-using-mesa-rusticl/ Based on that, I've found a way to use OpenCL with rusticl within podman/docker container. Here's the Dockerfile: FROM fedora ENV RUSTICL_ENABLE=radeonsi ENV http_proxy=http://192.168.0.130:3128/ RUN dnf install -y mesa-libOpenCL mesa-dri-drivers spirv-llvm-translator spirv-tools-libs clinfo clpeak RUN cd /root && \ curl -L https://cdn.geekbench.com/Geekbench-6.3.0-Linux.tar....