mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-08-15 04:33:06 -04:00
ggml-cpu: move macro definitions
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
@@ -55,20 +55,6 @@ if (GGML_ALL_WARNINGS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (GGML_VXE)
|
||||
add_compile_definitions(GGML_VXE)
|
||||
target_compile_definitions(ggml PUBLIC GGML_VXE)
|
||||
target_compile_definitions(ggml-base PUBLIC GGML_VXE)
|
||||
message(STATUS "GGML_VXE triggered")
|
||||
endif()
|
||||
|
||||
if (GGML_NNPA)
|
||||
add_compile_definitions(GGML_NNPA)
|
||||
target_compile_definitions(ggml PUBLIC GGML_NNPA)
|
||||
target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
|
||||
message(STATUS "GGML_NNPA triggered")
|
||||
endif()
|
||||
|
||||
if (GGML_LTO)
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT result OUTPUT output)
|
||||
@@ -416,3 +402,17 @@ if (BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(${target} PUBLIC GGML_SHARED)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if (GGML_VXE)
|
||||
add_compile_definitions(GGML_VXE)
|
||||
target_compile_definitions(ggml PUBLIC GGML_VXE)
|
||||
target_compile_definitions(ggml-base PUBLIC GGML_VXE)
|
||||
message(STATUS "GGML_VXE triggered")
|
||||
endif()
|
||||
|
||||
if (GGML_NNPA)
|
||||
add_compile_definitions(GGML_NNPA)
|
||||
target_compile_definitions(ggml PUBLIC GGML_NNPA)
|
||||
target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
|
||||
message(STATUS "GGML_NNPA triggered")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user