# OpenCL "Compute not available" error on Linux

**URL:** <https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624>\
**Category:** Bug Reports\
**Created:** [November 30, 2026, 7:05pm UTC](https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624 "2026-11-30T19:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wemachine](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/w/7c8e57/32.png) [@wemachine](https://forum.world-machine.com/u/wemachine)\
**Post date:** [November 30, 2026, 7:05pm UTC](https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624/1 "2026-11-30T19:05:59Z")

</div>

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?

 ![opencl](https://forum.world-machine.com/uploads/default/original/2X/4/4647c5aa1178eb957a24ee55915a3e3e4c0c50c7.png)

---

<div class="post-metadata">

**Author:** ![Stephen](https://forum.world-machine.com/user_avatar/forum.world-machine.com/stephen/32/317_2.png) [@Stephen](https://forum.world-machine.com/u/Stephen)\
**Post date:** [November 30, 2026, 10:31pm UTC](https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624/2 "2026-11-30T22:31:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tomatiy](https://forum.world-machine.com/user_avatar/forum.world-machine.com/tomatiy/32/3770_2.png) [@Tomatiy](https://forum.world-machine.com/u/Tomatiy)\
**Post date:** [November 30, 2026, 11:55pm UTC](https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624/3 "2026-11-30T23:55:13Z")

</div>

do i have the same problem here? - [How to select OpenCL on Mac?](https://forum.world-machine.com/t/how-to-select-opencl-on-mac/8613)

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

---

<div class="post-metadata">

**Author:** ![wemachine](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/w/7c8e57/32.png) [@wemachine](https://forum.world-machine.com/u/wemachine)\
**Post date:** [December 1, 2026, 7:26am UTC](https://forum.world-machine.com/t/opencl-compute-not-available-error-on-linux/8624/4 "2026-12-01T07:26:01Z")

</div>

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:

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

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.
