Title: cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime · Issue #16 · NVIDIA/cuda-python · GitHub
Open Graph Title: cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime · Issue #16 · NVIDIA/cuda-python
X Title: cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime · Issue #16 · NVIDIA/cuda-python
Description: The current implementation of cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This results in incorrect runtime versions if the runtime version is different from the v...
Open Graph Description: The current implementation of cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This results in incorrect runtime versions if the...
X Description: The current implementation of cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This results in incorrect runtime versions if the...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime","articleBody":"The current implementation of `cuda.cudart.cudaRuntimeGetVersion()` hard-codes the runtime version, rather than querying the runtime for its version. This results in incorrect runtime versions if the runtime version is different from the version of cuda-python.\r\n\r\nhttps://github.com/NVIDIA/cuda-python/blob/746b773c91e1ede708fe9a584b8cdb1c0f32b51d/cuda/_lib/ccudart/ccudart.pyx#L79-L82\r\n\r\nhttps://github.com/NVIDIA/cuda-python/blob/746b773c91e1ede708fe9a584b8cdb1c0f32b51d/cuda/_lib/ccudart/utils.pyx#L37\r\n\r\n### Additional context\r\n\r\nA workaround used in https://github.com/rapidsai/rmm/pull/946 is to use numba's API for this instead:\r\n\r\n```python\r\nimport numba.cuda\r\n\r\ndef cudaRuntimeGetVersion():\r\n major, minor = numba.cuda.runtime.get_version()\r\n return major * 1000 + minor * 10\r\n```","author":{"url":"https://github.com/bdice","@type":"Person","name":"bdice"},"datePublished":"2022-01-19T20:40:50Z","url":"https://github.com/NVIDIA/cuda-python/issues/16"}
| 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:90d59fde-d014-c417-3240-de9c4571caf3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C42E:3AABB4:14E31DB:1B877AA:6AF89347 |
| html-safe-nonce | 85452f9bba49790c04e315f6cf6733010e897f9bec5a93a53c8c7a6037fe4670 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDJFOjNBQUJCNDoxNEUzMURCOjFCODc3QUE6NkFGODkzNDciLCJ2aXNpdG9yX2lkIjoiNjA3MTExMTc5MjgyNDE5Mzg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9cc9327ae843258d10c3e5871f5c98642aa9c082e73efae81396999bd6a1c5cd |
| hovercard-subject-tag | issue:1108535175 |
| 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/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e547098ffdb45158043619840fab94f448a9908576dd3f726279ee481cd67c45/NVIDIA/cuda-python/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e547098ffdb45158043619840fab94f448a9908576dd3f726279ee481cd67c45/NVIDIA/cuda-python/issues/16 |
| og:image:alt | The current implementation of cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This results in incorrect runtime versions if the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bdice |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width