[Docs] A bilingual guide to tuning memory-bound kernels - #36
Open
lcy-seso wants to merge 2 commits into
Open
Conversation
Three pages under Performance Guides, in English and Chinese: what memory-bound means on the H200 roofline, how to choose a global memory access pattern among blocked, striped, vectorized blocked and staged, and how to size shared memory padding so a warp's accesses do not collide on a bank. Every number is measured on an H200 with the SM clock locked at 1830 MHz, an input larger than the 60 MiB L2, and enough blocks to fill the card. Each page states those conditions and the regimes where its conclusions reverse. Each figure ships one SVG per language, translated in the text nodes and the aria-label with the geometry untouched; the English viewBox grows where the longer text needs a second line. The pages were authored in Chinese, so CLAUDE.md lists them alongside backends.md and torch-compile.md as edit-Chinese-first, records that the translation fallback runs zh to en only, and adds the per-language rule for figures. The Performance Guides landing page gains a third section for tuning practice, in both languages.
Reword the three English pages so they read as English rather than as a translation of the Chinese originals: direct subject-verb-object main clauses in place of long pre-modifiers, and no literal glosses of Chinese sentence shapes. Headings and anchors, tables, code blocks, SVG blocks, links, math spans and every measured number are unchanged; the paragraph and list-item boundaries are the same, so the two languages still track each other line for line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problems
Changes
performance-guides/memory-bound/, each in English and Chinese:chunkrather than fixed in bytes, and a 20-configuration sweep.performance-guides/index.mdand.zh.md: a third section for tuning practice, with the descriptions kept in both languages.mkdocs.yml: three nav entries plusnav_translationslabels.extra.css: styles for the three figures (roofline, access pattern, bank conflict).CLAUDE.md: these pages are edit-Chinese-first; the translation fallback runs zh to en only; figures need one SVG per language.Measurement conditions
Every number is measured on an H200 with the SM clock locked at 1830 MHz, an input larger than the 60 MiB L2, and enough blocks to fill the card. Each page states those conditions and names the regimes where its conclusions reverse.
Figures
Each figure is inline SVG with one copy per language — the
<text>nodes andaria-labelare translated and the geometry is untouched. English runs longer than Chinese, so the access-pattern and bank-conflictviewBoxgrow by one line and the label column was checked against measured text widths.Verified
mkdocs buildadds no warning overmain; all six pages build under both locales.