Title: Add nvjitlink bindings · Issue #98 · NVIDIA/cuda-python · GitHub
Open Graph Title: Add nvjitlink bindings · Issue #98 · NVIDIA/cuda-python
X Title: Add nvjitlink bindings · Issue #98 · NVIDIA/cuda-python
Description: (Copied/pasted offline discussion with @bdice, with some editing.) How will this be packaged? Will there be a dependency from cuda-python 12.x wheels on the wheel nvidia-nvjitlink-cu12 >=12.x,<13.0? (And similar for conda?) How does this...
Open Graph Description: (Copied/pasted offline discussion with @bdice, with some editing.) How will this be packaged? Will there be a dependency from cuda-python 12.x wheels on the wheel nvidia-nvjitlink-cu12 >=12.x,<13.0...
X Description: (Copied/pasted offline discussion with @bdice, with some editing.) How will this be packaged? Will there be a dependency from cuda-python 12.x wheels on the wheel nvidia-nvjitlink-cu12 >=12.x,&l...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/98
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add nvjitlink bindings","articleBody":"(Copied/pasted offline discussion with @bdice, with some editing.)\n\n> How will this be packaged? Will there be a dependency from cuda-python 12.x wheels on the wheel nvidia-nvjitlink-cu12 >=12.x,\u003c13.0? (And similar for conda?)\n>\n> How does this work with cuda-python’s compatibility with two CUDA major versions? \n\nThe bindings will be part of cuda-bindings/cuda-python (#105), as 1. logically it makes sense to group all bindings in one common module (it was the original design intention of #75), and 2. it’s already (almost) the same as how CUDA Python works today. For example following its treatment for libcuda/libnvrtc, libnvjitlink will be dynamically loaded. \n\nWith regard to nvJitLink-specific internal knowledge, we do **NOT** load nvjitlink’s versioned symbols (ex: `__nvJitLinkCreate_12_6`), but instead we load the unversioned one (ex: `nvJitLinkCreate`), and let the loaded nvjitlink handle this indirection internally. This is one nice little enhancement that the nvJitLink team offers, so that we can use the same binding for all nvJitLink versions 12.x (with x>=3). We do not have to constrain the nvidia-nvjitlink-cu12 wheel version as a result, nor is it a required dependency.\n\nAs an important consequence to point out, this allows the installed nvjitlink version to be higher than cuda-python and other components installed in the user environment, as expected. e.g. we can use libcuda 12.3 with cuda-python 12.6 and it’d work, and vice versa is also true. Now replace libcuda by libnvjitlink, we get the same story with a caveat that when using libnvjitlink 12.3 with cuda-python 12.6, the other CTK components in the same user env must also be >=12.0,\u003c=12.3.\n\nTherefore, as far as wheels are concerned, I don’t think anything special is required other than enabling cuda-python's support for CUDA wheels (https://github.com/NVIDIA/cuda-python/issues/62). Most likely we’ll do it (and get the nvjitlink wheel support for free) when the wheel loader solution from either `cuda.core` or some internal projects.\n\nFor crossing the major version boundary, the binding internal helper will check the driver version and decide which SONAME to use (ex: .12 or .13) to load libnvjitlink, with the idea that driver and nvjitlink should share the same major ver. The similar treatment has been used in e.g. nvmath-python. Any packaging solution will add additional protection on top.","author":{"url":"https://github.com/leofang","@type":"Person","name":"leofang"},"datePublished":"2024-09-10T17:28:26Z","url":"https://github.com/NVIDIA/cuda-python/issues/98"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fa97952e-a2b8-a9d7-4951-032385dc4137 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD04:1B5CAA:96C2C9:C5F152:6AF84980 |
| html-safe-nonce | fbda6ceb39b7f9f30212830ebc5eb4a5446351c56d9af3cebd5a9fac1b17d552 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDA0OjFCNUNBQTo5NkMyQzk6QzVGMTUyOjZBRjg0OTgwIiwidmlzaXRvcl9pZCI6IjYwMzI5ODUxNTMzODkyMTgxNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3a697c169133ccc258fd6a2427890559dac48dfc0d20fad1d19d6c661ce363f |
| hovercard-subject-tag | issue:2517091624 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NVIDIA/cuda-python/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77d45cb5af206c2154d50d0b5fc189ba5b5dfac52a264469cbe4a5e6e3dd523b/NVIDIA/cuda-python/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77d45cb5af206c2154d50d0b5fc189ba5b5dfac52a264469cbe4a5e6e3dd523b/NVIDIA/cuda-python/issues/98 |
| og:image:alt | (Copied/pasted offline discussion with @bdice, with some editing.) How will this be packaged? Will there be a dependency from cuda-python 12.x wheels on the wheel nvidia-nvjitlink-cu12 >=12.x,<13.0... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leofang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| go-import | github.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git |
| octolytics-dimension-user_id | 1728152 |
| octolytics-dimension-user_login | NVIDIA |
| octolytics-dimension-repository_id | 381173759 |
| octolytics-dimension-repository_nwo | NVIDIA/cuda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 381173759 |
| octolytics-dimension-repository_network_root_nwo | NVIDIA/cuda-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width