()
| 24 | |
| 25 | @pytest.mark.require_ngpu(1) |
| 26 | def test_mem_stats(): |
| 27 | memstat = MemStat("xpux:0", "xpux:1") |
| 28 | |
| 29 | F.arange(1024, device="xpux:0") |
| 30 | |
| 31 | mge._full_sync() |
| 32 | assert 4096 <= memstat.get_max("xpux:0") == memstat.get_max("xpux:1") <= 4096 + 128 |
| 33 | |
| 34 | |
| 35 | @pytest.mark.require_ngpu(1) |