fix GGML_QNN_ENABLE_PERFORMANCE_TRACKING option
This commit is contained in:
parent
02af8ff653
commit
db2a125438
|
|
@ -37,13 +37,6 @@ ggml_add_backend_library(ggml-qnn
|
|||
)
|
||||
target_link_libraries(ggml-qnn PRIVATE ${COMMON_LINK_LIBRARIES})
|
||||
|
||||
if(GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
|
||||
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is enabled")
|
||||
target_compile_definitions(ggml-qnn PRIVATE GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
|
||||
else()
|
||||
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is disabled")
|
||||
endif()
|
||||
|
||||
add_subdirectory(shared)
|
||||
|
||||
if(GGML_HEXAGON_NPU_ONLY)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@ else()
|
|||
message("GGML_QNN_ENABLE_CPU_BACKEND is disabled")
|
||||
endif()
|
||||
|
||||
if(GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
|
||||
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is enabled")
|
||||
target_compile_definitions(qnn-backend PUBLIC GGML_QNN_ENABLE_PERFORMANCE_TRACKING)
|
||||
else()
|
||||
message("GGML_QNN_ENABLE_PERFORMANCE_TRACKING is disabled")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
set(QNN_DEFAULT_LIB_SEARCH_PATH "/data/local/tmp/" CACHE STRING "customized library search path for QNN backend")
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
|
|
|
|||
Loading…
Reference in New Issue