]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
hexagon: tiling, tracing and optimizations for unary ops (#25474)
authorAparna M P <redacted>
Thu, 9 Jul 2026 17:15:47 +0000 (22:45 +0530)
committerGitHub <redacted>
Thu, 9 Jul 2026 17:15:47 +0000 (10:15 -0700)
commitfb30ba9a6c5b4674174d06aed14794832ab33278
treee0226a25eee88214a259c0ff014ebaae72c1542b
parent82fce65d8be40ba55048e06f2e14a01deb363d41
hexagon: tiling, tracing and optimizations for unary ops (#25474)

* hexagon: tile wide rows in pointwise unary ops to avoid VTCM overflow

* unary: reject permuted tensors for now (not used by models)

* hex-unary: replace divs with fastdiv

* hex-unary: add vtcm layout and host computed kernel params

* hex-unary: move fastdiv init into kernel params

* hex-unary: add specialized thread functions to improve generated code

* hex-unary: tracing instrumentation for unary ops

* hex-unary: factor out hvx kernels, streamline and remove more duplication

* ggml-hexagon: fix std::min collision with Windows min macro

* hex-cmake: make lto build happy

---------

Co-authored-by: Max Krasnyansky <redacted>
ggml/src/ggml-hexagon/ggml-hexagon.cpp
ggml/src/ggml-hexagon/htp-opnode.h
ggml/src/ggml-hexagon/htp/CMakeLists.txt
ggml/src/ggml-hexagon/htp/htp-ctx.h
ggml/src/ggml-hexagon/htp/hvx-norm.h [new file with mode: 0644]
ggml/src/ggml-hexagon/htp/hvx-utils.h
ggml/src/ggml-hexagon/htp/main.c
ggml/src/ggml-hexagon/htp/unary-ops.c
ggml/src/ggml-hexagon/htp/unary-ops.h [new file with mode: 0644]