whisper.cpp/examples/whisper.android/lib
Jinwei Han 72e57ec4e7 android : fix CPU variant fallback returning LITTLE cluster count
The variant fallback in getHighPerfCpuCountByVariant() used
countKeepingMin() while the primary frequency branch used
countDroppingMin(). Both branches are meant to return the count of
high-performance cores, so the asymmetry caused the variant branch to
return the LITTLE cluster count instead.

On big.LITTLE SoCs, when cpuinfo_max_freq is unreadable and the code
falls back to CPU variant (verified by the reporter on Helio G85 in
ggml-org/whisper.cpp#3602), whisper ends up running on the LITTLE
cores and inference throughput roughly halves.

Fix mirrors the suggestion in the issue: use countDroppingMin() in the
variant branch, matching the frequency branch. Both the Kotlin
(whisper.android) and Java (whisper.android.java) examples share the
same asymmetry and are fixed together.
2026-04-19 23:49:25 -07:00
..
src/main android : fix CPU variant fallback returning LITTLE cluster count 2026-04-19 23:49:25 -07:00
.gitignore android : decouple example into a library and app module (#1445) 2023-11-07 14:27:33 +02:00
build.gradle whisper.android : how to build with CLBlast (#1809) 2024-02-09 17:39:05 +02:00