Skip to content

Commit a48284c

Browse files
committed
ggml: Move definition of ggml_arm_arch_features to the global data section
1 parent 8fd848d commit a48284c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ggml/src/ggml.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@
3939
#include <unistd.h>
4040
#endif
4141

42-
#if defined(__ARM_ARCH)
43-
struct ggml_arm_arch_features_type {
44-
int has_neon;
45-
int has_i8mm;
46-
int has_sve;
47-
int sve_cnt;
48-
} ggml_arm_arch_features = {-1, -1, -1, 0};
49-
#endif
50-
5142
#if defined(__ARM_FEATURE_SVE) || defined(__ARM_FEATURE_MATMUL_INT8)
5243
#undef GGML_USE_LLAMAFILE
5344
#endif
@@ -461,6 +452,15 @@ static ggml_fp16_t ggml_table_gelu_quick_f16[1 << 16];
461452
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
462453
float ggml_table_f32_f16[1 << 16];
463454

455+
#if defined(__ARM_ARCH)
456+
struct ggml_arm_arch_features_type {
457+
int has_neon;
458+
int has_i8mm;
459+
int has_sve;
460+
int sve_cnt;
461+
} ggml_arm_arch_features = {-1, -1, -1, 0};
462+
#endif
463+
464464
GGML_CALL const char * ggml_status_to_string(enum ggml_status status) {
465465
switch (status) {
466466
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";

0 commit comments

Comments
 (0)