4. Operations¶
You now have a stack on which the workflows of parts 1–3 hold: the settings have been checked, the operators are invariant, and the two sides agree. This part shows how to keep it that way when the stack changes under you, for example after a library upgrade, a driver update or a move to new GPUs.
The idea¶
A bitwise result belongs to the stack it was measured on. The same source code on another library version can pick a different kernel, and a different kernel can add the same numbers in a different order. So each time the stack changes, you re-check every verdict instead of assuming that it still holds.
a claim no longer holdsIt is a finding: report it and fix ita stock result changedUpdate the topic page and record a new baselinesame as the baselineDone
- The stack changes: a library upgrade, a driver update or new GPUs.
- Run the regression suite, which repeats every verified check.
- Compare each result with the baseline for this stack.
- If a claim no longer holds, that is a finding. Report it and fix it.
- If a result of a stock operator changed, update the topic page and record a new baseline.
- If everything matches the baseline, you are done until the next change.
The steps¶
| Step | Page | Tool |
|---|---|---|
| Re-run every verified check, and read what regressed or changed | Regression | tools/bi_suite.py |
| Find out what was measured on which stack, and what to do on new hardware | Hardware coverage | tools/bi_suite.py, tools/sdc_scan.py |
Building the site¶
The handbook is also a book-style website in English and Chinese. It is built with MkDocs Material and mkdocs-static-i18n from mkdocs.yml.
- Layout. The Markdown files remain the source and stay readable on
GitHub. The site is built from
handbook/(docs_dir).handbook/index.mdis the site's home page, and the repository'sREADME.mdremains the front page on GitHub. - Chinese. Each page
page.mdhas its translationpage.zh.mdnext to it (suffix mode), and the site serves the translation under/zh/. The term choices are in the glossary. scripts/check_i18n.py compares every pair of pages: tables and their rows, numbers, link targets, code blocks, inline code and headings. - Skills. At build time,
scripts/mkdocs_hooks.py copies
skills/**/*.mdintohandbook/skills/(which git ignores), so the skills become pages too. - Links to code. The same hook rewrites links to repository files
(
tools/,examples/,suite/,AUDIT.md). IfHANDBOOK_SOURCE_URLis set (for example tohttps://github.com/ORG/REPO/blob/main), the links point there. If it is not set, the files are copied into the site undersource/, and each directory gets a file listing.
python3 -m venv .venv-docs
.venv-docs/bin/pip install mkdocs==1.6.1 mkdocs-material==9.7.7 mkdocs-static-i18n==1.3.1 jieba
.venv-docs/bin/mkdocs build --strict # site/ ; must end with no warnings
python3 scripts/check_i18n.py # every page pair
python3 scripts/check_links.py # Markdown links in the repo and hrefs in site/
.venv-docs/bin/mkdocs serve -a 127.0.0.1:8765 # preview: / and /zh/