René's URL Explorer Experiment


Title: [BUG]: Compiling PTX with undefined extern succeeds and produces empty kernel · Issue #920 · NVIDIA/cuda-python · GitHub

Open Graph Title: [BUG]: Compiling PTX with undefined extern succeeds and produces empty kernel · Issue #920 · NVIDIA/cuda-python

X Title: [BUG]: Compiling PTX with undefined extern succeeds and produces empty kernel · Issue #920 · NVIDIA/cuda-python

Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Silent Failure Component cuda.core Describe the bug Attempting to compile PTX with an undefined exte...

Open Graph Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Silent Failure Component cuda.core Describe the bug Attempti...

X Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Silent Failure Component cuda.core Describe the bug Attempti...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: Compiling PTX with undefined extern succeeds and produces empty kernel","articleBody":"### Is this a duplicate?\n\n- [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)\n\n### Type of Bug\n\nSilent Failure\n\n### Component\n\ncuda.core\n\n### Describe the bug\n\nAttempting to compile PTX with an undefined extern function seems to succeed and produce a cubin with an empty kernel. I am doing this like:\n\n```python\nfrom cuda.core.experimental import Program, ProgramOptions\n\noptions = ProgramOptions(arch=\"sm_75\")\nprogram = Program(code, code_type=\"ptx\", options=options)\ncubin = program.compile(\"cubin\")\n```\n\nThe same PTX compiled with ptxas results in a failure to compile:\n\n```\n$ ptxas -arch sm_75 add_float16.ptx \nptxas fatal   : Unresolved extern function '_ZplRK6__halfS1__1'\n```\n\nAm I using the `Program.compile()` interface incorrectly?\n\n### How to Reproduce\n\nRun the attached file:\n\n```\npython cudapy.py\n```\n\nThis will produce a cubin with an empty kernel, and show `ptxas` raises an error for the same PTX.\n\n[cudapy.py](https://github.com/user-attachments/files/22028945/cudapy.py)\n\n### Expected behavior\n\nAn exception or some other error raised by `Program.compile()`\n\n### Operating System\n\nUbuntu Linux\n\n### nvidia-smi output\n\n_No response_","author":{"url":"https://github.com/gmarkall","@type":"Person","name":"gmarkall"},"datePublished":"2025-08-28T16:00:43Z","url":"https://github.com/NVIDIA/cuda-python/issues/920"}

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:0e61a5fd-0a60-be92-fac3-91b12d9bf2d5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD744:383F61:1247DA0:186D3B0:6AF88D09
html-safe-nonce1dc88a14830ac8acf2269312b39fd9ce691dd4d1085f0250cbd0c59ec51df37c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ0OjM4M0Y2MToxMjQ3REEwOjE4NkQzQjA6NkFGODhEMDkiLCJ2aXNpdG9yX2lkIjoiNjEwMTI1MjA2NTEyNjI4ODY1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2e8765cb6a2639da5f6ce50d0a87622ea0de05578e3ba7ccefb6f00ebcae9218
hovercard-subject-tagissue:3363876759
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/920/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b580a1ea510a88e568e889f02f47b86c73960303a12f5c30abd346a409e1297b/NVIDIA/cuda-python/issues/920
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b580a1ea510a88e568e889f02f47b86c73960303a12f5c30abd346a409e1297b/NVIDIA/cuda-python/issues/920
og:image:altIs this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Silent Failure Component cuda.core Describe the bug Attempti...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegmarkall
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NVIDIA/cuda-python/issues/920#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F920
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%2F920
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/920
Reloadhttps://github.com/NVIDIA/cuda-python/issues/920
Reloadhttps://github.com/NVIDIA/cuda-python/issues/920
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/920
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/920
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
[BUG]: Compiling PTX with undefined extern succeeds and produces empty kernelhttps://github.com/NVIDIA/cuda-python/issues/920#top
awaiting-responseFurther information is requestedhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22awaiting-response%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
stalehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Aug 28, 2025https://github.com/NVIDIA/cuda-python/issues/920#issue-3363876759
duplicate issueshttps://github.com/NVIDIA/cuda-python/issues
Code of Conducthttps://github.com/NVIDIA/cuda-python/issues/CODE_OF_CONDUCT.md
cudapy.pyhttps://github.com/user-attachments/files/22028945/cudapy.py
gmarkallhttps://github.com/gmarkall
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Aug 28, 2025https://github.com/NVIDIA/cuda-python/issues/920#event-19394999677
https://github.com/leofang
leofanghttps://github.com/leofang
on Aug 28, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3234207668
cuda-python/cuda_core/cuda/core/experimental/_program.pyhttps://github.com/NVIDIA/cuda-python/blob/1137e1555b23bb7ca77e77833bb7d785794d8f0b/cuda_core/cuda/core/experimental/_program.py#L408-L413
1137e15https://github.com/NVIDIA/cuda-python/commit/1137e1555b23bb7ca77e77833bb7d785794d8f0b
https://github.com/isVoid
isVoidhttps://github.com/isVoid
on Aug 28, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3235287045
https://github.com/NVIDIA/numba-cuda/blob/main/numba_cuda/numba/cuda/codegen.py#L267-L283https://github.com/NVIDIA/numba-cuda/blob/main/numba_cuda/numba/cuda/codegen.py#L267-L283
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Aug 29, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3236079282
@isVoidhttps://github.com/isVoid
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 4, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3254248473
cuda-python/cuda_core/tests/test_linker.pyhttps://github.com/NVIDIA/cuda-python/blob/fa07cf58ef5c70bb6a42e9aa859487e88f5699a2/cuda_core/tests/test_linker.py#L147-L168
fa07cf5https://github.com/NVIDIA/cuda-python/commit/fa07cf58ef5c70bb6a42e9aa859487e88f5699a2
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3266403411
@gmarkallhttps://github.com/gmarkall
leofanghttps://github.com/leofang
awaiting-responseFurther information is requestedhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22awaiting-response%22
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/920#event-19566489731
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Oct 9, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3385404442
https://github.com/leofang
leofanghttps://github.com/leofang
on Oct 9, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3385853830
@gmarkallhttps://github.com/gmarkall
what we test as mentioned abovehttps://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3254248473
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Oct 9, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3385962579
https://github.com/gmarkall
gmarkallhttps://github.com/gmarkall
on Oct 9, 2025https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-3385986729
rparolinhttps://github.com/rparolin
triageNeeds the team's attentionhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Oct 13, 2025https://github.com/NVIDIA/cuda-python/issues/920#event-20256722926
rparolinhttps://github.com/rparolin
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
on Oct 13, 2025https://github.com/NVIDIA/cuda-python/issues/920#event-20256731262
rparolinhttps://github.com/rparolin
cuda.core parking lothttps://github.com/NVIDIA/cuda-python/milestone/13
on Oct 13, 2025https://github.com/NVIDIA/cuda-python/issues/920#event-20256738584
rparolinhttps://github.com/rparolin
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
on Apr 2, 2026https://github.com/NVIDIA/cuda-python/issues/920#event-24162277223
rparolinhttps://github.com/rparolin
cuda.core backloghttps://github.com/NVIDIA/cuda-python/milestone/13
on Apr 2, 2026https://github.com/NVIDIA/cuda-python/issues/920#event-24162290824
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 4, 2026https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-6624244396
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22stale%22
on Nov 4, 2026https://github.com/NVIDIA/cuda-python/issues/920#event-35100088893
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 12, 2026https://github.com/NVIDIA/cuda-python/issues/920#issuecomment-6816468729
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/NVIDIA/cuda-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Nov 12, 2026https://github.com/NVIDIA/cuda-python/issues/920#event-35880902843
Sign up for freehttps://github.com/signup?return_to=https://github.com/NVIDIA/cuda-python/issues/920
Sign in to commenthttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/920
awaiting-responseFurther information is requestedhttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22awaiting-response%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
stalehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22stale%22
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
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.