Repository navigation
Commit 1584a18
authored
[torch_checkpointing][test] use real barrier for test (#4574)
This test does `CheckpointWriterConfig(barrier_config=None)`, which I'm
about to disallow without further config.
* In
meta-pytorch/torch_checkpointing@32f50c1,
we change the default barrier from `None` to `DefaultStoreBarrier`. This
is does not affect Titan; it currently explicitly sets up a
`TCPStoreBarrier`.
* Current torch_checkpointing behaviour is to write to a temp dir and
atomically rename iff a barrier is configured. I am soon to make this an
explicit flag (defaulting to True), which will make this test break. So
fixing the test before I make the api change.
Tested with `pytest ./tests/unit_tests/cpu/test_torch_checkpointing.py`1 parent 98c6cea commit 1584a18
1 file changed
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
617 | 625 | | |
618 | 626 | | |
619 | 627 | | |
620 | 628 | | |
621 | | - | |
622 | | - | |
623 | | - | |
| 629 | + | |
624 | 630 | | |
625 | 631 | | |
626 | 632 | | |
627 | | - | |
| 633 | + | |
628 | 634 | | |
629 | 635 | | |
630 | 636 | | |
631 | 637 | | |
632 | 638 | | |
633 | 639 | | |
634 | 640 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
0 commit comments