Commit 4ffb490
committed
fix(cuda.core): gate cu13 managed-memory paths on driver version, not bindings only
Per PR NVIDIA#1775 review feedback (leofang). The cu13 paths in
_managed_buffer.preferred_location and _reject_numa_host_on_cuda12 gated on
binding_version() >= (13, 0, 0) only, mirroring the regressions that PR NVIDIA#2054
and PR NVIDIA#2064 fixed for other modules. With cuda-bindings 13.x installed but a
CUDA 12.x runtime driver, the v2 CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_*
attributes and the HOST_NUMA{,_CURRENT} location types fail deep in the
driver with CUDA_ERROR_INVALID_VALUE.
Both checks now AND driver_version() >= (13, 0, 0) into the gate, and the
_reject_numa_host_on_cuda12 error message names both required versions.1 parent 98c7671 commit 4ffb490
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | | - | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments