NVIDIA / NVIDIA/cuda-python

[FEA]: Avoid importing pytest in all cuda_bindings/examples

Open
#1,530 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cuda.bindings example P2
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

Is this a duplicate?
Area

cuda.bindings

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

xref: https://github.com/NVIDIA/cuda-python/pull/1517#discussion_r2722857419

Describe the solution you'd like

All examples should be runnable standalone. If an end user runs the example, and the headers are not found, then they'd hit this pytest import which may or may not fail right away, and even if it succeeds the next error message (coming from skip) would be confusing (they'd see "Skipped").

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the files under cuda_bindings/examples and the linked pull request discussion. Run the examples in an environment where the headers are unavailable, then verify that each example remains standalone and reports the missing-header condition clearly instead of relying on a pytest skip.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.