Deprecate `Device.set_current()`?
@lijinf2 y travaille déjà.
Depuis le 29/5/2026.
- Langage dominant
- Cython
- Étoiles
- 3.4k
- Forks
- 329
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 116
Description
I forgot to open an issue to track an offline discussion I had with @pciolkosz...
Currently, cuda.core diverges with cudax in a few places, and this is one of them. cuda.core focuses on enabling integration with existing Python projects, and having the cudart-like .set_current() method fills in the gap. However, the two projects also share many design principles, one of which is to favor explicitness, and therefore ideally we do not want any implicit/global states.
This issue tracks if there is any design opportunity to move away from the global device state, without breaking existing libraries. If such design exists, we should raise a deprecation warning asap while working toward the new design.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.