Commit 5c6d054
fix(cuda.core): restore CUDA_ERROR_NOT_INITIALIZED auto-init in _query_memory_attrs (R4)
Per Leo's review on PR #1775 (_buffer.pyx:455), restore the auto-init
retry that was removed in 10de998. cuPointerGetAttributes is the
first driver call _query_memory_attrs makes, and a NOT_INITIALIZED
result here would otherwise propagate out of every is_managed /
is_host_accessible / is_device_accessible query before the user has
called any other Device API.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2151e61 commit 5c6d054
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
455 | 461 | | |
456 | 462 | | |
457 | 463 | | |
| |||
0 commit comments