René's URL Explorer Experiment


Title: `StridedMemoryView` should expose access to the producer stream if possible · Issue #259 · NVIDIA/cuda-python · GitHub

Open Graph Title: `StridedMemoryView` should expose access to the producer stream if possible · Issue #259 · NVIDIA/cuda-python

X Title: `StridedMemoryView` should expose access to the producer stream if possible · Issue #259 · NVIDIA/cuda-python

Description: In an offline discussion it was brought to my attention that some use cases need a way to order the producer stream after the consumer one, when the work is done. (Ex: a ping pong exchange between producer/consumer in a tight loop.) Righ...

Open Graph Description: In an offline discussion it was brought to my attention that some use cases need a way to order the producer stream after the consumer one, when the work is done. (Ex: a ping pong exchange between ...

X Description: In an offline discussion it was brought to my attention that some use cases need a way to order the producer stream after the consumer one, when the work is done. (Ex: a ping pong exchange between ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`StridedMemoryView` should expose access to the producer stream if possible","articleBody":"In an offline discussion it was brought to my attention that some use cases need a way to order the producer stream *after* the consumer one, when the work is done. (Ex: a ping pong exchange between producer/consumer in a tight loop.) \n\nRight now, `StridedMemoryView` follows both DLPack and CAI and does the hand-shake (stream ordering) only once. But a second ordering can be done if the producer stream is exposed. In general, this is not considered safe (because the producer may not guarantee the stream pointer is always valid during the lifetime of a `StridedMemoryView` instance). However, we do have one situation that guarantees the pointer lifetime, which is when `StridedMemoryView` instances are created inside a `@args_viewable_as_strided_memory` context (WIP in #247). In this case, before the decorated function returns the producer stream is considered always valid, and by exposing it we allow users to perform such ordering before this function returns, e.g.\n```python\n@args_viewable_as_strided_memory((0,))\ndef my_func(arr, work_stream):\n    # work_stream is a \"consumer\" stream\n    view = arr.view(work_stream.handle)\n    assert isinstance(view.producer_stream, Stream)\n    # ... do work on work_stream ...\n    view.producer_stream.wait(work_stream)\n    return\n```","author":{"url":"https://github.com/leofang","@type":"Person","name":"leofang"},"datePublished":"2024-12-02T04:00:40Z","url":"https://github.com/NVIDIA/cuda-python/issues/259"}

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:c6e69d51-e7fb-28e7-e56b-7aa3f6a2762a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D14:26EB2C:3571FB:4A6CAA:6AF84748
html-safe-nonce7fb12f98896b9f73cfc38673697a4d5cd8d733415459758e75d0ce62915d7983
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDE0OjI2RUIyQzozNTcxRkI6NEE2Q0FBOjZBRjg0NzQ4IiwidmlzaXRvcl9pZCI6IjQxNjI2NDc5NjY4MTQzMjQ1NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac621c17cb3a7c4e8580bb98d59bef6f69f194f1fb269deb9dc83ffa0b5379ca51
hovercard-subject-tagissue:2710387208
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/259/issue_layout
twitter:imagehttps://opengraph.githubassets.com/101c5a0f1a5bad5ead6572d0fc36a8257c5af33d5a210b4ee3d5263377f00cc7/NVIDIA/cuda-python/issues/259
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/101c5a0f1a5bad5ead6572d0fc36a8257c5af33d5a210b4ee3d5263377f00cc7/NVIDIA/cuda-python/issues/259
og:image:altIn an offline discussion it was brought to my attention that some use cases need a way to order the producer stream after the consumer one, when the work is done. (Ex: a ping pong exchange between ...
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/259#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F259
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%2F259
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/259
Reloadhttps://github.com/NVIDIA/cuda-python/issues/259
Reloadhttps://github.com/NVIDIA/cuda-python/issues/259
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/259
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/259
StridedMemoryView should expose access to the producer stream if possiblehttps://github.com/NVIDIA/cuda-python/issues/259#top
https://github.com/leofang
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
enhancementAny code-related improvementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/leofang
leofanghttps://github.com/leofang
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#issue-2710387208
#247https://github.com/NVIDIA/cuda-python/pull/247
leofanghttps://github.com/leofang
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
enhancementAny code-related improvementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15486928526
leofanghttps://github.com/leofang
cuda.core beta 2https://github.com/NVIDIA/cuda-python/milestone/4
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15486928537
leofanghttps://github.com/leofang
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15486928558
leofanghttps://github.com/leofang
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15487010284
leofanghttps://github.com/leofang
cuda.core beta 2https://github.com/NVIDIA/cuda-python/milestone/4
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15487010668
https://github.com/leofang
leofanghttps://github.com/leofang
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#issuecomment-2510562992
leofanghttps://github.com/leofang
not plannedhttps://github.com/NVIDIA/cuda-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Dec 2, 2024https://github.com/NVIDIA/cuda-python/issues/259#event-15487130425
Sign up for freehttps://github.com/signup?return_to=https://github.com/NVIDIA/cuda-python/issues/259
Sign in to commenthttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/259
leofanghttps://github.com/leofang
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
enhancementAny code-related improvementshttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
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.