Skip to content

Commit

Permalink
Update PyTorch Installation checks for OpenMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ltran5991 committed Apr 5, 2022
1 parent a4d574d commit 4730edc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions installation_scripts/PyTorch/pytorch_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@ export LANG=en_US.UTF-8
compile_install_openmpi()
{
set -e
${MPI_ROOT}/bin/mpirun --version 2>/dev/null
if [ $? -eq 0 ]; then
if ${MPI_ROOT}/bin/mpirun --version 2>/dev/null; then
echo "OpenMPI found. Skipping installation."
else
wget --no-verbose https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-"${OPENMPI_VER}".tar.gz
Expand Down

0 comments on commit 4730edc

Please sign in to comment.