I’m trying to get Code devices to work on my Linux machine, and I have installed all necessary packages. My GPU is selected along with the rusticl OpenCL Platform as you can see in the attached image, but none of the OpenCL examples work. They all give me a “Compute not available” error.
I’m using World Machine Basic 4070 and I get the same error on both Debian 13 and Ubuntu 26.04.
I’m currently on Debian 13 and I think I’ve figured it out. It turns out that I did not have OpenCL enabled in my environment and that’s why World Machine could not detect it.
This might not be the best way to solve it, but here is how I did it in case anyone else is having the same issue:
Make sure that you have the following packages installed along with all other necessary packages for you GPU:
mesa-opencl-icd clinfo
Add this environment variable to /etc/environment if you have an AMD GPU:
RUSTICL_ENABLE=radeonsi
Login and logout from the current session.
Run clinfo and confirm that opencl is detected.
Launch World Machine and confirm that GPU compute is enabled under settings.
Launch one of the OpenCL examples inside World Machine and confirm that the OpenCL compute devices work.