NVIDIA / NVIDIA/cuda-python

[FEA]: `cuda-core-example hello_world` (or similar)

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

Nobody has claimed this yet.

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

Description

Area

cuda.core

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

Include (some) examples in the released cuda-core wheels and make them easily runnable.

Useful also for quick smoke checks after making new releases.

Describe the solution you'd like

There are two very common, low-friction patterns for shipping runnable examples in wheels:

  • a tiny "runner" module so users can do python -m cuda.core.run_example hello_world, and

  • a console_scripts entry point so they can also do cuda-core-example hello_world.

It seems easy to support both. Here are concrete suggestions that may be useful as a starting point:

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 locating the cuda.core example package and the wheel and console-entry-point configuration. Check how a released wheel could expose examples through both python -m cuda.core.run_example hello_world and cuda-core-example hello_world; done means both commands run the selected example after installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.