move qnn backend into sub folder
This commit is contained in:
parent
3808a4c1e0
commit
8b677d1b2f
13 changed files with 19 additions and 21 deletions
|
@ -13,17 +13,17 @@ set(QNN_INC_PATH ${QNN_SDK_PATH}/include/QNN)
|
||||||
set(QNN_LIB_PATH ${QNN_SDK_PATH}/lib/aarch64-android)
|
set(QNN_LIB_PATH ${QNN_SDK_PATH}/lib/aarch64-android)
|
||||||
|
|
||||||
include_directories(${QNN_INC_PATH})
|
include_directories(${QNN_INC_PATH})
|
||||||
include_directories(../../) # ggml.h
|
include_directories(../../ggml/include) # ggml.h, ggml-qnn.h
|
||||||
|
|
||||||
set(SOURCE_FILES
|
set(SOURCE_FILES
|
||||||
../../ggml.c
|
../../ggml/src/ggml.c
|
||||||
../../ggml-alloc.c
|
../../ggml/src/ggml-alloc.c
|
||||||
../../ggml-backend.c
|
../../ggml/src/ggml-backend.c
|
||||||
../../ggml-quants.c
|
../../ggml/src/ggml-quants.c
|
||||||
../../ggml-qnn/logger.cpp
|
../../ggml/src/ggml-qnn/logger.cpp
|
||||||
../../ggml-qnn/utils.cpp
|
../../ggml/src/ggml-qnn/utils.cpp
|
||||||
../../ggml-qnn/backend-ops.cpp
|
../../ggml/src/ggml-qnn/backend-ops.cpp
|
||||||
../../ggml-qnn.cpp
|
../../ggml/src/ggml-qnn.cpp
|
||||||
ggml-qnn-ut.cpp
|
ggml-qnn-ut.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -36,22 +36,20 @@ add_definitions(-D__ARM_NEON)
|
||||||
add_definitions(-DGGML_USE_QNN)
|
add_definitions(-DGGML_USE_QNN)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
add_definitions(-O3)
|
add_definitions(-O3)
|
||||||
else()
|
else()
|
||||||
add_definitions(-O3)
|
add_definitions(-O3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TARGET_SNAPDRAGON_8_GEN3)
|
if (TARGET_SNAPDRAGON_8_GEN3)
|
||||||
# the below build optimization only verified and works well on Qualcomm SM8650-AB Snapdragon 8 Gen 3
|
# the below build optimization only verified and works well on Qualcomm SM8650-AB Snapdragon 8 Gen 3
|
||||||
add_definitions(-march=armv8.7-a)
|
add_definitions(-march=armv8.7-a)
|
||||||
add_definitions(-mcpu=cortex-x1)
|
add_definitions(-mcpu=cortex-x1)
|
||||||
add_definitions(-mtune=cortex-x1)
|
add_definitions(-mtune=cortex-x1)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
# the below build optimization might be works well on ALL Android phone equipped with Qualcomm mainstream mobile SoC
|
# the below build optimization might be works well on ALL Android phone equipped with Qualcomm mainstream mobile SoC
|
||||||
add_definitions(-mcpu=cortex-a72)
|
add_definitions(-mcpu=cortex-a72)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_compile_options("-Wall" "-Wno-sign-compare")
|
add_compile_options("-Wall" "-Wno-sign-compare")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue