Repository navigation
docs(examples): three READMEs state a minimum GPU below their own runtime gate - #1017
Merged
nihalpasham merged 2 commits intoAug 19, 2026
Merged
Conversation
…time gate Fourteen examples gate `main` on compute capability. Three of them also state a **Minimum GPU** in their README, and all three state one lower than the gate they ship with -- so the README says the example runs on hardware where it prints `skipping:` and returns: example README said gate in main() gate's own message future_apis Volta (sm_70) major < 9 "fence.proxy.async ... requires sm_90+" coop_groups_demo Volta (sm_70+) major < 9 "thread block clusters require sm_90+" barrier Volta (sm_70) major < 8 "mbarrier requires sm_80+" `future_apis` is the one with history: 8615368 corrected that gate to `major < 9` during the NVIDIA#666 review -- the requirement is `fence.proxy.async`, emitted by `ManagedBarrier::init_by` for every barrier kind, which ptxas rejects below sm_90, and the `TmaBarrier` typestate is inert `PhantomData` that detects nothing. The gate moved; the README did not. In all three cases the sm_70 figure is not invented -- it is the floor of *one* instruction family the example touches (mbarrier, or `match.any.sync`) rather than the floor for running the example. Each entry now states the real floor, cites the gate that enforces it, and keeps the sm_70 fact as the aside it always was, so the next reader does not have to reconcile them. Every gate here is in `main()` and returns immediately, so this is the whole example's floor, not one test's. Verified: swept all 215 example READMEs -- these three were the only ones whose stated Minimum GPU did not match a gate in their own `main`, and after this change none do. check-error-example-status and check-example-smoketest-contract pass. Signed-off-by: Vyncint Ng <[email protected]>
The three README floors from the parent commit were right, but four asides still contradicted the runtime gates: - barrier: the sm_70 mbarrier claim is libcu++'s software fallback, not the PTX instructions this example emits (those need sm_80+, matching cuda-device's barrier support notes) - barrier: drop the Pre-Volta troubleshooting row; the sm_80 gate in main skips before any kernel could hit it - coop_groups_demo: pre-Hopper devices never reach the combined cluster+cooperative message; main exits at its sm_90 skip line first - future_apis: mbarrier instructions need sm_80+, and fence.proxy.async is what sets the sm_90 floor
Collaborator
|
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.
Summary
Fourteen examples gate
mainon compute capability. Three of them also state a Minimum GPU in their README, and all three state one lower than the gate they ship with — so the README says the example runs on hardware where it printsskipping:and returns.main()future_apismajor < 9coop_groups_demomajor < 9barriermajor < 8future_apisis the one with history:8615368fcorrected that gate tomajor < 9during the #666 review — the requirement isfence.proxy.async, emitted byManagedBarrier::init_byfor every barrier kind, which ptxas rejects below sm_90, and theTmaBarriertypestate is inertPhantomDatathat detects nothing. The gate moved; the README did not.In all three cases the sm_70 figure is not invented — it is the floor of one instruction family the example touches (mbarrier, or
match.any.sync) rather than the floor for running the example. Each entry now states the real floor, cites the gate that enforces it, and keeps the sm_70 fact as the aside it always was, so the next reader does not have to reconcile them.Every gate here is in
main()and returns immediately, so this is the whole example's floor, not one test's.Testing
Local, no GPU — documentation only.
main, and after this change none docheck-error-example-statusandcheck-example-smoketest-contractpasscargo oxide run <example>— not applicable; verifying the floors themselves would need Hopper and Ampere parts, which is why this takes each example's own gate as the authority rather than re-deriving it