b12928
The use of __restrict__ in CUDA vectorized flash attention helpers causes incorrect memory access ordering when using PDL (Pipeline Dependency Logic), leading to data races and performance issues such as reduced draft acceptance in Gemma-4 MTP with F8_E4M3 KV cache. The fix involves replacing __restrict__ with GGML_CUDA_RESTRICT to ensure proper dependency synchronization, resolving the issue without requiring disabling PDL.