You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[no-ci] Correct stale bindings and core contributor guidance - #3194
While researching the shared agent-skills proposal in #3192, we found stale contributor guidance in the bindings and core documentation. Correct it immediately so contributors and agents can follow the current paths, commands, and runtime contracts while the broader skills proposal is discussed.
Correct the bindings legacy-test, Cython-test, and sample paths; use the existing Pixi sample task and link to the maintained Python/C++ benchmark instructions.
Distinguish Python host callbacks and GIL-taking owner cleanup from CUDA user-object destructor callbacks, which enqueue deferred cleanup without acquiring the GIL. Align the core agent guidance and runtime design document.
Correct typing.TYPE_CHECK to typing.TYPE_CHECKING.
Related to #3192; the shared skills infrastructure remains tracked there. This PR changes documentation only.
Validation
pre-commit run --files cuda_bindings_13/AGENTS.md cuda_bindings_13/README.md cuda_core/AGENTS.md cuda_core/cuda/core/_cpp/rt/DESIGN.md: passed, including link checks.
git diff --check: passed.
Verified the guidance against the current test directories, Pixi tasks, host callback trampoline, and deferred-cleanup implementation. No runtime tests or benchmarks were needed for these documentation-only changes.
Review And CI
Ready for human review. Kept in draft to retain manual control over triggering full CI.
Checklist
Validation appropriate to these documentation-only changes is complete.
The documentation is up to date with these changes.
rwgk
changed the title
[doc-only] Correct stale bindings and core contributor guidance
[no-ci] Correct stale bindings and core contributor guidance
Oct 22, 2026
Reviewing files that changed from the base of the PR and between afa6249 and ba1451c.
📒 Files selected for processing: 4
cuda_bindings_13/AGENTS.md
cuda_bindings_13/README.md
cuda_core/AGENTS.md
cuda_core/cuda/core/_cpp/rt/DESIGN.md
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
📝 Summary
Summary by CodeRabbit
Documentation
Updated testing guidance to point to the current sample coverage and Cython test locations, with instructions for running sample tests.
Revised sample and benchmark documentation with links to examples, benchmark environments, commands, and result comparisons.
Clarified guidance on CUDA callback behavior, including restrictions on driver calls, GIL acquisition, and Python-object access in user-object destructor callbacks.
The pull request updates bindings test, sample, and benchmark documentation. It also clarifies core guidance on GIL use and deferred cleanup for CUDA user-object destructor callbacks, and corrects a type-checking import reference.
Changes: Bindings test and benchmark guidance
Layer / File(s)
Summary
Test and sample instructions cuda_bindings_13/AGENTS.md, cuda_bindings_13/README.md
The guidance points to updated Cython and legacy-test paths, sample documentation, and the pixi run test-samples command.
The benchmark guidance links to Python and C++ benchmark resources and Pixi task instructions.
Core callback and GIL guidance
Layer / File(s)
Summary
Callback and type-checking guidance cuda_core/AGENTS.md, cuda_core/cuda/core/_cpp/rt/DESIGN.md
The documentation identifies paths that may acquire the GIL and states that CUDA user-object destructor callbacks defer cleanup without acquiring the GIL, accessing Python objects, or calling the driver. It also corrects typing.TYPE_CHECKING.
Possibly related issues
NVIDIA/cuda-python#3192: Both changes update bindings and core agent guidance. This pull request does not add the shared skills layout.
Suggested reviewers:mdboom
Priority: ⬇️ Low
Change: Other
Merge Risk:⚪ Minimal · up to ba145
The documentation updates are mergeable with no identified implementation risk.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
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
cuda.bindingsEverything related to the cuda.bindings modulecuda.coreEverything related to the cuda.core moduledocumentationImprovements or additions to documentation
2 participants
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.
Description
While researching the shared agent-skills proposal in #3192, we found stale contributor guidance in the bindings and core documentation. Correct it immediately so contributors and agents can follow the current paths, commands, and runtime contracts while the broader skills proposal is discussed.
typing.TYPE_CHECKtotyping.TYPE_CHECKING.Related to #3192; the shared skills infrastructure remains tracked there. This PR changes documentation only.
Validation
pre-commit run --files cuda_bindings_13/AGENTS.md cuda_bindings_13/README.md cuda_core/AGENTS.md cuda_core/cuda/core/_cpp/rt/DESIGN.md: passed, including link checks.git diff --check: passed.Review And CI
Ready for human review. Kept in draft to retain manual control over triggering full CI.
Checklist