This guide documents how to compile and run llama.cpp natively on Android using Termux, specifically optimized for devices with Mali GPUs (like the Dimensity 8400 Ultra in the Poco X7 Pro).
Unlike Snapdragon devices, Mali GPUs require specific build flags and Vulkan loaders to work correctly.
- Device: Poco X7 Pro
- SoC: MediaTek Dimensity 8400 Ultra
- GPU: Mali-G720 MC7