]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
hexagon: various Op fixes (llama/17135)
authorMax Krasnyansky <redacted>
Tue, 11 Nov 2025 23:25:04 +0000 (15:25 -0800)
committerGeorgi Gerganov <redacted>
Mon, 17 Nov 2025 13:34:43 +0000 (15:34 +0200)
commitcf3b601cc9806ebd736228c3995300fcca3227d9
tree1752a1f6717c8e37d0b2a869ae51bebdeb2d80f7
parent4f143c27d022a6724e195cc227bc91f76ff5e2cd
hexagon: various Op fixes (llama/17135)

* hexagon: explicitly check for ops with zero nrows

llm_graph_context::build_inp_out_ids() can generate tensors with zero nrows.
Somehow other backends seems to handle this without obvious explicit checks.
In the hexagon case we need to check explicitly and skip them.

* hexagon: introduce fastdiv, fix test-backend-ops for ADD/SUB/MUL

Co-authored-by: chraac <redacted>
* hexagon: use fastdiv in ADD_ID

* hexagon: use ggml_op_is_empty and ggml_is_empty to check for NOPs

---------

Co-authored-by: chraac <redacted>
src/ggml-hexagon/ggml-hexagon.cpp
src/ggml-hexagon/htp/binary-ops.c
src/ggml-hexagon/htp/htp-msg.h
src/ggml-hexagon/htp/htp-ops.h
src/ggml-hexagon/htp/ops-utils.h