-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not open OpenCL library on this device - undefined symbol: clGetCommandBufferInfoKHR #886
Comments
Hi, @pkgoogle |
@pkgoogle the issue is not solved, let me know if I need to provide you with more information! |
Hi @AIWintermuteAI, can you please be more specific about your tfl shared_lib building steps? Preferably your exact building steps I'm assuming one of the steps includes this one.
Which NDK version did you use? any potential deviations from any other steps? |
@pkgoogle yes, in fact, since I build in container, I can provide the full Dockerfile and build commands
It is a shared container, so there are a few things that are not necessary for Android CMake build, but I left them for completeness.
FLAGS is not set for this case. |
When using TFLite shared lib with GPU delegate (compiled from the tag 2.16.1 by following https://ai.google.dev/edge/litert/build/cmake#cross-compilation and applying the patch from this issue) in Android studio, I get
That happens both when running the app in Emulator (Android 15 Medium Phone API 35) on Mac M1, and also when running on the physcial phone connected with wireless debugging (Samsung A34 running Android 13 Tiramisu). The error appears here (I'm around 95% sure this is the place)
I have already tried solution offered in most of the places, which is adding libOpenCL.so to Android Manifest...
Unfortunately, the error still persists.
The text was updated successfully, but these errors were encountered: