Skip to content

Commit

Permalink
Merge 009e06d into ba34d0b
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodrin authored Jan 5, 2021
2 parents ba34d0b + 009e06d commit 9ea6958
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/examples-mpi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Runner information:
# Standard F4s_v2 (4 vcpus, 8 GiB memory)
# Intel Xeon® Platinum 8168 (SkyLake)

name: Examples-mpi

on:
Expand All @@ -17,25 +13,28 @@ on:
jobs:
build:
name: Examples with mpi
runs-on: [self-hosted, mpi]
runs-on: ubuntu-20.04

env:
DEVITO_MPI: "1"
DEVITO_LANGUAGE: "openmp"
OMP_NUM_THREADS: "2"
DEVITO_ARCH: "gcc-7"
OMP_NUM_THREADS: "1"
DEVITO_ARCH: "gcc-9"
DEVITO_BACKEND: "core"
CC: "gcc-7"
CXX: "g++-7"
CC: "gcc-9"
CXX: "g++-9"

steps:
- name: Checkout devito
uses: actions/checkout@v1

- name: Install dependencies
run: |
sudo apt install mpich -y
pip3 install --upgrade pip
pip3 install -e .[extras]
pip3 install -r requirements.txt
pip3 install -r requirements-mpi.txt
- name: Test mpi notebooks
run : |
Expand All @@ -46,11 +45,11 @@ jobs:
- name: Test seismic examples
run: |
mpirun -n 4 py.test examples/seismic/tti/tti_example.py
mpirun -n 4 py.test examples/seismic/elastic/elastic_example.py
mpirun -n 4 py.test examples/seismic/viscoacoustic/viscoacoustic_example.py
mpirun -n 4 py.test examples/seismic/viscoelastic/viscoelastic_example.py
mpirun -n 2 python3 -m pytest examples/seismic/tti/tti_example.py
mpirun -n 2 python3 -m pytest examples/seismic/elastic/elastic_example.py
mpirun -n 2 python3 -m pytest examples/seismic/viscoacoustic/viscoacoustic_example.py
mpirun -n 2 python3 -m pytest examples/seismic/viscoelastic/viscoelastic_example.py
- name: Test fwi examples with mpi
run: |
mpirun -n 4 python examples/seismic/inversion/fwi.py
mpirun -n 2 python examples/seismic/inversion/fwi.py

0 comments on commit 9ea6958

Please sign in to comment.