Skip to content

README: document the automatic coherent-window cap (XCL_COHERENT_AUTO_CAP) - #3095

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

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

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

What is in it

  • Adds a Switches bullet for the automatic coherent-window cap added in UMA: cap the coherent window at RAM/8 below 24 GB of RAM #3068, which the README does not mention. Verified against main e429936: crates/xcl/src/gpu/uma.rs caps the coherent window on machines with less than 24 GiB of RAM at an eighth of the RAM (at least 1 GiB); XCL_COHERENT_MB still sets the size, and XCL_COHERENT_AUTO_CAP=0 turns the automatic cap off. A search for XCL_COHERENT_AUTO_CAP found no open PR or issue documenting it.

Tested

  • Source verification only, on Linux: read crates/xcl/src/gpu/uma.rs at e429936 and confirmed the bullet matches auto_coherent_cap and coherent_hint_for.
  • No build or test run: this environment is Linux and the crate targets Windows/MSVC, so nothing was compiled locally.

Regression run

  • Not applicable: README.md only, no runtime change.

Not tested

  • No Windows build, no cargo test, no GPU run, no smoke run.

AI use

  • AI-assisted: Muse Spark via Muse, directed by romeawayfromhome-rgb; scouted and source-verified the change, did not compile or run it.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head c939d6b

No open or merged PR documents XCL_COHERENT_AUTO_CAP. main's README does not mention it. The text matches gpu/uma.rs::auto_coherent_cap on main: below 24 GiB of RAM, an eighth of it with a 1 GiB minimum, XCL_COHERENT_MB taking precedence, and =0 turning it off. The PR conflicts with main's README and needs a rebase.
No problems found in the diff.
Recommendation: keep open.

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

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review (head c939d6b, diff read, not a merge-check; draft, README only, conflicts with main):

Fine: the text matches auto_coherent_cap (uma.rs ~1052-1058). Below 24 GiB of RAM (AUTO_CAP_BELOW_RAM) the window is capped at an eighth of the RAM, at least 1 GiB. An explicit XCL_COHERENT_MB bypasses the cap (coherent_hint_for returns before it), and a trimmed XCL_COHERENT_AUTO_CAP=0 turns it off. The README doesn't mention the cap yet. It only needs a rebase. #3285 (yours) documents XCL_COHERENT_MB in the same area; one PR for both would avoid a conflict between them.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants