Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-hexagon/htp/CMakeLists.txt # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-hexagon / htp / CMakeLists.txt` 74 lines ยท 1799 bytes Raw Blame History 1 cmake_minimum_required(VERSION 3.22.2) 2 project(ggml-htp C CXX ASM) 3 4 include(${HEXAGON_SDK_ROOT}/build/cmake/hexagon_fun.cmake) 5 6 include_directories( 7 ${HEXAGON_SDK_ROOT}/incs 8 ${HEXAGON_SDK_ROOT}/incs/stddef 9 ${CMAKE_CURRENT_SOURCE_DIR}/../../../include 10 ${CMAKE_CURRENT_SOURCE_DIR}/../.. 11 ${CMAKE_CURRENT_SOURCE_DIR}/.. 12 ${CMAKE_CURRENT_SOURCE_DIR} 13 ${CMAKE_CURRENT_BINARY_DIR}) 14 15 set(HTP_LIB ggml-htp-${DSP_VERSION}) 16 17 add_library(${HTP_LIB} SHARED 18 main.c 19 htp_iface_skel.c 20 work-queue.c 21 dma-queue.c 22 hmx-queue.c 23 htp-dcache.c 24 matmul-ops.c 25 flash-attn-ops.c 26 gated-delta-net-ops.c 27 binary-ops.c 28 unary-ops.c 29 sum-rows-ops.c 30 softmax-ops.c 31 glu-ops.c 32 rope-ops.c 33 set-rows-ops.c 34 get-rows-ops.c 35 cpy-ops.c 36 gather-rows.c 37 repeat-ops.c 38 ssm-conv.c 39 cumsum-ops.c 40 top-k-mask-ops.c 41 fill-ops.c 42 concat-ops.c 43 diag-ops.c 44 solve-tri-ops.c 45 pad-ops.c 46 argsort-ops.c 47 im2col-ops.c 48 conv2d-ops.c 49 roll-ops.c 50 pool-ops.c 51 upscale-ops.c 52 allreduce-ops.c 53 dsv4-hc-ops.c 54 lightning-indexer-ops.c 55 ) 56 57 target_compile_definitions(${HTP_LIB} PRIVATE 58 $,HTP_DEBUG=1,NDEBUG=1> 59 $,FARF_HIGH=1,>) 60 61 build_idl(htp_iface.idl ${HTP_LIB}) 62 63 set_target_properties(${HTP_LIB} PROPERTIES EXPORT_COMPILE_COMMANDS ON) 64 65 if (NOT Python3_EXECUTABLE) 66 find_package(Python3 REQUIRED COMPONENTS Interpreter) 67 endif() 68 69 add_custom_command(TARGET ${HTP_LIB} POST_BUILD 70 COMMAND ${CMAKE_COMMAND} -E echo "Adding SWIV section $" 71 COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/htp-swiv.py -i $ -o $ 72 VERBATIM) 73 74 install(TARGETS ${HTP_LIB})