OpenCL support on Radxa Zero

Installing the packages “clinfo ocl-icd-opencl-dev ocl-icd-libopencl1” the clinfo command returns empty.

Tested with Ubuntu Focal 20.04 and Armbian 22.05.

Any procedure to support OpenCL on Radxa Zero?

We rely on upstream to provide this support, namely panfrost.

Okay, and how do I make OpenCL work? Returns empty.

user1@radxa-zero:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
user1@radxa-zero:~$
user1@radxa-zero:~$ uname -ra
Linux radxa-zero 5.10.113-meson64 SMP PREEMPT Wed Apr 27 17:23:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
user1@radxa-zero:~$

user1@radxa-zero:~/build$ sudo clinfo
Number of platforms 0

Panfrost was included in Debian Bullseye release. We are working to upgrade our images to target this release atm.

Beware OpenCL itself is WIP for panfrost. So you may not be able to run OpenCL on Zero as of right now.

Alright.
Can you give me an image link (Ubuntu, Debian or Armbian) with OpenCL support for Radxa Zero? Or what version can I use that supports OpenCL?

Here is the device page on Armbian. If you still have no OpenCL support then it is not there yet.