Skip to content

Commit

Permalink
fix horovod
Browse files Browse the repository at this point in the history
  • Loading branch information
jq committed Mar 15, 2024
1 parent 8c1081b commit ec11220
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/docker/install/install_horovod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
## Select version.
HOROVOD_VERSION=$1


# Install horovod
if [[ "$2" != "--only-cpu" ]]; then
ln -sf /usr/include/nccl.h /usr/local/include/nccl.h
Expand All @@ -29,12 +28,12 @@ if [[ "$2" != "--only-cpu" ]]; then
HOROVOD_WITHOUT_MXNET=1 \
HOROVOD_WITH_MPI=1 \
HOROVOD_WITHOUT_GLOO=1 \
python -m pip install --no-cache-dir --use-pep517 horovod==$HOROVOD_VERSION
python -m pip install --no-cache-dir horovod==$HOROVOD_VERSION
else
HOROVOD_WITH_TENSORFLOW=1 \
HOROVOD_WITHOUT_PYTORCH=1 \
HOROVOD_WITHOUT_MXNET=1 \
HOROVOD_WITH_MPI=1 \
HOROVOD_WITHOUT_GLOO=1 \
python -m pip install --no-cache-dir --use-pep517 horovod==$HOROVOD_VERSION
python -m pip install --no-cache-dir horovod==$HOROVOD_VERSION
fi

0 comments on commit ec11220

Please sign in to comment.