Skip to content

Commit 4b0df0b

Browse files
committed
[TestZeroRedundancyOptimizer] Add multi gpu checker
The test test_collect_shards fails on single GPU setup. Enabling the multi gpu checker. Signed-off-by: Jagadish Krishnamoorthy <jagdish.krishna@gmail.com>
1 parent 067ad31 commit 4b0df0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/distributed/optim/test_zero_redundancy_optimizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ def some_trainable():
346346
all_trainable()
347347
some_trainable()
348348

349+
@common_distributed.skip_if_not_multigpu
349350
def test_collect_shards(self):
350351
""" Check the state consolidation mechanism, and the state dict exposed by ZeroRedundancyOptimizer"""
351352
self.dist_init(self.rank)

0 commit comments

Comments
 (0)