Skip to content

b12928

  • b12928
  • 9e213cd
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • b12928
  • 9e213cd
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@am17an am17an tagged this 02 Dec 07:06
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
Assets 2
Loading