mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-18 20:27:53 +00:00
ggml : fix undefined reference to 'getcpu' (llama/10354)
https://github.com/ggerganov/llama.cpp/issues/10352
This commit is contained in:
parent
dcb2922d1d
commit
45cf1634dc
@ -2369,7 +2369,7 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) {
|
|||||||
// figure out which node we're on
|
// figure out which node we're on
|
||||||
uint current_cpu;
|
uint current_cpu;
|
||||||
int getcpu_ret = 0;
|
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(¤t_cpu, &g_state.numa.current_node);
|
getcpu_ret = getcpu(¤t_cpu, &g_state.numa.current_node);
|
||||||
#else
|
#else
|
||||||
// old glibc doesn't have a wrapper for this call. Fall back on direct syscall
|
// old glibc doesn't have a wrapper for this call. Fall back on direct syscall
|
||||||
|
Loading…
Reference in New Issue
Block a user