When running with the GPU model, the OpenCL library cannot be opened on this device. #5551
Labels
gpu
MediaPipe GPU related issues
platform:android
Issues with Android as Platform
task:LLM inference
Issues related to MediaPipe LLM Inference Gen AI setup
type:support
General questions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
ARM64 Android14("UpsideDownCake)
MediaPipe Tasks SDK version
34
Task name (e.g. Image classification, Gesture recognition etc.)
LLM
Programming Language and version (e.g. C++, Python, Java)
Kotlin
Describe the actual behavior
I cloned the examples/llm_inference/android example and tested it without any changes, following the guidelines. However, it works correctly when using
gemma2b-cpu.bin
, but an error occurs when usinggemma2b-gpu.bin
. I downloadedgemma2b-gpu.bin
inint4
format from Kaggle. When I run the Android application, there are no errors in the logcat, but when I launch the app, the emulator screen displays an error message saying,MediaPipeException: internal: Failed to initialize session: %s Can not open OpenCL library on this device.
I would appreciate it if you could let me know if this is an issue with the emulator.
Describe the expected behaviour
Nothing Exception.
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: