Skip to content

Investigate Write-After-Write memory barrier - #16

Draft
rillomas wants to merge 22 commits into
masterfrom
investigate-uma-memory-barrier
Draft

rillomas wants to merge 22 commits into
masterfrom
investigate-uma-memory-barrier

Conversation

@rillomas

@rillomas rillomas commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Overview

Dump memory related markers using renderdoc

Without barrier

$ env GGML_VK_DEBUG_MARKERS=1  GGML_VK_DISABLE_HOST_BARRIER=1 ~/.bin/renderdoc_1.46/bin/renderdoccmd capture   --wait-for-exit   --working-dir .  build-release/bin/test-llama-context   -m build-release/tests/test-models/lfm2moe-moe.gguf   --test '^shared$'   --renderdoc renderdoc-output
$ ~/.bin/renderdoc_1.46/bin/renderdoccmd convert   --filename renderdoc-output/test-llama-context-shared_capture.rdc  --output shared_with_barrier_and_markers.xml   --convert-format xml

With barrier

$  env GGML_VK_DEBUG_MARKERS=1  ~/.bin/renderdoc_1.46/bin/renderdoccmd capture   --wait-for-exit   --working-dir .  build-release/bin/test-llama-context   -m build-release/tests/test-models/lfm2moe-moe.gguf   --test '^shared$'   --renderdoc renderdoc-output
$ ~/.bin/renderdoc_1.46/bin/renderdoccmd convert   --filename renderdoc-output/test-llama-context-shared_capture.rdc  --output shared_with_barrier_and_markers.xml   --convert-format xml

Additional information

Requirements

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 19, 2026
@rillomas

rillomas commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner Author

d87b9bc reproduces with standard build, but does not reproduce when we enabled sync validation

Standard build

$ ./debug-flaky-test.sh
test-llama-context X=baseline -> 0/100
test-llama-context GGML_VK_DISABLE_HOST_BARRIER=1 -> 73/100

With GGML_VULKAN_VALIDATE_SYNC=1

$ ./debug-flaky-test.sh
test-llama-context X=baseline -> 0/100
test-llama-context GGML_VK_DISABLE_HOST_BARRIER=1 -> 0/100

@rillomas rillomas changed the title Investigate uma memory barrier Investigate Write-After-Write memory barrier Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples ggml testing vendor Vulkan

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant