Title: [BUG]: cuda.core tests fail with torch cu126 installed (NVRTC 12.6 options, torch CAI v2) · Issue #3333 · NVIDIA/cuda-python · GitHub
Open Graph Title: [BUG]: cuda.core tests fail with torch cu126 installed (NVRTC 12.6 options, torch CAI v2) · Issue #3333 · NVIDIA/cuda-python
X Title: [BUG]: cuda.core tests fail with torch cu126 installed (NVRTC 12.6 options, torch CAI v2) · Issue #3333 · 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 Something else Component cuda.core Describe the bug With cuda-core 1.2.2 [cu12] and torch 2.14.1+cu1...
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 Something else Component cuda.core Describe the bug With cud...
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 Something else Component cuda.core Describe the bug With cud...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/3333
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: cuda.core tests fail with torch cu126 installed (NVRTC 12.6 options, torch CAI v2)","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\nSomething else\n\n### Component\n\ncuda.core\n\n### Describe the bug\n\nWith cuda-core 1.2.2 `[cu12]` and torch 2.14.1+cu126 in the same environment, `cuda_core/tests` has 10 failures that come from the tests, not from cuda.core. The same parametrizations are unchanged on `main`.\n\n1. `test_program.py::test_cpp_program_with_various_options`: `ProgramOptions(no_cache=True)`, `ProgramOptions(frandom_seed=\"12345\")` and `ProgramOptions(ofast_compile=\"min\")` fail with `NVRTC_ERROR_INVALID_OPTION`. torch cu126 pins `nvidia-cuda-nvrtc-cu12==12.6.85`, and these options need NVRTC 12.9. Compiling an empty kernel with each option through `cuda.bindings.nvrtc`:\n\n | Option | NVRTC 12.6.85 | 12.8.93 | 12.9.86 |\n | --- | --- | --- | --- |\n | `--no-cache` | unrecognized option | unrecognized option | OK |\n | `--frandom-seed=12345` | unrecognized option | unrecognized option | OK |\n | `--Ofast-compile=min` | invalid argument `min` | invalid argument `min` | OK |\n | `--pch` | unrecognized option | OK | OK |\n\n The PCH parametrizations in the same list are already skipped below NVRTC 12.8; these three have no version gate.\n\n2. `test_utils.py::TestViewCudaArrayInterfaceGPU::test_cuda_array_interface_gpu[torch-*]` (7 cases) fail with `BufferError: only CUDA Array Interface v3 or above is supported`. torch still exports `__cuda_array_interface__` with `\"version\": 2`, so `StridedMemoryView.from_cuda_array_interface` rejects every torch sample that `_gpu_array_samples()` adds. This test is listed in #2077 because CI has no array library installed for it; with torch installed it does run and these samples fail.\n\n### How to Reproduce\n\n1. `pip install \"cuda-core[cu12]==1.2.2\" torch --index-url ...` (torch 2.14.1+cu126), plus the test dependencies.\n2. Run `pytest cuda_core/tests/test_program.py cuda_core/tests/test_utils.py` from the `cuda-core-v1.2.2` sources on a CUDA GPU.\n\n### Expected behavior\n\nThe three option cases skip on NVRTC older than 12.9, like the PCH cases skip below 12.8. The CAI test either leaves out torch samples or expects the `BufferError` for CAI v2 producers.\n\n### Operating System\n\nUbuntu 24.04, x86_64\n\n### nvidia-smi output\n\nTesla V100-SXM2-16GB, driver 580 (CUDA 13.0). The failures are not GPU-specific.\n","author":{"url":"https://github.com/0z5a","@type":"Person","name":"0z5a"},"datePublished":"2026-11-02T19:42:26Z","url":"https://github.com/NVIDIA/cuda-python/issues/3333"}
| 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:47edc99f-7422-1791-3a0b-6e87e934efa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5B8:241D9D:156423:1DFA16:6AF837BB |
| html-safe-nonce | de72f774a8efff76ca79a659a2937cec03f9a3640f43530f4f17fc3c436ba5e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUI4OjI0MUQ5RDoxNTY0MjM6MURGQTE2OjZBRjgzN0JCIiwidmlzaXRvcl9pZCI6Ijc0NDM1MTExMDQxMjM3MTM0NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 228c69b77acf529a1c83ca44126b5d7f5ba5e6cdb0052704fea89bce3d58b083 |
| hovercard-subject-tag | issue:6169693502 |
| 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/3333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cb3dbb42df01dfeb284e3b7e1f183b92caaff1df3ef30230f7a52d53f32ab33/NVIDIA/cuda-python/issues/3333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cb3dbb42df01dfeb284e3b7e1f183b92caaff1df3ef30230f7a52d53f32ab33/NVIDIA/cuda-python/issues/3333 |
| og:image:alt | 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 Something else Component cuda.core Describe the bug With cud... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 0z5a |
| 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