How To Fix Opencl Platform Not Found Issue On Android

Android
OpenCL
Oneplus Ace2V
LLama.cpp
LD_LIBRARY_PATH
Environment Variables
Solution
This article provides a solution to the OpenCL platform not found issue on Android when running llama.cpp on Oneplus Ace2V by instructing users to set the LD_LIBRARY_PATH environment variable.
Published

December 9, 2023


To run llama.cpp on Oneplus Ace2V, you need an extra step:

export LD_LIBRARY_PATH=/vendor/lib64:/vendor/lib64/mt6983:/vendor/lib64/egl/mt6983