OpenCL "Compute not available" error on Linux

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.

Is there any solution for this?

Hmm. I just installed rusticl to test and my box has no issue using the exposed rusticl opencl implementation. That’s an older AMD 6600 on Ubuntu.

Can you click the platform info button below the opencl compute selector and paste a screenshot of what it shows?

Linux in general is of course pretty sensitive to the huge diversity of environment setups. What distro are you running?

do i have the same problem here? - How to select OpenCL on Mac?

sorry if question is obvious, i just really do not understand why Code device do not work on my Mac

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:

  1. Make sure that you have the following packages installed along with all other necessary packages for you GPU:

    mesa-opencl-icd clinfo

  2. Add this environment variable to /etc/environment if you have an AMD GPU:

    RUSTICL_ENABLE=radeonsi

  3. Login and logout from the current session.

  4. Run clinfo and confirm that opencl is detected.

  5. Launch World Machine and confirm that GPU compute is enabled under settings.

  6. Launch one of the OpenCL examples inside World Machine and confirm that the OpenCL compute devices work.