]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-hexagon: Initial Hexagon v68/v69 support (#17394)
authorM. Mediouni <redacted>
Mon, 24 Nov 2025 00:54:49 +0000 (01:54 +0100)
committerGitHub <redacted>
Mon, 24 Nov 2025 00:54:49 +0000 (16:54 -0800)
commitfcb013847c2c983967e9d8c9a13b16829fb799e6
treec5a91563449ca9ae022c0f2acf7261c6b7166370
parentd5bc1ad11062563faa3e57320399c0938c4803fa
ggml-hexagon: Initial Hexagon v68/v69 support  (#17394)

* ggml-hexagon: fix build error with GCC

Add stdexcept include to fix GCC build errors

Signed-off-by: Mohamed Mediouni <redacted>
* ggml-hexagon: check VTCM acquire failures

Signed-off-by: Mohamed Mediouni <redacted>
* ggml-hexagon: disable destination bypass on older than v73

v68 errors out if having bypass enabled when the VTCM is the destination.

At least on v68 this made things actually work... not a proper fix though, so to look at later...

Signed-off-by: Mohamed Mediouni <redacted>
* ggml-hexagon: add initial v68/v69 support

v68 is the Hexagon revision notably used on the Snapdragon 8cx
Gen 3 and the QCM6490.

Also add support for v69.

8MB isn't a supported page size, so relax asked for page size constraint
for HAP_compute_res_attr_set_vtcm_param_v2 to optimal.

Signed-off-by: Mohamed Mediouni <redacted>
---------

Signed-off-by: Mohamed Mediouni <redacted>
ggml/src/ggml-hexagon/CMakeLists.txt
ggml/src/ggml-hexagon/ggml-hexagon.cpp
ggml/src/ggml-hexagon/htp-utils.c
ggml/src/ggml-hexagon/htp/htp-dma.h
ggml/src/ggml-hexagon/htp/hvx-utils.h
ggml/src/ggml-hexagon/htp/main.c