]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml-hexagon: Initial Hexagon v68/v69 support (llama/17394)
authorM. Mediouni <redacted>
Mon, 24 Nov 2025 00:54:49 +0000 (01:54 +0100)
committerGeorgi Gerganov <redacted>
Thu, 11 Dec 2025 13:32:43 +0000 (15:32 +0200)
commitc0c88ae7fb2168406034300efa219b3ea5803628
tree2ba1b2586227ed50b6b8853112db3fd81b8f725b
parent4f5b69279aa516fd333e59d6307ff78d08b7539b
ggml-hexagon: Initial Hexagon v68/v69 support (llama/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>
src/ggml-hexagon/CMakeLists.txt
src/ggml-hexagon/ggml-hexagon.cpp
src/ggml-hexagon/htp-utils.c
src/ggml-hexagon/htp/htp-dma.h
src/ggml-hexagon/htp/hvx-utils.h
src/ggml-hexagon/htp/main.c