ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / examples / CMakeLists.txt
| 1 | if (GGML_ALL_WARNINGS) |
| 2 | if (NOT MSVC) |
| 3 | set(cxx_flags |
| 4 | # TODO(marella): Add other warnings. |
| 5 | -Wpedantic |
| 6 | -Wunused-variable |
| 7 | -Wno-unused-function |
| 8 | -Wno-multichar |
| 9 | ) |
| 10 | add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${cxx_flags}>") |
| 11 | endif() |
| 12 | endif() |
| 13 | |
| 14 | add_library(common STATIC common.cpp) |
| 15 | target_include_directories(common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
| 16 | |
| 17 | add_library(common-ggml STATIC common-ggml.cpp) |
| 18 | target_link_libraries(common-ggml PRIVATE ggml) |
| 19 | target_include_directories(common-ggml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
| 20 | |
| 21 | add_subdirectory(yolo) |
| 22 | |
| 23 | if (NOT GGML_BACKEND_DL) |
| 24 | add_subdirectory(gpt-2) |
| 25 | add_subdirectory(gpt-j) |
| 26 | add_subdirectory(mnist) |
| 27 | add_subdirectory(sam) |
| 28 | add_subdirectory(simple) |
| 29 | add_subdirectory(magika) |
| 30 | endif() |
| 31 | |
| 32 | if (GGML_METAL) |
| 33 | add_subdirectory(perf-metal) |
| 34 | endif() |