Skip to content

Examples: Turn cuda_bindings examples into proper examples #1838

Closed

Description

@mdboom

Is this a duplicate?

Area

cuda.bindings

Is your feature request related to a problem? Please describe.

Many of the cuda-bindings examples are not proper examples, they are unit tests of unusual construction.

A good example should be able to be downloaded, and having installed all dependencies should run and do something interesting. Many of the cuda-bindings examples don't do that.

  1. They depend on pytest and do things like pytest.skip.
  2. They depend on a locally-installed helper library (common). Ideally, these would be added to cuda-bindings and installed as a submodule. Even barring that, at minimum, the examples should update their import path so these helpers are importable. As it stands now, the examples are dependent on the cwd when it is run.

Describe the solution you'd like

Examples shouldn't have any dependencies that aren't necessary to demonstrate their purpose (e.g. pytest).

Examples shouldn't require the cwd to be something specific.

The common library should either be moved to a submodule of cuda-bindings or the examples should add a relative path to sys.path so it is always importable.

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added this to the cuda.core v1.0.0 milestone on Mar 31, 2026
  2. changed the title [-][FEA]: Turn cuda_bindings examples into proper examples[/-] [+]Examples: Turn cuda_bindings examples into proper examples[/+] on Mar 31, 2026
  3. added
    documentationImprovements or additions to documentation
    cuda.bindingsEverything related to the cuda.bindings module
    on Mar 31, 2026
  4. self-assigned this
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cuda.bindingsEverything related to the cuda.bindings moduledocumentationImprovements or additions to documentationtriageNeeds the team's attention

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions