fix(ggml): typo

Fix a typo which causes it unable to compile with old glibc
This commit is contained in:
Peron 2024-02-23 22:07:12 +00:00 committed by GitHub
parent fd43d66f46
commit 1e7325b613
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
ggml.c
View file

@ -2085,7 +2085,7 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) {
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
getcpu_ret = syscall(SYS_getcpu,&current_cpu,&g_state.numa.current_node);
getcpu_ret = syscall(SYS_get_cpu,&current_cpu,&g_state.numa.current_node);
#endif
if (g_state.numa.n_nodes < 1 || g_state.numa.total_cpus < 1 || getcpu_ret != 0) {