interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / examples / CMakeLists.txt

34 lines · 871 bytes Raw Blame History
1if (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()
12endif()
13
14add_library(common STATIC common.cpp)
15target_include_directories(common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
16
17add_library(common-ggml STATIC common-ggml.cpp)
18target_link_libraries(common-ggml PRIVATE ggml)
19target_include_directories(common-ggml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
20
21add_subdirectory(yolo)
22
23if (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)
30endif()
31
32if (GGML_METAL)
33 add_subdirectory(perf-metal)
34endif()