Skip to content

Commit db2a125

Browse files
committed
fix GGML_QNN_ENABLE_PERFORMANCE_TRACKING option
1 parent 02af8ff commit db2a125

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ggml/src/ggml-qnn/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ ggml_add_backend_library(ggml-qnn
3737
)
3838
target_link_libraries(ggml-qnn PRIVATE ${COMMON_LINK_LIBRARIES})
3939

40-
if(GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
41-
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is enabled")
42-
target_compile_definitions(ggml-qnn PRIVATE GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
43-
else()
44-
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is disabled")
45-
endif()
46-
4740
add_subdirectory(shared)
4841

4942
if(GGML_HEXAGON_NPU_ONLY)

ggml/src/ggml-qnn/qnn/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ else()
2626
message("GGML_QNN_ENABLE_CPU_BACKEND is disabled")
2727
endif()
2828

29+
if(GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
30+
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is enabled")
31+
target_compile_definitions(qnn-backend PUBLIC GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
32+
else()
33+
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is disabled")
34+
endif()
35+
2936
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
3037
set(QNN_DEFAULT_LIB_SEARCH_PATH "/data/local/tmp/" CACHE STRING "customized library search path for QNN backend")
3138
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")

0 commit comments

Comments
 (0)