File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ if (NOT LLAMA_SANITIZE_ADDRESS AND NOT GGML_SCHED_NO_REALLOC)
239239 # TODO: repair known memory leaks
240240 llama_build_and_test (test -opt.cpp )
241241endif ()
242- llama_build_and_test (test -gguf.cpp )
243242llama_build_and_test (test -backend-ops.cpp )
244243
245244llama_build_and_test (test -model-load-cancel.cpp LABEL "model" )
@@ -299,11 +298,15 @@ get_filename_component(TEST_TARGET test-c.c NAME_WE)
299298add_executable (${TEST_TARGET} test -c.c )
300299target_link_libraries (${TEST_TARGET} PRIVATE llama )
301300
302- llama_build_and_test (test -alloc.cpp )
303- target_include_directories (test -alloc PRIVATE ${PROJECT_SOURCE_DIR } /ggml/src )
301+ if (NOT LLAMA_USE_SYSTEM_GGML)
302+ # Needs non-public ggml-impl.h
303+ llama_build_and_test (test -gguf.cpp )
304+
305+ # Needs non-public ggml{,-backend}-impl.h
306+ llama_build_and_test (test -alloc.cpp )
307+ endif ()
304308
305309llama_build (test -export-graph-ops.cpp )
306- target_include_directories (test -export-graph-ops PRIVATE ${PROJECT_SOURCE_DIR } /ggml/src )
307310if (TARGET gguf-model-data)
308311 target_link_libraries (test -export-graph-ops PRIVATE gguf-model-data )
309312 target_compile_definitions (test -export-graph-ops PRIVATE LLAMA_HF_FETCH )
Original file line number Diff line number Diff line change 1- #include < ggml-alloc.h>
2- #include < ggml-backend-impl.h>
3- #include < ggml-cpp.h>
4- #include < ggml-impl.h>
5- #include < ggml.h>
1+ #include " ggml-alloc.h"
2+ #include " ../ ggml/src/ggml -backend-impl.h"
3+ #include " ggml-cpp.h"
4+ #include " ../ ggml/src/ggml -impl.h"
5+ #include " ggml.h"
66
77#include < algorithm>
88#include < exception>
Original file line number Diff line number Diff line change 1515// ##############################
1616
1717
18- #include < ggml.h>
19- #include < ggml-alloc.h>
20- #include < ggml-backend.h>
21- #include < ggml-cpp.h>
18+ #include " ggml.h"
19+ #include " ggml-alloc.h"
20+ #include " ggml-backend.h"
21+ #include " ggml-cpp.h"
2222
2323#include < algorithm>
2424#include < atomic>
You can’t perform that action at this time.
0 commit comments