Add the portable cuda.coop foundation - #11035
Draft
tpn wants to merge 1 commit into
Draft
Conversation
Contributor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Introduce the cuda-coop package and its compiler-neutral cooperative contracts. Define groups, launch facts, argument bindings, payloads, and temporary storage without importing a compiler backend. Expose a focused walking cohort of load/store, reduce/sum, and scan so later backend layers can prove the same public semantics before the API expands. Signed-off-by: Trent Nelson <trent@trent.me>
tpn
force-pushed
the
codex/cuda-coop-01-core
branch
from
August 27, 2026 17:48
5deefd6 to
3c73733
Compare
Collaborator
|
16,000 lines is still too large for anyone to meaningfully review. We're going to need to break this smaller. I recommend focusing the first PR on enabling a single algorithm. |
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.
Why this is needed
This is the first layer of a stacked
cuda.coopseries. It gives compilerintegrations one backend-neutral contract for CUDA thread groups, fixed-size
per-thread values, temporary storage, and the initial load/store, reduce, and
scan operations.
Keeping these contracts in the root package lets later CUTLASS and
Numba-CUDA-MLIR PRs implement the same calls without coupling the public API
to either compiler.
What this PR includes
cuda-cooppackage foundation and backend-independent importsThreadData, andTempStorageCUTLASS activation starts in the next PR. Numba-CUDA-MLIR and the remaining
primitive families follow in later stack layers.
Stack
mainEach PR targets the branch immediately below it; all seven are drafts.
Local validation
tests were deselected
compileallpassedgit diff --checkpassedlayer; all accepted fixes are folded into the commit
Wheel builds, installed-wheel qualification, GitHub CI, and backend
compilation are deferred to their owning stack layers. Automated AI review of
layers 2-7 is deferred for now.