Files
geramyloveless 37aa287df3 llama.cpp patch: measure where host copies leave the compute stream
The patch put host-to-device copies up to a fixed 1 MiB in the compute
stream. The crossover is where a copy's own transfer-queue submission
and the compute queue's semaphore wait cost as much as the copy they
let overlap, so ggml-vulkan now measures it once per device on first
use: that overhead with the host clock, times the host-to-device
bandwidth from GPU timestamps around a staged copy. It aborts with the
reason when a queue family has no timestamps, and
GGML_VK_COMPUTE_STREAM_COPY_MAX sets the size instead. On the R9700
here: 130 to 170 us and 1.2 GB/s, so about 150 to 200 KB.

test-backend-sched-inputs also copies a tensor computed on the CPU to
the device at 16 KiB and 4 MiB, on both sides of a 64 KiB limit (or
the measured one with --measured). One comment in ggml-vulkan-types.h
is dropped.
2026-10-04 08:14:11 -07:00
..