NVIDIA / NVIDIA/cuda-python

Allow `Device.set_current()` to return self?

Open
#699 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From @shwina:

mem = Device(0).set_current().allocate(1024)

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 at the Device.set_current() entry point and trace its current return behavior. Confirm that the chained expression in the issue works, and verify the change with the relevant existing tests for Device behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.