Skip to content

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

@leofang

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

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