Skip to content

Commit 53d0311

Browse files
committed
move horovod installation to multi-gpu
1 parent dbb7af7 commit 53d0311

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tox.ini

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ commands =
2828
; Runs in: Github Actions
2929
; Runs GPU-based tests.
3030
allowlist_externals =
31+
bash
3132
horovodrun
3233
deps =
3334
-rrequirements/test.txt
@@ -41,12 +42,15 @@ commands =
4142
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/core.git@{posargs:main}
4243
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git@{posargs:main}
4344
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/nvtabular.git@{posargs:main}
45+
# Reinstall Horovod using `pip install --no-cache-dir` to build with the new version.
46+
python -m pip install horovod --no-cache-dir
47+
horovodrun --check-build
48+
# Install distributed embeddings and check build
49+
bash examples/usecases/multi-gpu/install_distributed_embeddings.sh {envtmpdir}
4450
# Run multi-gpu tests marked with `horovod` marker
4551
horovodrun -np 2 sh examples/usecases/multi-gpu/hvd_wrapper.sh pytest -m horovod -rxs tests/unit
4652

4753
[testenv:py38-horovod-cpu]
48-
allowlist_externals =
49-
bash
5054
setenv =
5155
HOROVOD_WITH_MPI=1
5256
HOROVOD_WITH_TENSORFLOW=1
@@ -55,11 +59,6 @@ setenv =
5559
commands =
5660
conda update --yes --name base --channel defaults conda
5761
conda env create --prefix {envdir}/env --file requirements/horovod-cpu-environment.yml --force
58-
# Install horovod and check build
59-
{envdir}/env/bin/python -m pip install horovod --no-cache-dir
60-
{envdir}/env/bin/horovodrun --check-build
61-
# Install distributed embeddings and check build
62-
bash examples/usecases/multi-gpu/install_distributed_embeddings.sh {envtmpdir}
6362
# Install Merlin packages
6463
{envdir}/env/bin/python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/core.git
6564
{envdir}/env/bin/python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git

0 commit comments

Comments
 (0)