Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Jan 13, 2025
1 parent 5fa7801 commit 8c27dc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/3_MultiGPU/multigpu_infer_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import torch
try:
from mpi4py import MPI

rank = MPI.COMM_WORLD.rank
except ModuleNotFoundError:
from warnings import warn

warn("Running with rank 0 under the assumption that MPI is not being used.")
rank = 0

Expand Down

0 comments on commit 8c27dc1

Please sign in to comment.