arch: Intel PVC mapping #5829
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-mpi | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-mpi-basic: | |
name: pytest-mpi | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ['3.8','3.9'] | |
env: | |
DEVITO_LANGUAGE: "openmp" | |
DEVITO_ARCH: "gcc-9" | |
OMP_NUM_THREADS: "1" | |
CC: "gcc-9" | |
CXX: "g++-9" | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout devito | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt install mpich -y | |
pip3 install --upgrade pip | |
pip3 install -e .[extras,mpi,tests] | |
- name: Test with pytest | |
run: | | |
python3 scripts/clear_devito_cache.py | |
python3 -m pytest --cov --cov-config=.coveragerc --cov-report=xml -m parallel tests/ | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: pytest-mpi | |
test-mpi-docker: | |
name: pytest-mpi | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [gcc, icx] | |
steps: | |
- name: Checkout devito | |
uses: actions/checkout@v3 | |
- name: Build docker image | |
run: | | |
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.arch }} | |
- name: Test with pytest | |
run: | | |
docker run --rm -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} -e OMP_NUM_THREADS=1 --name testrun devito_img pytest tests/test_mpi.py |