@@ -28,6 +28,7 @@ commands =
28
28
; Runs in: Github Actions
29
29
; Runs GPU-based tests.
30
30
allowlist_externals =
31
+ bash
31
32
horovodrun
32
33
deps =
33
34
-rrequirements/test.txt
@@ -41,12 +42,15 @@ commands =
41
42
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/core.git@{posargs:main}
42
43
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git@{posargs:main}
43
44
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}
44
50
# Run multi-gpu tests marked with `horovod` marker
45
51
horovodrun -np 2 sh examples/usecases/multi-gpu/hvd_wrapper.sh pytest -m horovod -rxs tests/unit
46
52
47
53
[testenv:py38-horovod-cpu]
48
- allowlist_externals =
49
- bash
50
54
setenv =
51
55
HOROVOD_WITH_MPI =1
52
56
HOROVOD_WITH_TENSORFLOW =1
@@ -55,11 +59,6 @@ setenv =
55
59
commands =
56
60
conda update --yes --name base --channel defaults conda
57
61
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}
63
62
# Install Merlin packages
64
63
{envdir}/env/bin/python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/core.git
65
64
{envdir}/env/bin/python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git
0 commit comments