Skip to content

[FEA]: Add public class methods for retrieving the legacy default stream as well as the per-thread default stream #1445

@XSShawnZeng

Description

@XSShawnZeng

Is this a duplicate?

Area

cuda.core

Is your feature request related to a problem? Please describe.

Currently I am using stream = Stream.from_handle(0) for retrieving the legacy default stream in CUDA python samples.

Describe the solution you'd like

The Stream class already has _legacy_default() and _per_thread_default() class methods. It'd be better that they are made public to provide a clean, documented way to access default streams, similar to the existing Stream.from_handle() pattern.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    cuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions