forked from openPMD/openPMD-api
-
Notifications
You must be signed in to change notification settings - Fork 1
263 lines (242 loc) · 10.2 KB
/
unix.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
name: unix
on: [push, pull_request]
jobs:
clangtidy10_nopy_ompi_h5_ad1_ad2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Spack Cache
uses: actions/cache@v2
with: {path: /opt/spack, key: clangtidy10_nopy_ompi_h5_ad1_ad2 }
- name: Install
run: |
sudo apt-get install clang clang-tidy gfortran libopenmpi-dev python
sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang, CXX: clang++, CXXFLAGS: -Wno-deprecated-declarations}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/clangtidy_nopy_ompi_h5_ad1_ad2/)
spack install
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);-system-headers=0" -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2 2> clang-tidy.log
cat clang-tidy.log
if [[ $(wc -m <clang-tidy.log) -gt 1 ]]; then exit 1; fi
clang5_nopy_nompi_h5:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Spack Cache
uses: actions/cache@v2
with: {path: /opt/spack, key: clang5_nopy_nompi_h5 }
- name: Install
run: |
sudo apt-get install clang-5.0
sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang-5.0, CXX: clang++-5.0, CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/clang5_nopy_nompi_h5/)
spack install
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=OFF -DopenPMD_USE_MPI=OFF -DopenPMD_USE_HDF5=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
ctest --output-on-failure
clang5_nopy_ompi_h5_ad1_ad2_bp3:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Spack Cache
uses: actions/cache@v2
with: {path: /opt/spack, key: clang5_nopy_ompi_h5_ad1_ad2_bp3 }
- name: Install
run: |
sudo apt-get install clang-5.0 gfortran libopenmpi-dev python3
sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang-5.0, CXX: clang++-5.0, CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/clang5_nopy_ompi_h5_ad1_ad2_bp3/)
spack install
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=OFF -DopenPMD_USE_MPI=ON -DopenPMD_USE_HDF5=ON -DopenPMD_USE_ADIOS1=ON -DopenPMD_USE_ADIOS2=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
ctest --output-on-failure
find . -name *.bp | xargs -n1 -P1 -I {} rm -rf {}
find . -name *.bp.dir | xargs -n1 -P1 -I {} rm -rf {}
export OPENPMD_BP_BACKEND=ADIOS1
ctest --output-on-failure
clang5_nopy_ompi_h5_ad2_newLayout:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Spack Cache
uses: actions/cache@v2
with: {path: /opt/spack, key: clang5_nopy_ompi_h5_ad1_ad2_bp3 }
- name: Install
run: |
sudo apt-get install clang-5.0 gfortran libopenmpi-dev python3
sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang-5.0, CXX: clang++-5.0, CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/clang5_nopy_ompi_h5_ad1_ad2_bp3/)
spack install
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=OFF -DopenPMD_USE_MPI=ON -DopenPMD_USE_HDF5=ON -DopenPMD_USE_ADIOS1=OFF -DopenPMD_USE_ADIOS2=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
export OPENPMD_NEW_ATTRIBUTE_LAYOUT=1
ctest --output-on-failure
# TODO
# clang6_py36_nompi_h5_ad1_ad2_libcpp
clang10_py38_nompi_h5_ad1_ad2_libcpp:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo apt-get install clang-10 libc++-dev libc++abi-dev libhdf5-dev python3
python3 -m pip install -U pip
python3 -m pip install -U numpy
# TODO ADIOS1 ADIOS2
- name: Build
env: {CC: clang-10, CXX: clang++-10, CXXFLAGS: -Werror -Wno-deprecated-declarations}
# TODO
# , CXXFLAGS: -nostdinc++ -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10/, LDFLAGS: -stdlib=libc++ -lc++ -lc++abi}
run: |
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=ON -DopenPMD_USE_MPI=OFF -DopenPMD_USE_HDF5=ON -DopenPMD_USE_INVASIVE_TESTS=ON -DCMAKE_VERBOSE_MAKEFILE=ON
cmake --build . --parallel 2
ctest --output-on-failure
# TODO
# clang7_py37_ompi_h5_ad2_asan_ubsan_static
# clang8_py38_mpich_h5_ad1_ad2_h5coll
# clang10_py38_ompi_h5_1-10-6_ad1_ad2_release
# appleclang9_py37_nompi_h5_ad1
# appleclang10_py37_h5_ad2_libcpp
# appleclang11_nopy_nompi_h5_ad2
appleclang12_py_mpi_h5_ad2:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: |
rm -rf /usr/local/bin/2to3
brew update
brew install adios2 || true
brew install hdf5-mpi || true
brew install python || true
- name: Build
env: {CXXFLAGS: -Werror -Wno-deprecated-declarations, MACOSX_DEPLOYMENT_TARGET: 10.9}
# C++11 & 14 support in macOS 10.9+
# C++17 support in macOS 10.13+/10.14+
# https://cibuildwheel.readthedocs.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
run: |
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=ON -DopenPMD_USE_MPI=ON -DopenPMD_USE_HDF5=ON -DopenPMD_USE_ADIOS2=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
ctest --output-on-failure
# TODO
# gcc-4.9.4_nopy_nompi_h5_ad1_ad2
# gcc-4.9.4_nopy_ompi_h5_ad1_ad2
# gcc-9.3.0_nopy_nompi_h5_ad1_ad2-2.6.0
# gcc-7.4.0_nopy_ompi_h5_ad1_h5coll
# gcc-6.5.0_py35_nompi_h5_ad1-1.13.1
# gcc-8.1.0_py37_nompi_h5_ad1_static
# gcc-6.5.0_py36_nompi_h5-1.8.13
# gcc-4.8.5_py35_nompi_h5
# gcc-7.4.0_py_ompi_h5_ad1_ad2_coveralls
gcc5_py36_pd_ompi_h5_ad1_ad2:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Spack Cache
uses: actions/cache@v2
with: {path: /opt/spack, key: gcc5_py36_ompi_h5_ad1_ad2 }
- name: Install
run: |
sudo apt-get install g++-5 gfortran libopenmpi-dev python3 python3-setuptools
sudo .github/workflows/dependencies/install_spack
python3 -m pip install -U pip
python3 -m pip install -U numpy
python3 -m pip install -U mpi4py
python3 -m pip install -U pandas
- name: Build
env: {CC: gcc-5, CXX: g++-5, CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/gcc5_py36_ompi_h5_ad1_ad2/)
spack install
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . -DopenPMD_USE_PYTHON=ON -DopenPMD_USE_MPI=ON -DopenPMD_USE_HDF5=ON -DopenPMD_USE_ADIOS1=ON -DopenPMD_USE_ADIOS2=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
ctest --output-on-failure
gcc9_py38_pd_nompi_h5_ad1_ad2_libcpp:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo apt-get install g++ libopenmpi-dev libhdf5-openmpi-dev libadios-dev python3 python3-numpy python3-mpi4py python3-pandas
# TODO ADIOS1 (.pc file broken?) ADIOS2
- name: Build
env: {CXXFLAGS: -Werror -Wno-deprecated-declarations, PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig}
run: |
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
find /usr -name adios.pc
cmake -S .. -B . -DopenPMD_USE_PYTHON=ON -DopenPMD_USE_MPI=ON -DopenPMD_USE_HDF5=ON -DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build . --parallel 2
ctest --output-on-failure
icc_cxxonly:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo .github/workflows/dependencies/install_icc
- name: Build
env: {CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
set +e; source /opt/intel/oneapi/setvars.sh; set -e
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . \
-DCMAKE_C_COMPILER=$(which icc) \
-DCMAKE_CXX_COMPILER=$(which icpc) \
-DopenPMD_USE_PYTHON=OFF \
-DopenPMD_USE_MPI=OFF
cmake --build . --parallel 2
ctest --output-on-failure
icx_cxxonly:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo .github/workflows/dependencies/install_icx
- name: Build
env: {CXXFLAGS: -Werror -Wno-deprecated-declarations}
run: |
set +e; source /opt/intel/oneapi/setvars.sh; set -e
mkdir build && cd build
../share/openPMD/download_samples.sh && chmod u-w samples/git-sample/*.h5
cmake -S .. -B . \
-DCMAKE_C_COMPILER=$(which icx) \
-DCMAKE_CXX_COMPILER=$(which icpx) \
-DopenPMD_USE_PYTHON=OFF \
-DopenPMD_USE_MPI=OFF \
-DCMAKE_C_COMPILER_ID="Clang" \
-DCMAKE_C_COMPILER_VERSION=12.0 \
-DCMAKE_C_STANDARD_COMPUTED_DEFAULT="11" \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="14"
cmake --build . --parallel 2
ctest --output-on-failure