Skip to content

Allow Device.set_current() to return self? #699

Open

Description

@leofang

From @shwina:

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

Activity

  1. added this to the cuda.core parking lot milestone on Jun 9, 2025
  2. added
    enhancementAny code-related improvements
    triageNeeds the team's attention
    cuda.coreEverything related to the cuda.core module
    on Jun 9, 2025
  3. cpcloud commented on Aug 26, 2025

    @cpcloud
    Contributor

    This does have a nice visual flow.

    I think set_current probably needs to be idempotent for this to have a sane UX, since it would return something that of course has a callable set_current method.

    Happy to poke around here.

  4. added
    cuda.coreEverything related to the cuda.core module
    and removed
    cuda.coreEverything related to the cuda.core module
    on Apr 2, 2026
  5. removed this from the cuda.core backlog milestone on Apr 2, 2026
  6. added this to the cuda.core 2.0.0 milestone on Nov 11, 2026
  7. removed this from CCCLon Nov 11, 2026
  8. added
    breakingBreaking changes are introduced
    triageNeeds the team's attention
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingBreaking changes are introducedcuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementstriageNeeds the team's attention

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions