Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install gpu requirements in tox config #1005

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions requirements/gpu.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--extra-index-url https://pypi.nvidia.com/
cudf-cu11
dask-cudf-cu11
16 changes: 9 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
; .github/workflows/cpu-ci.yml for the workflow definition.

[tox]
envlist = py38-gpu,py38-multi-gpu
envlist = py38-gpu

[testenv]
commands =
pip install --upgrade pip
pip install -e .[all]
deps =
-rrequirements/test.txt

[testenv:py38-gpu]
; Runs in: Github Actions
; Runs GPU-based tests.
deps =
-rrequirements/test.txt
-rrequirements/gpu.txt
setenv =
TF_GPU_ALLOCATOR=cuda_malloc_async
passenv =
CUDA_VISIBLE_DEVICES
commands =
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/core.git@{posargs:main}
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git@{posargs:main}
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/nvtabular.git@{posargs:main}
pip install -e .[all]
python -m pip install --upgrade \
git+https://github.com/NVIDIA-Merlin/core.git@{posargs:main} \
git+https://github.com/NVIDIA-Merlin/dataloader.git@{posargs:main} \
git+https://github.com/NVIDIA-Merlin/nvtabular.git@{posargs:main}
python -m pytest --cov-report term --cov merlin -rxs tests/unit/

[testenv:py38-horovod-cpu]
Expand Down