Repository navigation
Commit 991ea99
committed
test(bindings): cap memory pools missed in #3140
#3140 capped the memory pools created by test_cuda_memPool_attr and
test_cudart_MemPool_attr but missed three more sites with the same
uncapped-pool (maxSize 0) pattern:
* cuda_bindings_13/tests/test_cuda.py: test_ffi_coverage_new_mempool_attributes
(v2 driver API, no max_size set).
* cuda_bindings_12/tests/test_cuda.py: test_cuda_memPool_attr (no POOL_SIZE
constant or maxSize) and test_cuda_graphMem_attr (no xfail_on_graph_mempool_oom
fixture; cuda_bindings_12 was added after #3140).
* cuda_bindings_12/tests/test_cudart.py: test_cudart_MemPool_attr (same).
A pool with maxSize 0 reserves virtual address space of about twice the device
memory; on riscv64 Sv39 (39-bit VA space) this fails with
CUDA_ERROR_OUT_OF_MEMORY on GPUs with enough device memory.1 parent 3cc4edb commit 991ea99
3 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
333 | 339 | | |
334 | 340 | | |
335 | 341 | | |
| 342 | + | |
336 | 343 | | |
337 | 344 | | |
338 | 345 | | |
| |||
539 | 546 | | |
540 | 547 | | |
541 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
542 | 567 | | |
543 | 568 | | |
544 | | - | |
| 569 | + | |
545 | 570 | | |
546 | 571 | | |
547 | 572 | | |
| |||
564 | 589 | | |
565 | 590 | | |
566 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
567 | 598 | | |
568 | 599 | | |
569 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
425 | 431 | | |
426 | 432 | | |
427 | 433 | | |
| 434 | + | |
428 | 435 | | |
429 | 436 | | |
430 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
606 | 607 | | |
607 | 608 | | |
608 | 609 | | |
| |||
0 commit comments