Skip to content

error: implicit declaration of function ‘getcpu’ #5537

Closed
@davesworking

Description

@davesworking

[dave@Rocky8_6 build]$ cmake --build . --config Release

[  1%] Building C object CMakeFiles/ggml.dir/ggml.c.o
/home/dstiff/Repos/GitHub/ggerganov/llama.cpp/ggml.c: In function ‘ggml_numa_init’:
/home/dstiff/Repos/GitHub/ggerganov/llama.cpp/ggml.c:2054:22: error: implicit declaration of function ‘getcpu’; did you mean ‘getopt’? [-Werror=implicit-function-declaration]
     int getcpu_ret = getcpu(&current_cpu, &g_state.numa.current_node);
                      ^~~~~~
                      getopt
cc1: some warnings being treated as errors

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions