How can I enable OpenCL on RUBIK Pi when the Ubuntu image lacks libOpenCL.so?

Hello. I am trying to use OpenCL to run inference on the Adreno GPU. I was able to use OpenCL successfully on the RUBIK Pi when running the Debian 13 image and Android image.

However, when I switched to the Ubuntu image, I noticed that there is no libOpenCL.so or any related shared objects under /usr/lib. I tried copying the shared objects from the Debian image, but they fail to load. I also tried installing OpenCL packages with ICD support, but OpenCL still does not work on Ubuntu.

Below is the error log I received when using the shared object from the Debian 13 image.


INFO: Created TensorFlow Lite delegate for GPU.
INFO: Loaded OpenCL library with dlopen.
ERROR: clGetPlatformIDs returned -1001
ERROR: Falling back to OpenGL
INFO: Initialized OpenGL-based API.
INFO: Created 1 GPU delegate kernels.


Is there any way to enable OpenCL on the RUBIK Pi when using the Ubuntu image?

if you use server edition, GPU driver adreno is installed.
so you can check the lib list:

dpkg -L qcom-adreno1

I am using the desktop edition; sorry for not mentioning it earlier. Since the desktop edition uses freedreno, do I need to install an ICD to use OpenCL?

For desktop edition, you can try to install qcom-adreno-cl1:

apt install qcom-adreno-cl1

I have not used this, but it deserves a try.

@rosh Thank you for the suggestion. I’ll give it a try and let you know.