Skip to content

[Doc] Fix subgroup md doc check#781

Merged
hughperkins merged 5 commits into
mainfrom
hp/fix-subgroup-md-doc-check
Jul 15, 2026
Merged

[Doc] Fix subgroup md doc check#781
hughperkins merged 5 commits into
mainfrom
hp/fix-subgroup-md-doc-check

Conversation

@hughperkins

@hughperkins hughperkins commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Issue: #

Brief Summary

... and also address #746 (comment)

copilot:summary

Walkthrough

copilot:walkthrough

Address the "Check doc quality" reviewer flags on subgroup.md: define IR
at first use, and drop internal C++ symbols, the fe-ll cache key, the
segmented_reduce bitmask-path walkthrough, and the ballot_first_n LLVM
isel-bug rationale from user-facing sections, keeping the user-observable
behaviour and cost.
Give shuffle / shuffle_up / shuffle_down / broadcast / invocation_id /
sync / mem_fence proper docstrings (behaviour, dtype rules, backend
lowering, caller contract), so per-method documentation lives on the
function itself and is rendered by autoapi. Preparatory step for slimming
subgroup.md down to a high-level overview.
Move the per-method reference detail (semantics, backend lowering, caller
contracts) into the function docstrings, where it renders in the autoapi
API reference. Rewrite subgroup.md as a high-level tour: capability tables,
the tiled-variant model, subgroup-size table, examples, and performance
notes, with a pointer to the generated API reference. Drops the deep AMDGPU
wave64 cross-half ISA walkthrough from user-facing docs (it lives in the
runtime.cpp code comments).
Doc-quality review flagged PTX, RDNA/CDNA, LDS, permlane64, ds_permute, and
"trace/codegen time" as undefined terms for the end-user audience. Reword the
NaN note to use the CUDA backend name, simplify the AMDGPU shuffle
performance bullet to cycle-level guidance, and describe compile-time
failures in plain language. ds_bpermute stays (glossed at first use).
@hughperkins hughperkins marked this pull request as ready for review July 13, 2026 20:13
@hughperkins

Copy link
Copy Markdown
Collaborator Author

@codex review

@hughperkins hughperkins added awaiting-ci-to-pass awaiting-ci-to-pass awaiting-codex-review awaiting-codex-review labels Jul 13, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: c4af51666f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@github-actions

Copy link
Copy Markdown

…uage

CI doc-quality review (stricter than expected) flagged "lowering"/"lower" as
compiler jargon and rejected ds_bpermute even when glossed. Replace "lower"
with "compile to" / "support", describe AMDGPU shuffles as "a slower
cross-lane path" instead of naming ds_bpermute, drop the CUDA __shfl_*
intrinsic names, and reword "butterfly variant" to name the op directly.
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@hughperkins hughperkins added awaiting review pass New PR or review comments addressed and removed awaiting-ci-to-pass awaiting-ci-to-pass awaiting-codex-review awaiting-codex-review labels Jul 14, 2026
@duburcqa

Copy link
Copy Markdown
Contributor

ok to merge

@duburcqa duburcqa removed the awaiting review pass New PR or review comments addressed label Jul 15, 2026
@hughperkins hughperkins merged commit 6d338a6 into main Jul 15, 2026
58 checks passed
@hughperkins hughperkins deleted the hp/fix-subgroup-md-doc-check branch July 15, 2026 12:45
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