mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
cleanup, fix native build for arm (+28 squashed commit)
Squashed commit: [d1f6a4154] bundle library [947ab84b7] undo [0f9aba8d8] test [e9ac93873] test [920438202] test [1c6d98804
] Revert "quick test" This reverts commitacf8ec8940
. [acf8ec894
] quick test [6a9937233
] undo [5a263a5bd
] test [ddfd82bca
] test [0b30e45da
] test [c3bfece55
] messed up [2a4b37fe0
] Revert "test" This reverts commit80a1fcaeaf
. [80a1fcaea
] test [e2aa7d944
] test [264d80200
] test [f5b123173
] undo [1ffacc484
] test [63c0be926
] undo [510e0377e
] ofast try fix [4ac199b20
] try fix sigill [1bc987ba2
] try fix illegal instruction [7697252b1
] edit [f87087b28
] check gcc ver [e9dfe2cef
] try using qemu to do the pyinstaller [b411192db
] revert [25b5301e5
] try using qemu to do the pyinstaller [58038cddc
] try using qemu to do the pyinstaller
This commit is contained in:
parent
e9d2332dd8
commit
a11bba5893
28 changed files with 69 additions and 10898 deletions
|
@ -40,7 +40,7 @@
|
|||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_FEATURE_SVE) || defined(__ARM_FEATURE_MATMUL_INT8)
|
||||
#if (defined(__ARM_FEATURE_SVE) && ! defined(LLAMA_NOSVE)) || defined(__ARM_FEATURE_MATMUL_INT8)
|
||||
#undef GGML_USE_LLAMAFILE
|
||||
#endif
|
||||
|
||||
|
@ -2442,7 +2442,7 @@ static void ggml_init_arm_arch_features(void) {
|
|||
ggml_arm_arch_features.has_i8mm = !!(hwcap2 & HWCAP2_I8MM);
|
||||
ggml_arm_arch_features.has_sve = !!(hwcap & HWCAP_SVE);
|
||||
|
||||
#if defined(__ARM_FEATURE_SVE)
|
||||
#if defined(__ARM_FEATURE_SVE) && ! defined(LLAMA_NOSVE)
|
||||
ggml_arm_arch_features.sve_cnt = PR_SVE_VL_LEN_MASK & prctl(PR_SVE_GET_VL);
|
||||
#endif
|
||||
#elif defined(__APPLE__)
|
||||
|
@ -2479,7 +2479,7 @@ static void ggml_init_arm_arch_features(void) {
|
|||
ggml_arm_arch_features.has_i8mm = 0;
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_FEATURE_SVE)
|
||||
#if defined(__ARM_FEATURE_SVE) && ! defined(LLAMA_NOSVE)
|
||||
ggml_arm_arch_features.has_sve = 1;
|
||||
ggml_arm_arch_features.sve_cnt = 16;
|
||||
#else
|
||||
|
@ -13946,7 +13946,7 @@ int ggml_cpu_has_dotprod(void) {
|
|||
}
|
||||
|
||||
int ggml_cpu_has_sve(void) {
|
||||
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE)
|
||||
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE) && ! defined(LLAMA_NOSVE)
|
||||
return ggml_arm_arch_features.has_sve;
|
||||
#else
|
||||
return 0;
|
||||
|
@ -13962,7 +13962,7 @@ int ggml_cpu_has_matmul_int8(void) {
|
|||
}
|
||||
|
||||
int ggml_cpu_get_sve_cnt(void) {
|
||||
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE)
|
||||
#if defined(__ARM_ARCH) && defined(__ARM_FEATURE_SVE) && ! defined(LLAMA_NOSVE)
|
||||
return ggml_arm_arch_features.sve_cnt;
|
||||
#else
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue