René's URL Explorer Experiment


Title: RFC: Enable per-thread default stream in free-threading builds · Issue #133 · NVIDIA/cuda-python · GitHub

Open Graph Title: RFC: Enable per-thread default stream in free-threading builds · Issue #133 · NVIDIA/cuda-python

X Title: RFC: Enable per-thread default stream in free-threading builds · Issue #133 · NVIDIA/cuda-python

Description: tl;dr: For the Python 3.13 free-threading build (cp313t), the per-thread default stream is enabled and used by default. Users need to set CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM=0 to explicitly opt out and restore the old behavior. In...

Open Graph Description: tl;dr: For the Python 3.13 free-threading build (cp313t), the per-thread default stream is enabled and used by default. Users need to set CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM=0 to explicitly ...

X Description: tl;dr: For the Python 3.13 free-threading build (cp313t), the per-thread default stream is enabled and used by default. Users need to set CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM=0 to explicitly ...

Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/133

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RFC: Enable per-thread default stream in free-threading builds","articleBody":"tl;dr: For the Python 3.13 free-threading build (`cp313t`), the per-thread default stream is enabled and used by default. Users need to set `CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM=0` to explicitly opt out and restore the old behavior.\n\nIn CUDA, there are two kinds of default streams:\n- Legacy default stream (synchronizing all blocking streams)\n   - Unless some action is done as per the CUDA Programming Guide, this is the default. Most of the time the null/0 stream is a synonym of the legacy default stream\n- Per-thread default stream (only synchronizing with the legacy default stream)\n\nToday, CUDA Python offers a way to switch between the legacy and per-thread default streams (at the time of loading driver symbols) via the environment variable `CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM`, and the default has been as if it is set to 0 (so using the legacy default stream). \n\nHowever, it is a very common pitfall for performance-seeking applications and users who find themselves needing to create nonblocking streams explicitly to avoid implicit synchronization. This change would lift the need of creating nonblocking streams. This change would also allow GPU workloads launched from different host threads -- without an explicit stream in use -- to have an opportunity of overlapping and executing in parallel, instead of being serialized on the same (legacy default) stream.\n\nThe free threading build offers a natural opportunity and perfect timing for us to change the default to as if the env var is set to 1 and using the per-thread default stream. This also gives NVIDIA a path forward to assess the feasibility of deprecating (and eventually removing!) the legacy default stream, which has been a long-time quest we seek to conquer.\n\nUsers who use the regular build will not be affected, only those testing the experimental `cp313t` free-threading build will.","author":{"url":"https://github.com/leofang","@type":"Person","name":"leofang"},"datePublished":"2024-09-26T14:11:45Z","url":"https://github.com/NVIDIA/cuda-python/issues/133"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6de21cc5-35a0-7bfc-2aca-4468dfe46ff7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD12:360310:1B2E56:25D451:6AF83AA5
html-safe-nonce454f6eb839e85999bdc9afb50514ba11e0f10b5ce58177dafe2abbafa7146149
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDEyOjM2MDMxMDoxQjJFNTY6MjVENDUxOjZBRjgzQUE1IiwidmlzaXRvcl9pZCI6IjU4MjMxMDM5NDQzMTMyODkzODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7f25bb6d5c747b2a89de82918359e9077db70e462bfa59cace28478c16ef7ba0
hovercard-subject-tagissue:2550720193
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NVIDIA/cuda-python/133/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6ae30f75aece437df385446a63f740d5a8b2ab1daef02d062f9f3128c9034883/NVIDIA/cuda-python/issues/133
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6ae30f75aece437df385446a63f740d5a8b2ab1daef02d062f9f3128c9034883/NVIDIA/cuda-python/issues/133
og:image:alttl;dr: For the Python 3.13 free-threading build (cp313t), the per-thread default stream is enabled and used by default. Users need to set CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM=0 to explicitly ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleofang
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
go-importgithub.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git
octolytics-dimension-user_id1728152
octolytics-dimension-user_loginNVIDIA
octolytics-dimension-repository_id381173759
octolytics-dimension-repository_nwoNVIDIA/cuda-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id381173759
octolytics-dimension-repository_network_root_nwoNVIDIA/cuda-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NVIDIA/cuda-python/issues/133#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F133
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F133
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NVIDIA%2Fcuda-python
Reloadhttps://github.com/NVIDIA/cuda-python/issues/133
Reloadhttps://github.com/NVIDIA/cuda-python/issues/133
Reloadhttps://github.com/NVIDIA/cuda-python/issues/133
NVIDIAhttps://github.com/NVIDIA
cuda-pythonhttps://github.com/NVIDIA/cuda-python
Codehttps://github.com/NVIDIA/cuda-python
Issues219 (219)https://github.com/NVIDIA/cuda-python/issues
Pull requests92 (92)https://github.com/NVIDIA/cuda-python/pulls
Discussionshttps://github.com/NVIDIA/cuda-python/discussions
Actionshttps://github.com/NVIDIA/cuda-python/actions
Projectshttps://github.com/NVIDIA/cuda-python/projects
Wikihttps://github.com/NVIDIA/cuda-python/wiki
Security and qualityhttps://github.com/NVIDIA/cuda-python/security
Insightshttps://github.com/NVIDIA/cuda-python/pulse
https://github.com/NVIDIA/cuda-python
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/133
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/133
Enhancementhttps://github.com/NVIDIA/cuda-python/issues?q=type:"Enhancement"
RFC: Enable per-thread default stream in free-threading buildshttps://github.com/NVIDIA/cuda-python/issues/133#top
https://github.com/seberg
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
RFCPlans and announcementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22RFC%22
cuda.bindingsEverything related to the cuda.bindings modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.bindings%22
featureNew feature or requesthttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22feature%22
cuda.core 1.3.0https://github.com/NVIDIA/cuda-python/milestone/52
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#issue-2550720193
Nexthttps://github.com/NVIDIA/cuda-python/issues/133?timeline_page=1
github-actionshttps://github.com/apps/github-actions
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-14417335874
leofanghttps://github.com/leofang
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
RFCPlans and announcementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22RFC%22
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-14417382462
leofanghttps://github.com/leofang
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-14417389697
leofanghttps://github.com/leofang
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-14417459023
leofanghttps://github.com/leofang
P1Medium priority - Should dohttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P1%22
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-14417557155
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-2377344902
https://numba.readthedocs.io/en/stable/reference/envvars.html#envvar-NUMBA_CUDA_PER_THREAD_DEFAULT_STREAMhttps://numba.readthedocs.io/en/stable/reference/envvars.html#envvar-NUMBA_CUDA_PER_THREAD_DEFAULT_STREAM
https://numba.readthedocs.io/en/stable/cuda-reference/host.html#numba.cuda.per_thread_default_streamhttps://numba.readthedocs.io/en/stable/cuda-reference/host.html#numba.cuda.per_thread_default_stream
https://numba.readthedocs.io/en/stable/cuda-reference/host.html#numba.cuda.legacy_default_streamhttps://numba.readthedocs.io/en/stable/cuda-reference/host.html#numba.cuda.legacy_default_stream
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 26, 2024https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-2377461941
@kmaehashihttps://github.com/kmaehashi
leofanghttps://github.com/leofang
on Dec 9, 2024https://github.com/NVIDIA/cuda-python/issues/133#event-15577312636
https://github.com/bdice
bdicehttps://github.com/bdice
on Dec 13, 2024https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-2540452437
https://github.com/bdice
bdicehttps://github.com/bdice
on Dec 20, 2024https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-2557764608
@vyasrhttps://github.com/vyasr
NVIDIA/cudf#11281https://github.com/NVIDIA/cudf/pull/11281
https://github.com/vyasr
vyasrhttps://github.com/vyasr
on Dec 20, 2024https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-2557774700
here's my proposal for cudfhttps://github.com/rapidsai/cudf/issues/17626
leofanghttps://github.com/leofang
on Jan 3, 2025https://github.com/NVIDIA/cuda-python/issues/133#event-15811579396
Support Python 3.13 #131https://github.com/NVIDIA/cuda-python/issues/131
leofanghttps://github.com/leofang
cuda.bindingsEverything related to the cuda.bindings modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.bindings%22
featureNew feature or requesthttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22feature%22
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Oct 2, 2025https://github.com/NVIDIA/cuda-python/issues/133#event-20069345960
https://github.com/cpcloud
cpcloudhttps://github.com/cpcloud
on Oct 3, 2025https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-3366893934
https://github.com/kkraus14
kkraus14https://github.com/kkraus14
on Oct 3, 2025https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-3367259283
@cpcloudhttps://github.com/cpcloud
leofanghttps://github.com/leofang
cuda-python 13.0.2 & 12.9.3https://github.com/NVIDIA/cuda-python/milestone/14
cuda-python parking lothttps://github.com/NVIDIA/cuda-python/milestone/22
on Oct 3, 2025https://github.com/NVIDIA/cuda-python/issues/133#event-20091290355
rparolinhttps://github.com/rparolin
cuda.bindings backloghttps://github.com/NVIDIA/cuda-python/milestone/22
on Apr 2, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-24162188107
leofanghttps://github.com/leofang
cpcloudhttps://github.com/cpcloud
on May 19, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-25732167095
rparolinhttps://github.com/rparolin
seberghttps://github.com/seberg
on Aug 20, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-29765243240
rparolinhttps://github.com/rparolin
Enhancementhttps://github.com/NVIDIA/cuda-python/issues?q=type:"Enhancement"
on Aug 20, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-29765248790
rparolinhttps://github.com/rparolin
cuda.core 1.3.0https://github.com/NVIDIA/cuda-python/milestone/52
on Aug 20, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-29765267599
https://github.com/seberg
seberghttps://github.com/seberg
on Oct 8, 2026https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-6055785312
https://github.com/leofang
leofanghttps://github.com/leofang
on Oct 8, 2026https://github.com/NVIDIA/cuda-python/issues/133#issuecomment-6069521831
@kkraus14https://github.com/kkraus14
@seberghttps://github.com/seberg
seberghttps://github.com/seberg
not plannedhttps://github.com/NVIDIA/cuda-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 9, 2026https://github.com/NVIDIA/cuda-python/issues/133#event-32851252262
Sign up for freehttps://github.com/signup?return_to=https://github.com/NVIDIA/cuda-python/issues/133
Sign in to commenthttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/133
seberghttps://github.com/seberg
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
RFCPlans and announcementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22RFC%22
cuda.bindingsEverything related to the cuda.bindings modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.bindings%22
featureNew feature or requesthttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22feature%22
Enhancementhttps://github.com/NVIDIA/cuda-python/issues?q=type:"Enhancement"
cuda.core 1.3.0https://github.com/NVIDIA/cuda-python/milestone/52
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.