Skip to content

Commit

Permalink
fix dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Jan 12, 2024
1 parent 6de8c37 commit b08fcb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/fixtures/autouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def initialize_dist(request: pytest.FixtureRequest):
_default = pytest.mark.world_size(1).mark
world_size = request.node.get_closest_marker('world_size', _default).args[0]
gpu = request.node.get_closest_marker('gpu')
if world_size > 1:
dist.initialize_dist(get_device('gpu' if gpu is not None else 'cpu'))
dist.initialize_dist(get_device('gpu' if gpu is not None else 'cpu'))


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit b08fcb2

Please sign in to comment.