1- name : GitHub Action CI
1+ name : GitHub Action CI - mpi4py
22
33on : [pull_request]
44
55jobs :
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