Skip to content

Commit 4847e41

Browse files
authored
Merge pull request #12357 from dalcinl/mpi4py
gha/mpi4py: Re-enable multi proc runs
2 parents aa2e117 + e4669fa commit 4847e41

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

.github/workflows/ompi_mpi4py.yaml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ 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+
if: ${{ runner.os == 'Linux' }}
20+
1821
- name: Checkout Open MPI
1922
uses: actions/checkout@v4
2023
with:
@@ -26,19 +29,18 @@ jobs:
2629
working-directory: mpi-build
2730

2831
- name: Configure Open MPI
29-
run: ./configure
32+
run: ./configure
3033
--disable-dependency-tracking
34+
--enable-debug
35+
--enable-mem-debug
3136
--disable-sphinx
32-
--disable-man-pages
3337
--disable-mpi-fortran
3438
--disable-oshmem
35-
--enable-debug
36-
--enable-mem-debug
3739
LDFLAGS=-Wl,-rpath,/usr/local/lib
3840
working-directory: mpi-build
3941

4042
- name: Build MPI
41-
run: make -j 2
43+
run: make -j $(nproc)
4244
working-directory: mpi-build
4345

4446
- name: Install MPI
@@ -90,27 +92,29 @@ jobs:
9092
- name: Test mpi4py (singleton)
9193
run: python test/main.py -v
9294
if: ${{ true }}
95+
timeout-minutes: 10
9396
- name: Test mpi4py (np=1)
9497
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
98+
if: ${{ true }}
99+
timeout-minutes: 10
100+
- name: Test mpi4py (np=2)
101+
run: mpiexec -n 2 python test/main.py -v -f
102+
if: ${{ true }}
103+
timeout-minutes: 10
104+
- name: Test mpi4py (np=3)
105+
run: mpiexec -n 3 python test/main.py -v -f
106+
if: ${{ true }}
107+
timeout-minutes: 10
108+
- name: Test mpi4py (np=4)
109+
run: mpiexec -n 4 python test/main.py -v -f
110+
if: ${{ true }}
111+
timeout-minutes: 10
112+
- name: Test mpi4py (np=5)
113+
run: mpiexec -n 5 python test/main.py -v -f
114+
if: ${{ true }}
115+
timeout-minutes: 10
116+
113117
- name: Test mpi4py.run
114118
run: python demo/test-run/test_run.py -v
115119
if: ${{ true }}
116-
timeout-minutes: 20
120+
timeout-minutes: 10

0 commit comments

Comments
 (0)