Skip to content

vulkan: fix amd iGPU slow checkpoint read - #30049

Merged
0cc4m merged 1 commit into
masterfrom
0cc4m/vulkan-fix-strix-halo-checkpointing
Oct 7, 2026
Merged

0cc4m merged 1 commit into
masterfrom
0cc4m/vulkan-fix-strix-halo-checkpointing

Conversation

@0cc4m

@0cc4m 0cc4m commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Overview

I read this Phoronix benchmark and was surprised how poorly Vulkan performed here in ttft. An investigation turned up slow checkpoints as cause, memory is uncached and reads are slow. Using a GPU read instead of CPU memcpy makes it much faster, closing the gap to ROCm on Strix Halo.

Radeon 8060S, Qwen3.5-4B UD-Q4_K_XL, Lemonade benchmark prompts, prompt_ms:

Build First run (24-333 tok) Repeat runs (4 tok)
Vulkan master 600-1024 ~290
Vulkan fix 95-286 ~42
ROCm 86-331 ~40

Requirements

@0cc4m
0cc4m requested a review from a team as a code owner October 6, 2026 11:45
@github-actions github-actions Bot added Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels Oct 6, 2026

@jeffbolznv jeffbolznv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the AMD check is probably not needed, but this is fine.

@0cc4m

0cc4m commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

I did measure a small regression from it on DGX Spark, that's why I put the check.

@0cc4m
0cc4m merged commit 4d756bc into master Oct 7, 2026
25 of 27 checks passed
@0cc4m
0cc4m deleted the 0cc4m/vulkan-fix-strix-halo-checkpointing branch October 7, 2026 06:20
hiromimie added a commit to hiromimie/llama.cpp that referenced this pull request Oct 7, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
hiromimie added a commit to hiromimie/llama.cpp that referenced this pull request Oct 7, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 8, 2026
@BrewTestBot BrewTestBot mentioned this pull request Oct 15, 2026
1 task done
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 24, 2026
auRose94 pushed a commit to auRose94/llama.cpp that referenced this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning Vulkan Issues specific to the Vulkan backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants