llama.cpp
hexagon: Op Fusion refactoring, optimizations and new fusions like `BINARY_NX` (back-to-back ADDs, etc)
#30843
Merged

hexagon: Op Fusion refactoring, optimizations and new fusions like `BINARY_NX` (back-to-back ADDs, etc) #30843

max-krasnyansky
github-actions github-actions added ggml
github-actions github-actions added Hexagon
max-krasnyansky max-krasnyansky force pushed 15 days ago
max-krasnyansky max-krasnyansky force pushed 14 days ago
github-actions github-actions added testing
max-krasnyansky max-krasnyansky force pushed to ea50374a 14 days ago
max-krasnyansky hex-fusion: support for GELU+MUL, REPEAT+GET_ROWS and BINARY_NX (back…
d76b2445
max-krasnyansky hex-fusion: factor out fusion logic into separate .h and .cpp and upd…
1b313736
max-krasnyansky hex-fusion: allow for RMS_NORM+MUL fusions for non-contig tensors
129ba38a
max-krasnyansky hex-fusion: streamline fusion eligibility checks and cover missing co…
9b54fd09
max-krasnyansky hex-fusion: streamline fusion flow
041ecb0a
max-krasnyansky hex-opbatch: make n_tensors limit more scalable
c8e0fcd0
max-krasnyansky hex-bufs: adjust the trace buff sizing
56055c52
max-krasnyansky hex-glu: cleanup glu-ops interfaces and add kernel_params
8d6c79bb
max-krasnyansky hex-kparams: clean up kparams handling in unary, ssm-conv, and other ops
4a719b6e
max-krasnyansky hex-kparams: update the rest of the ops PAD,DIAG,... to use kparams
d71f26cf
max-krasnyansky hex-unary: add support for collapsing dims
a5c90a80
max-krasnyansky hex-ops: cleanup redundant runtime checks
c0839381
max-krasnyansky hex-ops: consistent use of kernel_type in all kparams
f6ca0e8e
max-krasnyansky hex-fusion: remove redundant check in gdn+cpy
95e2081f
max-krasnyansky hex-fusion: further streamlining of fusion rules and code
316b708b
max-krasnyansky hex-fusion: cleanup naming
6a20c6e0
max-krasnyansky hex-opfmt: cleanup op formatting
5fe333d5
max-krasnyansky hex-fusion: bump fusion lookahead to 64
b8578e59
max-krasnyansky hex-fusion: fuse SSM_CONV+SILU
c5ae1e3c
max-krasnyansky hex-fusion: fix hvx register spills in fused ssm_conv+silu
d9458ada
max-krasnyansky hex-fusion: add more GLU fusions
0c247c5d
max-krasnyansky hex-fusion: remove duplicate checks and use ggml-common helpers
5bc4f50c
max-krasnyansky hex-kparams: refactor kparams into htp-kparams.h/cpp
8765b1ab
max-krasnyansky hex-fusion: fix binary-nx fusion regression
b69a6e54
max-krasnyansky hex-kparams: another pass at cleaning up kparams (removing unused, etc)
545e3982
max-krasnyansky max-krasnyansky force pushed from ea50374a to 545e3982 14 days ago
max-krasnyansky hex-kparams: streamling nameing and move _check_ wrappers into .h
7b21c101
max-krasnyansky hex-kparams: templetize htp_kparams_check_<op> to reduce code bloat
fc23deb0
max-krasnyansky hex-ops: de-duplicate op dispatch switches
60af418c
max-krasnyansky hex-kparams: trim down exposed kparams calls
d76387cf
max-krasnyansky hex-kparams: simplify type casting of kparams structs
28e3ab98
max-krasnyansky hex-fence: de-dup fence tensor construction
7d962db0
max-krasnyansky hex-opbatch: simplify tensor shape init/checks
be7513f0
max-krasnyansky hex-mm: cleanup leftovers of the original QK defines
f8aee440
max-krasnyansky hex-fa: fix stack overflow on older npu firmware
326800fc
max-krasnyansky hex-ctx: move dma_caches into ops_ctx
05e91b46
max-krasnyansky max-krasnyansky marked this pull request as ready for review 13 days ago
max-krasnyansky max-krasnyansky requested a review from ggerganov ggerganov 13 days ago
max-krasnyansky max-krasnyansky requested a review 13 days ago
max-krasnyansky
max-krasnyansky max-krasnyansky added merge ready
lhez
lhez approved these changes on 2026-10-22
jhen0409
jhen0409 approved these changes on 2026-10-23
max-krasnyansky max-krasnyansky merged 643b0cda into master 12 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone