Skip to content

Commit 8b1e851

Browse files
committed
gha/mpi4py: Re-enable multi proc runs
Signed-off-by: Lisandro Dalcin <[email protected]>
1 parent cb00772 commit 8b1e851

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

.github/workflows/ompi_mpi4py.yaml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
name: GitHub Action CI
1+
name: GitHub Action CI - mpi4py
22

33
on: [pull_request]
44

55
jobs:
66
mpi4py:
77
runs-on: ubuntu-latest
88
timeout-minutes: 60
9+
910
steps:
11+
1012
- name: Configure hostname
1113
run: echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null
1214
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
13-
15+
1416
- name: Install depencencies
1517
run: sudo apt-get install -y -q
1618
libnuma-dev
17-
19+
1820
- name: Checkout Open MPI
1921
uses: actions/checkout@v4
2022
with:
@@ -26,19 +28,18 @@ jobs:
2628
working-directory: mpi-build
2729

2830
- name: Configure Open MPI
29-
run: ./configure
31+
run: ./configure
3032
--disable-dependency-tracking
33+
--enable-debug
34+
--enable-mem-debug
3135
--disable-sphinx
32-
--disable-man-pages
3336
--disable-mpi-fortran
3437
--disable-oshmem
35-
--enable-debug
36-
--enable-mem-debug
3738
LDFLAGS=-Wl,-rpath,/usr/local/lib
3839
working-directory: mpi-build
3940

4041
- name: Build MPI
41-
run: make -j 2
42+
run: make -j $(nproc)
4243
working-directory: mpi-build
4344

4445
- name: Install MPI
@@ -92,25 +93,19 @@ jobs:
9293
if: ${{ true }}
9394
- name: Test mpi4py (np=1)
9495
run: mpiexec -n 1 python test/main.py -v
95-
#
96-
# unfortunately these multi-rank tests aren't reliable enough to
97-
# run in github actions right now.
98-
#
99-
# - name: Test mpi4py (np=2)
100-
# run: mpiexec -n 2 python test/main.py -v -f
101-
# - name: Test mpi4py (np=3)
102-
# run: mpiexec -n 3 python test/main.py -v -f
103-
# if: ${{ true }}
104-
# timeout-minutes: 20
105-
# - name: Test mpi4py (np=4)
106-
# run: mpiexec -n 4 python test/main.py -v -f
107-
# if: ${{ true }}
108-
# timeout-minutes: 20
109-
# - name: Test mpi4py (np=5)
110-
# run: mpiexec -n 5 python test/main.py -v -f
111-
# if: ${{ true }}
112-
# timeout-minutes: 20
96+
- name: Test mpi4py (np=2)
97+
run: mpiexec -n 2 python test/main.py -v -f
98+
timeout-minutes: 10
99+
- name: Test mpi4py (np=3)
100+
run: mpiexec -n 3 python test/main.py -v -f
101+
timeout-minutes: 10
102+
- name: Test mpi4py (np=4)
103+
run: mpiexec -n 4 python test/main.py -v -f
104+
timeout-minutes: 10
105+
- name: Test mpi4py (np=5)
106+
run: mpiexec -n 5 python test/main.py -v -f
107+
if: ${{ true }}
108+
timeout-minutes: 10
109+
113110
- name: Test mpi4py.run
114111
run: python demo/test-run/test_run.py -v
115-
if: ${{ true }}
116-
timeout-minutes: 20

0 commit comments

Comments
 (0)