]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
hexagon: various Op fixes (#17135)
authorMax Krasnyansky <redacted>
Tue, 11 Nov 2025 23:25:04 +0000 (15:25 -0800)
committerGitHub <redacted>
Tue, 11 Nov 2025 23:25:04 +0000 (15:25 -0800)
commitc273d7537503e47f7be8c293b767ebad1adbc5d0
treece00fe7140ee3c28de2921a35ae65f2f283cb2c9
parent7d019cff744b73084b15ca81ba9916f3efab1223
hexagon:  various Op fixes (#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>
ggml/src/ggml-hexagon/ggml-hexagon.cpp
ggml/src/ggml-hexagon/htp/binary-ops.c
ggml/src/ggml-hexagon/htp/htp-msg.h
ggml/src/ggml-hexagon/htp/htp-ops.h
ggml/src/ggml-hexagon/htp/ops-utils.h