Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lightning/fabric/plugins/environments/mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def detect() -> bool:
if not _MPI4PY_AVAILABLE:
return False

from mpi4py import MPI
try:
from mpi4py import MPI
except ImportError:
return False

return MPI.COMM_WORLD.Get_size() > 1

Expand Down
Loading