Skip to content

[BUG]: Legacy/per-thread default streams should be singletons #1494

Closed

Description

@leofang

Is this a duplicate?

Type of Bug

Runtime Error

Component

cuda.core

Describe the bug

When #1483 started I missed that we wanted to expose them as singletons:

# standard python objects, public
LEGACY_DEFAULT_STREAM = C_LEGACY_DEFAULT_STREAM
PER_THREAD_DEFAULT_STREAM = C_PER_THREAD_DEFAULT_STREAM

whereas the public methods exposed by #1483 would always return new Python instances. We should fix it before v0.6.0 code freeze.

How to Reproduce

n/a

Expected behavior

n/a

Operating System

No response

nvidia-smi output

No response

Activity

  1. added this to the cuda.core beta 12 milestone on Jan 14, 2026
  2. self-assigned this
    on Jan 14, 2026
  3. added
    bugSomething isn't working
    P0High priority - Must do!
    cuda.coreEverything related to the cuda.core module
    on Jan 14, 2026
  4. added a commit that references this issue on Jan 15, 2026
    98bf0d4
  5. Monishver11 commented on Jan 15, 2026

    @Monishver11
    Contributor

    Hello @leofang, I've fixed this bug. Could you please review PR #1496? Thanks.

  6. removed their assignment
    on Jan 17, 2026
  7. added a commit that references this issue on Feb 18, 2026
    73725e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!bugSomething isn't workingcuda.coreEverything related to the cuda.core module

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions