Skip to content

Commit 2cf9098

Browse files
jaglinuxfacebook-github-bot
authored andcommitted
[TestZeroRedundancyOptimizer] Add multi gpu checker (pytorch#53564)
Summary: The test test_collect_shards fails on single GPU setup. Enabling the multi gpu checker. Signed-off-by: Jagadish Krishnamoorthy <[email protected]> Pull Request resolved: pytorch#53564 Reviewed By: H-Huang Differential Revision: D26952325 Pulled By: rohan-varma fbshipit-source-id: e8956f9277c7320024bece129767e83fbdf02b2c
1 parent d9fa957 commit 2cf9098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)