]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
hexagon: make vmem and buffer-size configurable (#22487)
authorMax Krasnyansky <redacted>
Wed, 29 Apr 2026 18:51:21 +0000 (11:51 -0700)
committerGitHub <redacted>
Wed, 29 Apr 2026 18:51:21 +0000 (11:51 -0700)
commit41a63be28eb9b8fda13452101993412d241f16de
treef9f592697ef99d26852edf1dbc6793a4fc52d7dd
parent098705a29e83d2352e9ff1a266afd8eccd6ebad2
hexagon: make vmem and buffer-size configurable (#22487)

* hexagon: allow host to set max vmem size

We use a sane default but it's helpful to allow for an override if needed.

* hexagon: add support for measuring vmem space and move pinned mmaping management to host

* hexagon: update vmem checks to use uint64

* hexagon: bump op buffers to 16 (matches max mmaps)

* hexagon: bump default vmem to 3.2GB

* hexagon: add support for autodetecting vmem space and some logging cleanup in that area

* hexagon: fix whitespace warnings

* Update scripts/snapdragon/adb/run-cli.sh

Co-authored-by: Pascal <redacted>
* hex-adb: fix run-completion script

---------

Co-authored-by: Pascal <redacted>
ggml/src/ggml-hexagon/ggml-hexagon.cpp
ggml/src/ggml-hexagon/htp/htp-ctx.h
ggml/src/ggml-hexagon/htp/htp-ops.h
ggml/src/ggml-hexagon/htp/htp_iface.idl
ggml/src/ggml-hexagon/htp/main.c
scripts/snapdragon/adb/run-cli.sh
scripts/snapdragon/adb/run-completion.sh