From 1e7325b6132fac34f2c9891be24fac6c7fd47eb4 Mon Sep 17 00:00:00 2001 From: Peron Date: Fri, 23 Feb 2024 22:07:12 +0000 Subject: [PATCH] fix(ggml): typo Fix a typo which causes it unable to compile with old glibc --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index d710fe702..2096040e9 100644 --- a/ggml.c +++ b/ggml.c @@ -2085,7 +2085,7 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) { getcpu_ret = getcpu(¤t_cpu, &g_state.numa.current_node); #else // old glibc doesn't have a wrapper for this call. Fall back on direct syscall - getcpu_ret = syscall(SYS_getcpu,¤t_cpu,&g_state.numa.current_node); + getcpu_ret = syscall(SYS_get_cpu,¤t_cpu,&g_state.numa.current_node); #endif if (g_state.numa.n_nodes < 1 || g_state.numa.total_cpus < 1 || getcpu_ret != 0) {