You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEA]: Add public class methods for retrieving the legacy default stream as well as the per-thread default stream #1445
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.
Activity
Monishver11 commentedon Jan 11, 2026
Hello @XSShawnZeng @kkraus14, may I work on this? If so, could you please assign it to me?
leofang commentedon Jan 14, 2026
Feel free to send a PR! We don't use the assignment system for people outside of the team.
Monishver11 commentedon Jan 14, 2026
Thanks for the reply, @leofang. I'll raise the PR shortly.
feat: Make legacy_default and per_thread_default public - Fixes NVIDI…
feat: Make legacy_default and per_thread_default public - Fixes NVIDI…
Monishver11 commentedon Jan 14, 2026
Hello @leofang, I've made the changes and raised the PR. Could you review it and let me know if any modifications are needed? - Feature/public default stream methods #1483, Thanks.
Feature/public default stream methods (#1483)
Revert "feat: Make legacy_default and per_thread_default public - Fixes
Fix/default stream singletons (#1496)