mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-10 04:00:53 +00:00
got rid of numa getcpu for now
This commit is contained in:
parent
f3a0e05d91
commit
7e0efdaa30
1 changed files with 7 additions and 7 deletions
14
ggml.c
14
ggml.c
|
|
@ -2081,13 +2081,13 @@ void ggml_numa_init(enum ggml_numa_strategy numa_flag) {
|
|||
// figure out which node we're on
|
||||
uint current_cpu;
|
||||
int getcpu_ret = 0;
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 28)
|
||||
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);
|
||||
// koboldcpp fix: we don't use numa and this thing breaks runpod
|
||||
#endif
|
||||
// #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 28)
|
||||
// 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);
|
||||
// // koboldcpp fix: we don't use numa and this thing breaks runpod
|
||||
// #endif
|
||||
|
||||
if (g_state.numa.n_nodes < 1 || g_state.numa.total_cpus < 1 || getcpu_ret != 0) {
|
||||
g_state.numa.n_nodes = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue