Commit ff819a6
committed
test(cuda.core): gate register() IPC guard test on mempool support
test_register_rejects_non_ipc_memory_resource constructed a
DeviceMemoryResource from a bare Device(), which raises
CUDA_ERROR_NOT_SUPPORTED on devices without memory pool support. Every
win-64 TCC job in CI failed there before reaching the assertion under
test.
Take the mempool_device fixture instead, matching how the other
mempool-dependent tests are gated. The fixture skips when
memory_pools_supported is false and already makes the device current,
so the manual Device()/set_current() pair is dropped.1 parent ecb4ecf commit ff819a6
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
0 commit comments