]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-hexagon: gelu optimization (#18151)
authorShouyu <redacted>
Mon, 22 Dec 2025 18:56:52 +0000 (13:56 -0500)
committerGitHub <redacted>
Mon, 22 Dec 2025 18:56:52 +0000 (10:56 -0800)
commitbf6bc3c1551491b5eb019f0fb56c743f25d3eb79
tree4a502b08ae794d99ca3d60f8254b278cd887b820
parent179fd82a722cbca2cf5fc7cb072324782e762318
ggml-hexagon:  gelu optimization (#18151)

* feat: working gelu with src0 put on vtcm

* feat: gelu ping-pong for both in and out

* fix: fixu compile error

* break: distinguish dma ddr->vtcm and vtcm->ddr operation

* fix: fix dma queue size

* break: update dma api to either pop src or dst ptr

* fix: fix activation vtcm allocation issue for src1 when swapperd

* refactor: ping-pong gelu logic to avoid unnecessary if else

* dma: improved queue interface and prefetch handling

* gelu: fix N+2 block prefetch

---------

Co-authored-by: Max Krasnyansky <redacted>
ggml/src/ggml-hexagon/ggml-hexagon.cpp
ggml/src/ggml-hexagon/htp/act-ops.c
ggml/src/ggml-hexagon/htp/htp-dma.c
ggml/src/ggml-hexagon/htp/htp-dma.h
ggml/src/ggml-hexagon/htp/hvx-utils.h
ggml/src/ggml-hexagon/htp/main.c
ggml/src/ggml-hexagon/htp/matmul-ops.c