Skip to content

Commit a431782

Browse files
authored
ggml : fix undefined reference to 'getcpu' (#10354)
#10352
1 parent c3ea58a commit a431782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) {
23692369
// figure out which node we're on
23702370
uint current_cpu;
23712371
int getcpu_ret = 0;
2372-
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 28) || defined(__COSMOPOLITAN__)
2372+
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 33) || defined(__COSMOPOLITAN__)
23732373
getcpu_ret = getcpu(&current_cpu, &g_state.numa.current_node);
23742374
#else
23752375
// old glibc doesn't have a wrapper for this call. Fall back on direct syscall

0 commit comments

Comments
 (0)