Skip to content

Does whisper.cpp support Android 16k page size? #3440

@Fereshte874

Description

@Fereshte874

Gemini told me that it is already supported, but when I compiled the master branch, I found max-page-size=4096.
Then I modified these codes:

android {
    ndkVersion "28.2.13676358" 
}

cmake add arguments += "-DANDROID_LDFLAGS=-Wl,-z,max-page-size=16384"

Android Studio warning:

APK app-debug.apk is not compatible with 16 KB devices. Some libraries are not aligned at 16 KB zip boundaries:
lib/arm64-v8a/libggml-cpu.so
lib/arm64-v8a/libggml.so
lib/arm64-v8a/libomp.so
lib/arm64-v8a/libwhisper.so
lib/arm64-v8a/libwhisper_v8fp16_va.so

How can I fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions