Spaces:
Running
Running
ggml : define missing HWCAP flags (llama/9684)
Browse filesggml-ci
Co-authored-by: Willy Tarreau <[email protected]>
- 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);
|