]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix undefined reference to 'getcpu' (#10354)
authorFirstTimeEZ <redacted>
Sun, 17 Nov 2024 08:39:22 +0000 (21:39 +1300)
committerGitHub <redacted>
Sun, 17 Nov 2024 08:39:22 +0000 (10:39 +0200)
https://github.com/ggerganov/llama.cpp/issues/10352

ggml/src/ggml-cpu/ggml-cpu.c

index df648792949817c3a1962c29a6706d36c425fe28..0d23669c25bea26aa813d751647c4b83b7381c6b 100644 (file)
@@ -2369,7 +2369,7 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) {
     // figure out which node we're on
     uint current_cpu;
     int getcpu_ret = 0;
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 28) || defined(__COSMOPOLITAN__)
+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 33) || defined(__COSMOPOLITAN__)
     getcpu_ret = getcpu(&current_cpu, &g_state.numa.current_node);
 #else
     // old glibc doesn't have a wrapper for this call. Fall back on direct syscall