github ggml-org/llama.cpp b12928

latest releases: b12930, b12929
pre-releaseone hour ago
Details

CUDA: do not use restrict in FA vec helpers with PDL (#33384)

ggml_cuda_memcpy_1 and the vec FA dot product / dequantize helpers take
restrict pointers. Once inlined, nvcc emits the Q loads of
flash_attn_ext_vec as read-only (ld.global.nc) loads and hoists them
above ggml_cuda_pdl_sync() (griddepcontrol.wait). With PDL the vec
kernel calls ggml_cuda_pdl_lc() at its start, so it can then read Q
before the producing kernel has finished.

On GB10 this shows up as a Gemma-4 MTP draft acceptance drop with an
F8_E4M3 KV cache (single-token draft decode uses the F8 vec kernel),
fixed by GGML_CUDA_PDL=0 or by not launching the vec kernel with PDL.

Use GGML_CUDA_RESTRICT for these helpers, as was done for the kernel
pointers in #24030. No vec instance loads global memory before the
dependency wait any more.

Fixes #33126

Assisted-by: Claude Opus 5.5

Website:

Attestations:

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI:

Don't miss a new llama.cpp release

NewReleases is sending notifications on new releases.