Skip to content

Nested Data Proposal (SDFG only) #2619

Nested Data Proposal (SDFG only)

Nested Data Proposal (SDFG only) #2619

Workflow file for this run

name: GPU Tests
on:
push:
branches: [ master, ci-fix ]
pull_request:
branches: [ master, ci-fix ]
jobs:
test-gpu:
if: "!contains(github.event.pull_request.labels.*.name, 'no-ci')"
runs-on: [self-hosted, linux, gpu]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: |
rm -f ~/.dace.conf
rm -rf .dacecache tests/.dacecache
. /opt/setupenv
python -m pip install --upgrade pip
pip install flake8 pytest-xdist coverage
pip install mpi4py
pip uninstall -y dace
pip install -e ".[testing]"
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
- name: Test dependencies
run: |
nvidia-smi
- name: Run pytest GPU
run: |
export DACE_cache=single
. /opt/setupenv
pytest --cov-report=xml --cov=dace --tb=short -m "gpu"
- name: Run extra GPU tests
run: |
export NOSTATUSBAR=1
export DACE_cache=single
export COVERAGE_RCFILE=`pwd`/.coveragerc
export PYTHON_BINARY="coverage run --source=dace --parallel-mode"
. /opt/setupenv
./tests/cuda_test.sh
- name: Report overall coverage
run: |
export COVERAGE_RCFILE=`pwd`/.coveragerc
. /opt/setupenv
coverage combine . */; coverage report; coverage xml
reachable=0
ping -W 2 -c 1 codecov.io || reachable=$?
if [ $reachable -eq 0 ]; then
./codecov
else
echo "Codecov.io is unreachable"
fi