The Wayback Machine - https://web.archive.org/web/20230226010009/https://github.com/ray-project/ray/commit/e314cf2bf59356fda88b5e5d7f6a3357fc32f812
Skip to content
Permalink
Browse files
[CI] Update horovod, install after ml_docker (#30919)
Horovod has to be installed last (after torch and other libraries), but in our GPU tests we were installing it before ML Docker requirements, which contained DL libraries. This PR fixes the order and also updates the Horovod commit to the latest one - the old commit was from January 2022.

Not sure if it's worth centralizing the horovod commit in one place.

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
  • Loading branch information
Yard1 committed Dec 8, 2022
1 parent 6ec99de commit e314cf2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
@@ -2,8 +2,9 @@
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_TRAIN_AFFECTED"]
commands:
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- TRAIN_TESTING=1 TUNE_TESTING=1 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
- TRAIN_TESTING=1 TUNE_TESTING=1 ./ci/env/install-dependencies.sh
- pip install -Ur ./python/requirements/ml/requirements_ml_docker.txt
- ./ci/env/install-horovod.sh
- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=gpu,gpu_only,-ray_air python/ray/train/...

@@ -33,8 +34,9 @@
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_ML_AFFECTED"]
commands:
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- DATA_PROCESSING_TESTING=1 TRAIN_TESTING=1 TUNE_TESTING=1 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
- DATA_PROCESSING_TESTING=1 TRAIN_TESTING=1 TUNE_TESTING=1 ./ci/env/install-dependencies.sh
- pip install -Ur ./python/requirements/ml/requirements_ml_docker.txt
- ./ci/env/install-horovod.sh
- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=gpu python/ray/air/... python/ray/train/...

@@ -440,8 +440,7 @@ install_pip_packages() {
# Additional Tune dependency for Horovod.
# This must be run last (i.e., torch cannot be re-installed after this)
if [ "${INSTALL_HOROVOD-}" = 1 ]; then
# TODO: eventually pin this to master.
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git@a1f17d81f01543196b2c23240da692d9ae310942
"${SCRIPT_DIR}"/install-horovod.sh
fi

CC=gcc pip install psutil setproctitle==1.2.2 colorama --target="${WORKSPACE_DIR}/python/ray/thirdparty_files"
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# This script installs horovod.

# TODO: eventually pin this to master.
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install --no-cache-dir -U git+https://github.com/horovod/horovod.git@0b19c5ce6c5c93e7ed3bbf680290f918b2a0bdbb

0 comments on commit e314cf2

Please sign in to comment.