Skip to content

Deprecate Device.set_current()? #548

Open
1 of 3 issues completed
Open

Description

@leofang

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.

Activity

  1. added
    cuda.coreEverything related to the cuda.core module
    enhancementAny code-related improvements
    RFCPlans and announcements
    triageNeeds the team's attention
    on Apr 5, 2025
  2. removed this from the cuda.core backlog milestone on Apr 2, 2026
  3. added this to the cuda.bindings next milestone on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should doRFCPlans and announcementscuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvements

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions