disable llamafile in android example

This commit is contained in:
slaren 2024-12-18 20:24:25 +01:00
parent 6f6794f23c
commit 0a4b79ca3d
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
arguments += "-DLLAMA_BUILD_COMMON=ON" arguments += "-DLLAMA_BUILD_COMMON=ON"
arguments += "-DGGML_LLAMAFILE=OFF"
arguments += "-DCMAKE_BUILD_TYPE=Release" arguments += "-DCMAKE_BUILD_TYPE=Release"
cppFlags += listOf() cppFlags += listOf()
arguments += listOf() arguments += listOf()

View file

@ -204,6 +204,7 @@ template <> inline float32x4_t load(const float *p) {
return vld1q_f32(p); return vld1q_f32(p);
} }
#if !defined(_MSC_VER) #if !defined(_MSC_VER)
// FIXME: this should check for __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
template <> inline float16x8_t load(const ggml_fp16_t *p) { template <> inline float16x8_t load(const ggml_fp16_t *p) {
return vld1q_f16((const float16_t *)p); return vld1q_f16((const float16_t *)p);
} }