ggml: Move definition of ggml_arm_arch_features to the global data section
This commit is contained in:
parent
8fd848dd30
commit
a48284c5f3
1 changed files with 9 additions and 9 deletions
|
@ -39,15 +39,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ARM_ARCH)
|
|
||||||
struct ggml_arm_arch_features_type {
|
|
||||||
int has_neon;
|
|
||||||
int has_i8mm;
|
|
||||||
int has_sve;
|
|
||||||
int sve_cnt;
|
|
||||||
} ggml_arm_arch_features = {-1, -1, -1, 0};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__ARM_FEATURE_SVE) || defined(__ARM_FEATURE_MATMUL_INT8)
|
#if defined(__ARM_FEATURE_SVE) || defined(__ARM_FEATURE_MATMUL_INT8)
|
||||||
#undef GGML_USE_LLAMAFILE
|
#undef GGML_USE_LLAMAFILE
|
||||||
#endif
|
#endif
|
||||||
|
@ -461,6 +452,15 @@ static ggml_fp16_t ggml_table_gelu_quick_f16[1 << 16];
|
||||||
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
||||||
float ggml_table_f32_f16[1 << 16];
|
float ggml_table_f32_f16[1 << 16];
|
||||||
|
|
||||||
|
#if defined(__ARM_ARCH)
|
||||||
|
struct ggml_arm_arch_features_type {
|
||||||
|
int has_neon;
|
||||||
|
int has_i8mm;
|
||||||
|
int has_sve;
|
||||||
|
int sve_cnt;
|
||||||
|
} ggml_arm_arch_features = {-1, -1, -1, 0};
|
||||||
|
#endif
|
||||||
|
|
||||||
GGML_CALL const char * ggml_status_to_string(enum ggml_status status) {
|
GGML_CALL const char * ggml_status_to_string(enum ggml_status status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue