Files
llama.cpp/ggml
Lumpiasty 99f8050c32 ggml-vulkan: chunk host-memory imports + bound-check pinned reads
The mmap region kept in system RAM for -ncmoe can be tens of GB, larger than
device->max_buffer_size (~4 GiB), so importing it as a single Vulkan buffer
failed and pinning silently no-op'd. Import in page-aligned chunks up to
max_buffer_size, registering each in device->pinned_memory. Add a bound check
in the pinned copy path so a tensor that straddles a chunk boundary falls
back to staging instead of reading out of bounds.

Assisted-by: opencode
2026-07-15 02:06:04 +02:00
..
2024-07-13 18:12:39 +02:00