6
6
mpi4py :
7
7
runs-on : ubuntu-latest
8
8
timeout-minutes : 60
9
+
9
10
steps :
11
+
10
12
- name : Configure hostname
11
13
run : echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null
12
14
if : ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
13
-
15
+
14
16
- name : Install depencencies
15
17
run : sudo apt-get install -y -q
16
18
libnuma-dev
17
-
19
+ if : ${{ runner.os == 'Linux' }}
20
+
18
21
- name : Checkout Open MPI
19
22
uses : actions/checkout@v4
20
23
with :
@@ -26,19 +29,18 @@ jobs:
26
29
working-directory : mpi-build
27
30
28
31
- name : Configure Open MPI
29
- run : ./configure
32
+ run : ./configure
30
33
--disable-dependency-tracking
34
+ --enable-debug
35
+ --enable-mem-debug
31
36
--disable-sphinx
32
- --disable-man-pages
33
37
--disable-mpi-fortran
34
38
--disable-oshmem
35
- --enable-debug
36
- --enable-mem-debug
37
39
LDFLAGS=-Wl,-rpath,/usr/local/lib
38
40
working-directory : mpi-build
39
41
40
42
- name : Build MPI
41
- run : make -j 2
43
+ run : make -j $(nproc)
42
44
working-directory : mpi-build
43
45
44
46
- name : Install MPI
@@ -90,27 +92,29 @@ jobs:
90
92
- name : Test mpi4py (singleton)
91
93
run : python test/main.py -v
92
94
if : ${{ true }}
95
+ timeout-minutes : 10
93
96
- name : Test mpi4py (np=1)
94
97
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
+
113
117
- name : Test mpi4py.run
114
118
run : python demo/test-run/test_run.py -v
115
119
if : ${{ true }}
116
- timeout-minutes : 20
120
+ timeout-minutes : 10
0 commit comments