mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 14:20:31 +01:00
ggml : do not use ARM features not included in the build (#10457)
This commit is contained in:
parent
6dfcfef078
commit
55ed008b2d
@ -13896,7 +13896,7 @@ int ggml_cpu_has_vsx(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ggml_cpu_has_neon(void) {
|
int ggml_cpu_has_neon(void) {
|
||||||
#if defined(__ARM_ARCH)
|
#if defined(__ARM_ARCH) && defined(__ARM_NEON)
|
||||||
return ggml_arm_arch_features.has_neon;
|
return ggml_arm_arch_features.has_neon;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
@ -13904,7 +13904,7 @@ int ggml_cpu_has_neon(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ggml_cpu_has_sve(void) {
|
int ggml_cpu_has_sve(void) {
|
||||||
#if defined(__ARM_ARCH)
|
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE)
|
||||||
return ggml_arm_arch_features.has_sve;
|
return ggml_arm_arch_features.has_sve;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
@ -13912,7 +13912,7 @@ int ggml_cpu_has_sve(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ggml_cpu_has_matmul_int8(void) {
|
int ggml_cpu_has_matmul_int8(void) {
|
||||||
#if defined(__ARM_ARCH)
|
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_MATMUL_INT8)
|
||||||
return ggml_arm_arch_features.has_i8mm;
|
return ggml_arm_arch_features.has_i8mm;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
@ -13920,7 +13920,7 @@ int ggml_cpu_has_matmul_int8(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ggml_cpu_get_sve_cnt(void) {
|
int ggml_cpu_get_sve_cnt(void) {
|
||||||
#if defined(__ARM_ARCH)
|
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE)
|
||||||
return ggml_arm_arch_features.sve_cnt;
|
return ggml_arm_arch_features.sve_cnt;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user