5
5
inputs :
6
6
mpi4py-git :
7
7
description : ' mpi4py git'
8
- default : mpi4py/mpi4py
9
- required : true
8
+ default : mpi4py/mpi4py
9
+ required : false
10
10
type : string
11
11
mpi4py-ref :
12
12
description : ' mpi4py ref'
13
- default : master
14
- required : true
13
+ default : ' '
14
+ required : false
15
15
type : string
16
16
workflow_dispatch :
17
17
inputs :
28
28
mpi4py-git :
29
29
description : ' mpi4py git'
30
30
default : mpi4py/mpi4py
31
- required : true
31
+ required : false
32
32
type : string
33
33
mpi4py-ref :
34
34
description : ' mpi4py ref'
35
- default : master
36
- required : true
35
+ default : ' '
36
+ required : false
37
37
type : string
38
38
push :
39
39
branches :
@@ -70,14 +70,16 @@ jobs:
70
70
libnuma-dev
71
71
72
72
- name : Checkout MPI
73
- uses : actions/checkout@v3
73
+ uses : actions/checkout@v4
74
74
with :
75
- repository : ${{ github.event.inputs.mpi-git || 'pmodels/mpich' }}
76
- ref : ${{ github.event.inputs.mpi-ref || 'main' }}
75
+ repository : ${{ inputs.mpi-git || 'pmodels/mpich' }}
76
+ ref : ${{ inputs.mpi-ref }}
77
+ path : mpi-build
77
78
submodules : recursive
78
79
79
80
- name : Bootstrap MPI
80
81
run : ./autogen.sh
82
+ working-directory : mpi-build
81
83
82
84
- name : Configure MPI
83
85
run : ./configure
@@ -91,12 +93,15 @@ jobs:
91
93
LDFLAGS=-Wl,-rpath,/usr/local/lib
92
94
$(test ${{ matrix.pm }} == gforker &&
93
95
echo --with-namepublisher=file)
96
+ working-directory : mpi-build
94
97
95
98
- name : Build MPI
96
99
run : make -j 2
100
+ working-directory : mpi-build
97
101
98
102
- name : Install MPI
99
103
run : sudo make install
104
+ working-directory : mpi-build
100
105
101
106
- name : Tweak MPI
102
107
run : |
@@ -124,52 +129,51 @@ jobs:
124
129
numpy cffi pyyaml
125
130
126
131
- name : Checkout mpi4py
127
- uses : actions/checkout@v3
132
+ uses : actions/checkout@v4
128
133
with :
129
- repository : ${{ github.event.inputs.mpi4py-git || 'mpi4py/mpi4py' }}
130
- ref : ${{ github.event.inputs.mpi4py-ref || 'master' }}
131
- path : mpi4py
134
+ repository : ${{ inputs.mpi4py-git || 'mpi4py/mpi4py' }}
135
+ ref : ${{ inputs.mpi4py-ref }}
132
136
133
137
- name : Install mpi4py
134
- run : python -m pip install ./mpi4py
138
+ run : python -m pip install .
135
139
env :
136
140
CFLAGS : " -O0"
137
141
138
142
- name : Test mpi4py (singleton)
139
- run : python mpi4py/ test/main.py -v
143
+ run : python test/main.py -v
140
144
if : ${{ true }}
141
145
- name : Test mpi4py (np=1)
142
- run : mpiexec -n 1 python mpi4py/ test/main.py -v
146
+ run : mpiexec -n 1 python test/main.py -v
143
147
- name : Test mpi4py (np=2)
144
- run : mpiexec -n 2 python mpi4py/ test/main.py -v -f
148
+ run : mpiexec -n 2 python test/main.py -v -f
145
149
- name : Test mpi4py (np=3)
146
- run : mpiexec -n 3 python mpi4py/ test/main.py -v -f
150
+ run : mpiexec -n 3 python test/main.py -v -f
147
151
if : ${{ matrix.device == 'ch3:sock' }}
148
152
timeout-minutes : 10
149
153
- name : Test mpi4py (np=5)
150
- run : mpiexec -n 5 python mpi4py/ test/main.py -v -f
154
+ run : mpiexec -n 5 python test/main.py -v -f
151
155
if : ${{ matrix.device == 'ch3:sock' }}
152
156
timeout-minutes : 20
153
157
154
158
- name : Test mpi4py.futures (singleton)
155
- run : python mpi4py/ demo/futures/test_futures.py -v
159
+ run : python demo/futures/test_futures.py -v
156
160
- name : Test mpi4py.futures (np=1)
157
- run : mpiexec -n 1 python mpi4py/ demo/futures/test_futures.py -v
161
+ run : mpiexec -n 1 python demo/futures/test_futures.py -v
158
162
- name : Test mpi4py.futures (np=2)
159
- run : mpiexec -n 2 python mpi4py/ demo/futures/test_futures.py -v
163
+ run : mpiexec -n 2 python demo/futures/test_futures.py -v
160
164
- name : Test mpi4py.futures (np=3)
161
- run : mpiexec -n 3 python mpi4py/ demo/futures/test_futures.py -v
165
+ run : mpiexec -n 3 python demo/futures/test_futures.py -v
162
166
163
167
- name : Test mpi4py.futures (np=1)
164
- run : mpiexec -n 1 python -m mpi4py.futures mpi4py/ demo/futures/test_futures.py -v
168
+ run : mpiexec -n 1 python -m mpi4py.futures demo/futures/test_futures.py -v
165
169
- name : Test mpi4py.futures (np=2)
166
- run : mpiexec -n 2 python -m mpi4py.futures mpi4py/ demo/futures/test_futures.py -v
170
+ run : mpiexec -n 2 python -m mpi4py.futures demo/futures/test_futures.py -v
167
171
- name : Test mpi4py.futures (np=3)
168
- run : mpiexec -n 3 python -m mpi4py.futures mpi4py/ demo/futures/test_futures.py -v
172
+ run : mpiexec -n 3 python -m mpi4py.futures demo/futures/test_futures.py -v
169
173
170
174
- name : Test mpi4py.run
171
- run : python mpi4py/ demo/test-run/test_run.py -v
175
+ run : python demo/test-run/test_run.py -v
172
176
- name : Test init-fini
173
- run : bash mpi4py/ demo/init-fini/run.sh
177
+ run : bash demo/init-fini/run.sh
174
178
- name : Test check-mpiexec
175
- run : bash mpi4py/ demo/check-mpiexec/run.sh
179
+ run : bash demo/check-mpiexec/run.sh
0 commit comments