Skip to content
Open
Changes from all commits
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
2 changes: 2 additions & 0 deletions smdebug/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class FRAMEWORK(Enum):

try:
import horovod.torch as hvd
if not hvd._MPI_LIB_AVAILABLE:
raise ImportError("MPI lib is missing. Reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.")

# This redundant import is necessary because horovod does not raise an ImportError if the library is not present
import torch # noqa
Expand Down