@@ -3,7 +3,7 @@ name: PyLops-MPI (CuPy)
33on : [push, pull_request]
44
55jobs :
6- build :
6+ build-mpi :
77 strategy :
88 matrix :
99 rank : ['2','4']
3232 - name : Tests with pytest
3333 run : |
3434 export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1; export PYLOPS_MPI_CUDA_AWARE=0
35- export PYTEST=.venv-pylops/bin/pytest
36- srun --account=yuxilab -n ${{matrix.rank}} -N 1 --gres=gpu:L40S:${{matrix.rank}} $PYTEST
35+ export PYTEST=".venv-pylops/bin/pytest tests/ --with-mpi"
36+ srun --account=yuxilab --mpi=pmix -n ${{matrix.rank}} -N 1 --gres=gpu:L40S:${{matrix.rank}} $PYTEST
37+ echo "done!"
38+
39+ build-nccl :
40+ strategy :
41+ matrix :
42+ rank : ['2','4']
43+ runs-on : self-hosted
44+ steps :
45+ - name : Check out source repository
46+ uses : actions/checkout@v4
47+ - name : Set up Python environment and Install dependencies and pylops
48+ run : |
49+ python3 -m venv .venv-pylops
50+ # write install scripts
51+ cat << 'EOF' > pylops_tests.sh
52+ #!/bin/bash
53+ PYTHON=.venv-pylops/bin/python3
54+ PIP=.venv-pylops/bin/pip
55+ ls $PYTHON
56+ ls $PIP
57+ $PIP install --upgrade pip setuptools
58+ $PIP install flake8 pytest setuptools-scm
59+ $PIP install -r requirements-dev.txt
60+ $PIP install cupy-cuda12x nvidia-nccl-cu12
61+ $PYTHON -m setuptools_scm
62+ $PIP install .
63+ EOF
64+ srun --account=yuxilab -n 1 -N 1 --gres=gpu:L40S:1 bash pylops_tests.sh
65+ - name : Tests with pytest
66+ run : |
67+ export CUPY_PYLOPS=1;
68+ export PYTEST=".venv-pylops/bin/pytest tests_nccl/ --with-mpi"
69+ srun --account=yuxilab --mpi=pmix -n ${{matrix.rank}} -N 1 --gres=gpu:L40S:${{matrix.rank}} $PYTEST
3770 echo "done!"
0 commit comments