Skip to content

Commit

Permalink
gha/mpi4py: Re-enable multi proc runs
Browse files Browse the repository at this point in the history
Signed-off-by: Lisandro Dalcin <[email protected]>
  • Loading branch information
dalcinl committed Feb 21, 2024
1 parent 980eb50 commit bff2b7f
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions .github/workflows/ompi_mpi4py.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: GitHub Action CI
name: GitHub Action CI - mpi4py

on: [pull_request]

jobs:
mpi4py:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:

- name: Configure hostname
run: echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}

- name: Install depencencies
run: sudo apt-get install -y -q
libnuma-dev

- name: Checkout Open MPI
uses: actions/checkout@v4
with:
Expand All @@ -26,19 +28,18 @@ jobs:
working-directory: mpi-build

- name: Configure Open MPI
run: ./configure
run: ./configure
--disable-dependency-tracking
--enable-debug
--enable-mem-debug
--disable-sphinx
--disable-man-pages
--disable-mpi-fortran
--disable-oshmem
--enable-debug
--enable-mem-debug
LDFLAGS=-Wl,-rpath,/usr/local/lib
working-directory: mpi-build

- name: Build MPI
run: make -j 2
run: make -j $(nproc)
working-directory: mpi-build

- name: Install MPI
Expand Down Expand Up @@ -92,25 +93,19 @@ jobs:
if: ${{ true }}
- name: Test mpi4py (np=1)
run: mpiexec -n 1 python test/main.py -v
#
# unfortunately these multi-rank tests aren't reliable enough to
# run in github actions right now.
#
# - name: Test mpi4py (np=2)
# run: mpiexec -n 2 python test/main.py -v -f
# - name: Test mpi4py (np=3)
# run: mpiexec -n 3 python test/main.py -v -f
# if: ${{ true }}
# timeout-minutes: 20
# - name: Test mpi4py (np=4)
# run: mpiexec -n 4 python test/main.py -v -f
# if: ${{ true }}
# timeout-minutes: 20
# - name: Test mpi4py (np=5)
# run: mpiexec -n 5 python test/main.py -v -f
# if: ${{ true }}
# timeout-minutes: 20
- name: Test mpi4py (np=2)
run: mpiexec -n 2 python test/main.py -v -f
timeout-minutes: 10
- name: Test mpi4py (np=3)
run: mpiexec -n 3 python test/main.py -v -f
timeout-minutes: 10
- name: Test mpi4py (np=4)
run: mpiexec -n 4 python test/main.py -v -f
timeout-minutes: 10
- name: Test mpi4py (np=5)
run: mpiexec -n 5 python test/main.py -v -f
if: ${{ true }}
timeout-minutes: 10

- name: Test mpi4py.run
run: python demo/test-run/test_run.py -v
if: ${{ true }}
timeout-minutes: 20

0 comments on commit bff2b7f

Please sign in to comment.