Skip to content

README: document XCL_COHERENT_MB - #3285

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/coherent-mb-readme-21
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/coherent-mb-readme-21

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

What is in it

  • One README bullet documenting XCL_COHERENT_MB, which crates/xcl/src/gpu/uma.rs (coherent_hint_for) already parses: a MiB value clamped between GRAIN (64 KiB) and max_coherent_bytes(windows); unset or unparsable, the window is sized from the title's stored need. The README had no mention of it. Docs only; no code change.

Tested

  • Docs-only change, verified by reading coherent_hint_for and the GRAIN constant in crates/xcl/src/gpu/uma.rs at fa20459 and confirming the README had no XCL_COHERENT_MB mention; code search found it only in uma.rs and two test files, and no open issue or PR documents it.
  • cargo test --workspace -- --test-threads=4: not run (docs-only change; this environment has no Windows/GPU test setup). No GPU suite counts to report.

Regression run

Not needed: docs-only change, no crates/xcl/src change.

Not tested

  • No build, GPU suite, or title run: README text only, nothing executable changed.

AI use

  • Muse Spark (Muse agent): scouted the undocumented switch, verified its parsing and clamp against the source at fa20459, and drafted this bullet and PR text.

@github-actions github-actions Bot added the area:docs-ci Documentation, scripts, workflows, repo governance label Nov 29, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review (head 347b94a, diff read, not a merge-check; draft, README only):

  • Precision: the value isn't trimmed (uma.rs ~1070 parses it as is), so " 512" counts as unparsable. With no value, the stored need is also capped by XCL_COHERENT_AUTO_CAP's automatic cap (~1076), which an explicit value bypasses. That is worth a clause, since bypassing the cap is the main reason to set it.

Fine: an explicit value in MiB is clamped between GRAIN (64 KiB) and the window cap (coherent_hint_for), and without one XCL sizes the window from the title's stored need. It's wrapped like its neighbours, and the README doesn't mention it yet.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 347b94a

Adds a README entry for XCL_COHERENT_MB under the run switches. It matches uma::coherent_hint_for on main: the value in MiB is clamped to GRAIN (64 KiB) and the window cap, and when it is unset or unparsable the size comes from the stored need (it also bypasses the automatic RAM cap).
#3095, by the same author, documents the automatic coherent-window cap and mentions XCL_COHERENT_MB in the same list. The two are complementary, not duplicates, and could be merged into one entry.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs-ci Documentation, scripts, workflows, repo governance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants