forked from Sandia-OpenSHMEM/SOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
296 lines (290 loc) · 11.8 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
sudo: required
language: c
compiler:
#- clang
- gcc
- icc
env:
global:
- TRAVIS_PAR_MAKE="-j 4"
- SOS_GLOBAL_BUILD_OPTS="--enable-picky --enable-pmi-simple FCFLAGS=-fcray-pointer"
- PTL_IFACE_NAME=venet0
- FI_LOG_LEVEL=warn
- SHMEM_OFI_USE_PROVIDER=sockets
- SMA_INFO=1
## An encrypted value for INTEL_SERIAL_NUMBER:
- secure: "luxfwDy26Pva+A58T/vPP7+Zek4rBEbpB2TpdXuLdIu/MJ2laoUkaZj/ouT6YgdSxUoiyLUlGIzLnByxnrVgWqYELsWHiV9hzsXZCNfgQDdUHV8UITCqSYVcd5WGNoVdC0QohKuIj47y6bP5ttcv1sIfpV74ztPJZE1dbb2QzgvWcIKWN8Abj55364ZnIidW7ErYLrAiKlBzSxZXCKiKD6qOUbpOBN8yuzaX9diXYJViest7iBC+BfwzXO8Shuouh6QrQhJ1T4oG6u6YJn17fnOwXKJCdkeQYr/E8ka4JRf8vZm7CNO1YdwNhtGtFNEzTJaP2XFLAQGCB9vffCxcqRbpWv+lpsFRsH+eiF/zp/xKGr5qzB9sPUxNANJyhphXK0VfIqDan7nz9di99NFBEF94Jl33E+KODTCAeHb6+a7yboR5B4BalM4jXKrcn/2A4pYrk45YF5IdLLOEvzTaOyVSgHoNIzXRZvHEL2AeYuvz5qLukzMB+QClbA1EeCBNyokuXK/TemeTvveXpQpCaVKNQ8zp/v30u8eiaV8R/dFa2evlJ6kwSaeXlXpXifeXd5Px0x6HF4FT9HLOtPVQ3rZXyfL2Eh92egu15GiTqMNkdVlVGUC20+iddLjtbPqRnVw0WnZkekh62A6rGuT4cTfAbZ2GVPD+IMqzokO1IGg="
matrix:
- # Defaults
- SOS_BUILD_OPTS="--disable-mr-scalable --enable-av-map --disable-cxx"
- >
SOS_DISABLE_FORTRAN=1
SOS_BUILD_OPTS="--disable-fortran --enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SOS_BUILD_OPTS="--enable-threads --enable-error-checking"
- >
SOS_ENABLE_ERROR_TESTS=1
SOS_BUILD_OPTS="--with-cma --enable-error-checking --enable-profiling --disable-mr-scalable --enable-av-map --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_SYMMETRIC_HEAP_USE_HUGE_PAGES=1 SMA_BOUNCE_SIZE=0
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_BARRIER_ALGORITHM=auto SMA_BCAST_ALGORITHM=auto SMA_REDUCE_ALGORITHM=auto SMA_COLLECT_ALGORITHM=auto SMA_FCOLLECT_ALGORITHM=auto
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_BARRIER_ALGORITHM=linear SMA_BCAST_ALGORITHM=linear SMA_REDUCE_ALGORITHM=linear SMA_COLLECT_ALGORITHM=linear SMA_FCOLLECT_ALGORITHM=linear
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_BARRIER_ALGORITHM=tree SMA_BCAST_ALGORITHM=tree SMA_REDUCE_ALGORITHM=tree
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_BARRIER_ALGORITHM=dissem SMA_REDUCE_ALGORITHM=recdbl SMA_FCOLLECT_ALGORITHM=recdbl
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
- >
SOS_ENABLE_ERROR_TESTS=1
SMA_FCOLLECT_ALGORITHM=ring
SOS_BUILD_OPTS="--enable-error-checking --enable-remote-virtual-addressing"
os:
- linux
addons:
apt:
packages:
- gfortran
before_install:
## Set up the environment
- mkdir $HOME/travis
- mkdir $HOME/travis/src
- mkdir $HOME/travis/install
- export SOS_SRC=$PWD
- export TRAVIS_SRC=$HOME/travis/src
- export TRAVIS_INSTALL=$HOME/travis/install
## Disable security protection so CMA will work
- sudo sysctl -w kernel.yama.ptrace_scope=0
## Run the icc installation script:
- >
if [ "$CC" = "icc" ]; then
if [ "$TRAVIS_REPO_SLUG" = "Sandia-OpenSHMEM/SOS" -a \
"$TRAVIS_PULL_REQUEST" = "false" ]; then
./scripts/install-icc.sh --components icc,ifort
source ~/.bashrc
else
echo "Cannot test Intel compiler on a fork. Exiting now."
exit 0
fi
fi
## Build libev
- cd $TRAVIS_SRC
- wget http://dist.schmorp.de/libev/Attic/libev-4.22.tar.gz
- tar -xzvf libev-4.22.tar.gz
- cd libev-4.22 && ./configure --prefix=$TRAVIS_INSTALL/libev && make && make install
## Build Portals 4
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/regrant/portals4.git portals4
- cd portals4
- ./autogen.sh
- ./configure --prefix=$TRAVIS_INSTALL/portals4/ --with-ev=$TRAVIS_INSTALL/libev --enable-zero-mrs --enable-reliable-udp --disable-pmi-from-portals
# JSD: --enable-transport-shmem removed; it was causing tests to hang
- make $TRAVIS_PAR_MAKE
- make install
## Build libfabric
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/ofiwg/libfabric.git libfabric
- cd libfabric
- ./autogen.sh
- ./configure --prefix=$TRAVIS_INSTALL/libfabric
- make $TRAVIS_PAR_MAKE
- make install
## Build Hydra
- cd $TRAVIS_SRC
- wget http://www.mpich.org/static/downloads/3.2/hydra-3.2.tar.gz
- tar xvzf hydra-3.2.tar.gz
- cd hydra-3.2/
- ./configure --prefix=$TRAVIS_INSTALL/hydra
- make $TRAVIS_PAR_MAKE
- make install
## Fetch UH Tests
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/openshmem-org/tests-uh.git tests-uh
# Fetch Cray Tests
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/openshmem-org/tests-cray.git tests-cray
## Fetch ISx
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/ParRes/ISx.git ISx
## Fetch PRK
- cd $TRAVIS_SRC
- git clone --depth 10 https://github.com/ParRes/Kernels.git PRK
- echo -e "SHMEMCC=oshcc -std=c99\nSHMEMTOP=$$TRAVIS_INSTALL\n" > PRK/common/make.defs
install:
- cd $SOS_SRC
- ./autogen.sh
script:
- export BASE_PATH=$PATH
###
### Build without transport
###
- cd $SOS_SRC
- mkdir no-transport-build
- cd no-transport-build
- export PATH=$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- ../configure --prefix=$TRAVIS_INSTALL/sandia-shmem-none --without-ofi --without-portals4 $SOS_GLOBAL_BUILD_OPTS $SOS_BUILD_OPTS
- make $TRAVIS_PAR_MAKE
- make $TRAVIS_PAR_MAKE check TESTS=
- make install
###
### Build with only CMA
###
- cd $SOS_SRC
- mkdir cma-build
- cd cma-build
- export PATH=$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- ../configure --prefix=$TRAVIS_INSTALL/sandia-shmem-cma --with-cma $SOS_GLOBAL_BUILD_OPTS $SOS_BUILD_OPTS
- make $TRAVIS_PAR_MAKE
- make $TRAVIS_PAR_MAKE check TESTS=
- make install
###
### Build and check Portals
###
- cd $SOS_SRC
- mkdir portals4-build
- cd portals4-build
- export PATH=$TRAVIS_INSTALL/hydra/bin:$TRAVIS_INSTALL/portals4/bin:$BASE_PATH
- ../configure --with-portals4=$TRAVIS_INSTALL/portals4/ --prefix=$TRAVIS_INSTALL/sandia-shmem-portals4 $SOS_GLOBAL_BUILD_OPTS $SOS_BUILD_OPTS
- make $TRAVIS_PAR_MAKE
- make $TRAVIS_PAR_MAKE check TESTS=
#- make VERBOSE=1 TEST_RUNNER="mpiexec.hydra -np 2 timeout 10" check
- make install
###
### Build and check OFI
###
- cd $SOS_SRC
- mkdir ofi-build
- cd ofi-build
- export PATH=$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- ../configure --with-ofi=$TRAVIS_INSTALL/libfabric/ --prefix=$TRAVIS_INSTALL/sandia-shmem-ofi $SOS_GLOBAL_BUILD_OPTS $SOS_BUILD_OPTS
- make $TRAVIS_PAR_MAKE
- make $TRAVIS_PAR_MAKE check TESTS=
- make VERBOSE=1 TEST_RUNNER="mpiexec.hydra -np 2" check
- make install
###
### Run the UH test suite (Portals)
###
- export PATH=$TRAVIS_INSTALL/portals4/bin:$TRAVIS_INSTALL/sandia-shmem-portals4/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/tests-uh
- make $TRAVIS_PAR_MAKE C_feature_tests
#- make C_feature_tests-run 2>&1 | tee uh-tests-c-feature-tests.log
# Check for failures in the C tests
#- if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-c-feature-tests.log; then false; else true; fi
- >
if [ -z "$SOS_DISABLE_FORTRAN" ]; then
make F_feature_tests;
if false && [ $? -eq 0 ]; then
make F_feature_tests-run 2>&1 | tee uh-tests-f-feature-tests.log;
# Check for failures in the Fortran tests
if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-f-feature-tests.log; then false; else true; fi;
fi;
fi
- >
if [ -z "$SOS_DISABLE_FORTRAN" ]; then
make F_error_tests;
if false && [ $? -eq 0 -a $SOS_ENABLE_ERROR_TESTS ]; then
make F_error_tests-run 2>&1 | tee uh-tests-f-error-tests.log;
# Check for failures in the Fortran tests
if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-f-error-tests.log; then false; else true; fi;
fi;
fi
- make clean
###
### Run the UH test suite (OFI)
###
- export PATH=$TRAVIS_INSTALL/sandia-shmem-ofi/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/tests-uh
- make $TRAVIS_PAR_MAKE C_feature_tests
- make C_feature_tests-run 2>&1 | tee uh-tests-c-feature-tests.log
# Check for failures in the C tests
- if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-c-feature-tests.log; then false; else true; fi
- >
if [ -z "$SOS_DISABLE_FORTRAN" ]; then
make F_feature_tests;
if [ $? -eq 0 ]; then
make F_feature_tests-run 2>&1 | tee uh-tests-f-feature-tests.log;
# Check for failures in the Fortran tests
if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-f-feature-tests.log; then false; else true; fi;
fi;
fi
- >
if [ -z "$SOS_DISABLE_FORTRAN" ]; then
make F_error_tests;
if [ $? -eq 0 -a $SOS_ENABLE_ERROR_TESTS ]; then
make F_error_tests-run 2>&1 | tee uh-tests-f-error-tests.log;
# Check for failures in the Fortran tests
if grep "^(test_[0-9]\+) Running.*Failed$" uh-tests-f-error-tests.log; then false; else true; fi;
fi;
fi
- make clean
###
### Run the Cray test suite (OFI)
###
- export CUSTOM_SHMEM_DIR=$TRAVIS_INSTALL/sandia-shmem-ofi
- export PATH=$CUSTOM_SHMEM_DIR/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export CRAY_TESTS_DIR=$TRAVIS_SRC/tests-cray
- $SOS_SRC/scripts/cray_tests.sh
###
### Run ISx (Portals)
###
- export PATH=$TRAVIS_INSTALL/portals4/bin:$TRAVIS_INSTALL/sandia-shmem-portals4/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/ISx/SHMEM
- make CC=oshcc LDLIBS=-lm
- make clean
###
### Run ISx (OFI)
###
- export PATH=$TRAVIS_INSTALL/sandia-shmem-ofi/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/ISx/SHMEM
- make CC=oshcc LDLIBS=-lm
- oshrun -np 4 ./bin/isx.strong 134217728 output_strong
- oshrun -np 4 ./bin/isx.weak 33554432 output_weak
- oshrun -np 4 ./bin/isx.weak_iso 33554432 output_weak_iso
- make clean
###
### Run PRK (Portals)
###
- export PATH=$TRAVIS_INSTALL/portals4/bin:$TRAVIS_INSTALL/sandia-shmem-portals4/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/PRK
- make allshmem
- make clean
###
### Run PRK (OFI)
###
- export PATH=$TRAVIS_INSTALL/sandia-shmem-ofi/bin:$TRAVIS_INSTALL/hydra/bin:$BASE_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $TRAVIS_SRC/PRK
- make allshmem
- oshrun -np 4 ./SHMEM/Stencil/stencil 100 1000
- oshrun -np 4 ./SHMEM/Synch_p2p/p2p 10 1000 1000
- oshrun -np 4 ./SHMEM/Transpose/transpose 10 1000
- make clean
after_script:
- >
if [ "$CC" = "icc" ]; then
'[[ ! -z "${INTEL_INSTALL_PATH}" ]] && uninstall_intel_software'
fi
notifications:
email:
recipients:
- regrant@sandia.gov
- james.dinan@intel.com
- kayla.seager@intel.com
on_success: [change]
on_failure: [always]