René's URL Explorer Experiment


Title: Make `Device.set_current()` faster by leofang · Pull Request #781 · NVIDIA/cuda-python · GitHub

Open Graph Title: Make `Device.set_current()` faster by leofang · Pull Request #781 · NVIDIA/cuda-python

X Title: Make `Device.set_current()` faster by leofang · Pull Request #781 · NVIDIA/cuda-python

Description: CUDA Python: Performance meets Productivity. Contribute to NVIDIA/cuda-python development by creating an account on GitHub.

Open Graph Description: Description closes #739 Before this PR: In [4]: %timeit dev.set_current() 1.4 μs ± 10.9 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) With this PR: In [4]: %timeit dev.set_curren...

X Description: Description closes #739 Before this PR: In [4]: %timeit dev.set_current() 1.4 μs ± 10.9 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) With this PR: In [4]: %timeit dev.set_curren...

Opengraph URL: https://github.com/NVIDIA/cuda-python/pull/781

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9e03642d-ad3a-ef42-8f36-5c22165132a8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id969C:23B7F8:35DE29:4AB352:6AF84828
html-safe-nonce8c5193c9ed1c325b7c352c87c314959493255d28525486b91606f79114390a18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjlDOjIzQjdGODozNURFMjk6NEFCMzUyOjZBRjg0ODI4IiwidmlzaXRvcl9pZCI6IjYzNDM5NTk5ODg0MTgzOTgyNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf043494e88edde7a299f6b9ec2bf1f61ad25bf3d3f90bd383cdf2f00b76020b5
hovercard-subject-tagpull_request:2693769442
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/NVIDIA/cuda-python/781/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c37a55147816054e31a30cf5e43a2bf181a58dc08617f2598396e86f3f6a3bdc/NVIDIA/cuda-python/pull/781
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c37a55147816054e31a30cf5e43a2bf181a58dc08617f2598396e86f3f6a3bdc/NVIDIA/cuda-python/pull/781
og:image:altDescription closes #739 Before this PR: In [4]: %timeit dev.set_current() 1.4 μs ± 10.9 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) With this PR: In [4]: %timeit dev.set_curren...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleofang
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/NVIDIA/cuda-python/pull/781#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fpull%2F781
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%2Fpull%2F781
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=NVIDIA%2Fcuda-python
Reloadhttps://github.com/NVIDIA/cuda-python/pull/781
Reloadhttps://github.com/NVIDIA/cuda-python/pull/781
Reloadhttps://github.com/NVIDIA/cuda-python/pull/781
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
leofanghttps://github.com/leofang
NVIDIA:mainhttps://github.com/NVIDIA/cuda-python/tree/main
leofang:faster_set_currenthttps://github.com/leofang/cuda-python/tree/faster_set_current
Conversationhttps://github.com/NVIDIA/cuda-python/pull/781
Commits5 (5)https://github.com/NVIDIA/cuda-python/pull/781/commits
Checkshttps://github.com/NVIDIA/cuda-python/pull/781/checks
Files changedhttps://github.com/NVIDIA/cuda-python/pull/781/files
Make Device.set_current() fasterhttps://github.com/NVIDIA/cuda-python/pull/781#top
leofanghttps://github.com/leofang
NVIDIA:mainhttps://github.com/NVIDIA/cuda-python/tree/main
leofang:faster_set_currenthttps://github.com/leofang/cuda-python/tree/faster_set_current
https://github.com/leofang
leofanghttps://github.com/leofang
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#issue-3261872226
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
#739https://github.com/NVIDIA/cuda-python/issues/739
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
leofanghttps://github.com/leofang
July 23, 2025 17:54https://github.com/NVIDIA/cuda-python/pull/781#commits-pushed-4840061
https://github.com/leofang
cache primary contexthttps://github.com/NVIDIA/cuda-python/pull/781/commits/48400613bcd7c55593fd795af60e4a1c1803bd75
4840061https://github.com/NVIDIA/cuda-python/pull/781/commits/48400613bcd7c55593fd795af60e4a1c1803bd75
https://github.com/leofang
avoid increasing stack sizehttps://github.com/NVIDIA/cuda-python/pull/781/commits/c4afd331b16af9766b08f2593b613827e10ac288
c4afd33https://github.com/NVIDIA/cuda-python/pull/781/commits/c4afd331b16af9766b08f2593b613827e10ac288
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
CCCLhttps://github.com/orgs/NVIDIA/projects/6
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-18807053358
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
CCCLhttps://github.com/orgs/NVIDIA/projects/6
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-18807053299
https://github.com/apps/copy-pr-bot
copy-pr-bothttps://github.com/apps/copy-pr-bot
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#issuecomment-3116268960
herehttps://docs.gha-runners.nvidia.com/cpr/vetters
herehttps://docs.gha-runners.nvidia.com/cpr/contributors
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/leofang
leofanghttps://github.com/leofang
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-18807065128
https://github.com/leofang
unconditionally set primary context to currenthttps://github.com/NVIDIA/cuda-python/pull/781/commits/562340c7747952bacbb21f699371586decd19742
562340chttps://github.com/NVIDIA/cuda-python/pull/781/commits/562340c7747952bacbb21f699371586decd19742
https://github.com/leofang
leofanghttps://github.com/leofang
enhancement https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3Aenhancement
P0 https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3AP0
cuda.core https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3Acuda.core
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-18807231111
https://github.com/leofang
leofanghttps://github.com/leofang
cuda.core beta 6https://github.com/NVIDIA/cuda-python/milestone/18
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-18807231693
https://github.com/leofang
Merge branch 'main' into faster_set_currenthttps://github.com/NVIDIA/cuda-python/pull/781/commits/92d24ce1a78e37353ca0002937b02db80066526a
92d24cehttps://github.com/NVIDIA/cuda-python/pull/781/commits/92d24ce1a78e37353ca0002937b02db80066526a
https://github.com/leofang
leofanghttps://github.com/leofang
shwinahttps://github.com/shwina
July 25, 2025 04:09https://github.com/NVIDIA/cuda-python/pull/781#event-18807320040
https://github.com/leofang
leofanghttps://github.com/leofang
July 25, 2025 04:09https://github.com/NVIDIA/cuda-python/pull/781#event-18807320971
https://github.com/leofang
leofanghttps://github.com/leofang
Jul 25, 2025https://github.com/NVIDIA/cuda-python/pull/781#issuecomment-3116320468
92d24cehttps://github.com/NVIDIA/cuda-python/pull/781/commits/92d24ce1a78e37353ca0002937b02db80066526a
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fpull%2F781
https://github.com/shwina
shwinahttps://github.com/shwina
Aug 6, 2025 https://github.com/NVIDIA/cuda-python/pull/781#pullrequestreview-3093358950
View reviewed changes https://github.com/NVIDIA/cuda-python/pull/781/files/b9b3c873caf7429669959fb28d0cbb22c220f29b
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
CCCLhttps://github.com/orgs/NVIDIA/projects/6
Aug 6, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-19016926881
https://github.com/leofang
Merge branch 'main' into faster_set_currenthttps://github.com/NVIDIA/cuda-python/pull/781/commits/b9b3c873caf7429669959fb28d0cbb22c220f29b
b9b3c87https://github.com/NVIDIA/cuda-python/pull/781/commits/b9b3c873caf7429669959fb28d0cbb22c220f29b
https://github.com/leofang
leofanghttps://github.com/leofang
Aug 6, 2025https://github.com/NVIDIA/cuda-python/pull/781#issuecomment-3160925269
b9b3c87https://github.com/NVIDIA/cuda-python/pull/781/commits/b9b3c873caf7429669959fb28d0cbb22c220f29b
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/leofang
leofanghttps://github.com/leofang
August 6, 2025 17:07https://github.com/NVIDIA/cuda-python/pull/781#event-19017718060
https://github.com/leofang
leofanghttps://github.com/leofang
fec95b8https://github.com/NVIDIA/cuda-python/commit/fec95b88bb8047881920bd9e8cc96a7b53610bb8
Aug 6, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-19018146598
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
CCCLhttps://github.com/orgs/NVIDIA/projects/6
Aug 6, 2025https://github.com/NVIDIA/cuda-python/pull/781#event-19018147452
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 6, 2025https://github.com/NVIDIA/cuda-python/pull/781#issuecomment-3161040845
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/leofang
leofanghttps://github.com/leofang
Feb 10, 2026 https://github.com/NVIDIA/cuda-python/pull/781#ref-issue-3903210128
cuda.core latency benchmark suite #1579 https://github.com/NVIDIA/cuda-python/issues/1579
https://github.co/hiddenchars
https://github.com/NVIDIA/cuda-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fpull%2F781
https://github.com/shwina
shwina https://github.com/shwina
https://github.com/NVIDIA/cuda-python/pull/781/files/b9b3c873caf7429669959fb28d0cbb22c220f29b
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/leofang
leofang https://github.com/leofang
cuda.core https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3Acuda.core
enhancement https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3Aenhancement
P0 https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3AP0
CCCL https://github.com/orgs/NVIDIA/projects/6
cuda.core beta 6 https://github.com/NVIDIA/cuda-python/milestone/18
Device.set_current() is slow https://github.com/NVIDIA/cuda-python/issues/739
Please reload this pagehttps://github.com/NVIDIA/cuda-python/pull/781
https://github.com/leofang
https://github.com/shwina
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.