Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(ggml): typo
Fix a typo which causes it unable to compile with old glibc
  • Loading branch information
PeronGH authored Feb 23, 2024
commit 1e7325b6132fac34f2c9891be24fac6c7fd47eb4
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down