mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-07-21 02:05:35 +00:00
fix: add -march=native for ARM64 Linux builds to enable DOTPROD (#2094)
This commit is contained in:
@@ -1258,6 +1258,9 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
|
||||
if (GGML_SVE)
|
||||
list(APPEND ARCH_FLAGS -march=armv8.6-a+sve)
|
||||
endif()
|
||||
if (GGML_NATIVE)
|
||||
list(APPEND ARCH_FLAGS -march=native)
|
||||
endif()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
# else we fail on Gravitons and such
|
||||
list(APPEND ARCH_FLAGS -flax-vector-conversions)
|
||||
|
||||
Reference in New Issue
Block a user