Package-level declarations

Types

Link copied to clipboard

The Android OpenCL add-on: depending on com.donfuldauer:kggml-runtime-opencl packages ggml's OpenCL backend (libggml-opencl.so, with the kernels tuned for Qualcomm Adreno) into the app and declares the vendor's libOpenCL.so in its manifest. :kggml-runtime registers the backend when it loads, before any engine runs, so ComputeBackend.GPU_OPENCL can use the GPU (the engines' ComputeBackend.AUTO stays on the CPU or Vulkan on Android: whisper and llama run faster on the CPU, and diffusion needs ops OpenCL lacks). Devices without OpenCL (e.g. Pixel phones, emulators) cannot load the module: the engines keep running on Vulkan (with that add-on) or the CPU, and logcat (kggml) says why.