ggerganov Willy Tarreau commited on
Commit
1d52105
·
1 Parent(s): 12c0e23

ggml : define missing HWCAP flags (llama/9684)

Browse files

ggml-ci

Co-authored-by: Willy Tarreau <[email protected]>

Files changed (1) hide show
  1. ggml/src/ggml.c +4 -0
ggml/src/ggml.c CHANGED
@@ -3687,6 +3687,10 @@ static inline int ggml_up(int n, int m) {
3687
  #include <sys/sysctl.h>
3688
  #endif
3689
 
 
 
 
 
3690
  static void ggml_init_arm_arch_features(void) {
3691
  #if defined(__linux__) && defined(__aarch64__)
3692
  uint32_t hwcap = getauxval(AT_HWCAP);
 
3687
  #include <sys/sysctl.h>
3688
  #endif
3689
 
3690
+ #if !defined(HWCAP2_I8MM)
3691
+ #define HWCAP2_I8MM 0
3692
+ #endif
3693
+
3694
  static void ggml_init_arm_arch_features(void) {
3695
  #if defined(__linux__) && defined(__aarch64__)
3696
  uint32_t hwcap = getauxval(AT_HWCAP);