Skip to content

Commit 1d9f887

Browse files
committed
ggml-hexagon: sync with upstream llama.cpp
1 parent 6eb6c1d commit 1d9f887

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
1111
if(DEFINED HTP_ARCH_VERSION)
1212
if (${HTP_ARCH_VERSION} STREQUAL "v75" OR ${HTP_ARCH_VERSION} STREQUAL "v79")
1313
#works fine on Snapdragon 8Gen3&8Elite with 1.5x - 3x performance gains with the default ggml backend
14-
set(OPT_FLAG " -O3 -march=armv8.7-a -mcpu=cortex-x1 -mtune=cortex-x1 -flto -D_GNU_SOURCE -fvectorize -ffp-model=fast -fno-finite-math-only")
14+
#refer to:https://github.com/kantv-ai/kantv/issues/287
15+
set(OPT_FLAG " -O3 -march=armv8.7-a -flto -D_GNU_SOURCE -fvectorize -ffp-model=fast -fno-finite-math-only")
1516
message("OPT_FLAG:${OPT_FLAG}")
1617
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DGGML_USE_HEXAGON ${DEBUG_FLAG} ${OPT_FLAG}")
1718
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGGML_USE_HEXAGON ${DEBUG_FLAG} ${OPT_FLAG}")

0 commit comments

Comments
 (0)