Skip to content

Commit

Permalink
ggml: Move definition of ggml_arm_arch_features to the global data se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
eddnjjn committed Sep 26, 2024
1 parent 8fd848d commit a48284c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@
#include <unistd.h>
#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)
#undef GGML_USE_LLAMAFILE
#endif
Expand Down Expand Up @@ -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)
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) {
switch (status) {
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
Expand Down

0 comments on commit a48284c

Please sign in to comment.