]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/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 19:05:46 +0000 (21:05 +0200)
commit6748d27f5514b3d2ac56440a288f66566a21fad2
tree1b72f3d954c4314589a32feca522333e535fd84a
parent559091005aceda7aec4e215e28a445cba2b01cff
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>
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