Skip to content

Improve cuda_bindings examples#1842

Merged
mdboom merged 3 commits intoNVIDIA:mainfrom
mdboom:cuda-bindings-examples
Apr 1, 2026
Merged

Improve cuda_bindings examples#1842
mdboom merged 3 commits intoNVIDIA:mainfrom
mdboom:cuda-bindings-examples

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented Mar 31, 2026

This fixes a number of issues with the cuda_bindings examples that were hard to separate out.

  • Examples: Standardize example testing #1797: The cuda_bindings examples are now run as part of the test suite, rather than a separate step in CI. This should make local testing of the examples easier (and is also in-line with what cuda.core currently does).
  • Examples: Turn cuda_bindings examples into proper examples #1838: Makes it possible to run the examples as standalone scripts, both because they have PEP723 metadata and by moving the example helper tools into cuda_bindings itself. This does (unfortunately) mean that the examples require a /very/ recent version of cuda_bindings, but this is still probably preferable to a pile of code you have to copy manually to your local disk.
  • Examples no longer require pytest and call pytest.skip. This is now handled with a special exit code when being run from the test suite, so that the examples can run standalone without needing to install pytest in the local environment.

@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot bot commented Mar 31, 2026

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.

@mdboom
Copy link
Copy Markdown
Contributor Author

mdboom commented Mar 31, 2026

/ok to test

@github-actions
Copy link
Copy Markdown

@mdboom
Copy link
Copy Markdown
Contributor Author

mdboom commented Mar 31, 2026

/ok to test

@mdboom mdboom self-assigned this Mar 31, 2026
@mdboom mdboom marked this pull request as ready for review March 31, 2026 16:53
@mdboom mdboom requested a review from cpcloud March 31, 2026 16:53
@mdboom mdboom added cuda.bindings Everything related to the cuda.bindings module documentation Improvements or additions to documentation test Improvements or additions to tests labels Mar 31, 2026
@mdboom mdboom added this to the cuda.core v1.0.0 milestone Mar 31, 2026
Copy link
Copy Markdown
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mdboom mdboom merged commit 682182b into NVIDIA:main Apr 1, 2026
87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module documentation Improvements or additions to documentation test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants