Commit 0035b79
committed
Fix the
PR #313 removed the `runtime.is_supported_version()` API, but it is used
by the `cuda.is_supported_version()` public API. This commit restores
the `cuda.is_supported_version()` API by checking whether the CUDA
runtime major version is 12 or 13.
The version number check will need bumping as appropriate when future
toolkit major versions are added and existing toolkit major version are
dropped. This situation will be caught by the test that is added to
exercise this API.cuda.is_supported_version() API1 parent 96e10e6 commit 0035b79
File tree
2 files changed
+11
-1
lines changed- numba_cuda/numba/cuda
- tests/cudadrv
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
0 commit comments