-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
216 lines (209 loc) · 7.77 KB
/
.gitlab-ci.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
stages:
- build-stage-1
- build-stage-2
- build-stage-3
- build-stage-4
- tests
variables:
ANL_THETA_PROJECT_SERVICE_USER: "exaio"
# Setting up environment
before_script:
- export TOPDIR=$PWD
- export SDK_DIR=$TOPDIR/soft
- export EXAHDF5_ROOT=$TOPDIR
- export SDK_DIR=$EXAHDF5_ROOT/soft/
- mkdir -p $SDK_DIR
- export HDF5_ROOT=$SDK_DIR/hdf5/
- mkdir -p $HDF5_ROOT
- export HDF5_HOME=$HDF5_ROOT
- export HDF5_DIR=$HDF5_ROOT
- export HDF5_VOL_DIR=$SDK_DIR/hdf5/vol/
- mkdir -p $HDF5_VOL_DIR
- mkdir -p $HDF5_VOL_DIR/lib/
- mkdir -p $HDF5_VOL_DIR/include/
- mkdir -p $HDF5_VOL_DIR/bin
- export ABT_DIR=$SDK_DIR/argobots/
- mkdir -p $ABT_DIR
- export PATH=$EXAHDF5_ROOT/soft/h5bench/bin:$HDF5_VOL_DIR/bin/:$PATH
- export LD_LIBRARY_PATH=$ABT_DIR/lib:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$HDF5_ROOT/lib:$HDF5_VOL_DIR/lib:$LD_LIBRARY_PATH
- export HDF5_PLUGIN_PATH=$HDF5_VOL_DIR/lib
- export HDF5_VOL_CONNECTOR="cache_ext config=conf1.dat;under_vol=512;under_info={under_vol=0;under_info={}}"
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HDF5_PLUGIN_PATH
build-hdf5:
stage: build-stage-1
tags: [shell, ecp-theta, anl]
script:
- git clone -b develop https://github.com/HDFGroup/hdf5.git
- cd hdf5
- ./autogen.sh
- ./configure --prefix=$HDF5_DIR --enable-parallel --enable-threadsafe --enable-unsupported
- make -j8 && make install
- cd -
artifacts:
name: "hdf5"
paths:
- ./soft/hdf5
build-argobots:
stage: build-stage-1
tags: [shell, ecp-theta, anl]
script:
- git clone https://github.com/pmodels/argobots.git
- cd argobots
- ./autogen.sh
- ./configure --prefix=$ABT_DIR
- make && make install
- cd -
artifacts:
name: "argobots"
paths:
- ./soft/argobots
build-async-vol:
stage: build-stage-2
tags: [shell, ecp-theta, anl]
script:
- git clone https://github.com/hpc-io/vol-async.git
- mkdir -p vol-async/build
- cd vol-async/build
- cmake .. -DCMAKE_INSTALL_PREFIX=$HDF5_VOL_DIR
- make all install -j2
- cd -
dependencies:
- build-hdf5
- build-argobots
artifacts:
name: "async-vol"
paths:
- ./soft/hdf5/vol
build-cache-vol:
stage: build-stage-3
tags: [shell, ecp-theta, anl]
script:
- mkdir -p build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=$HDF5_VOL_DIR
- make all install -j2
- cd -
dependencies:
- build-async-vol
- build-hdf5
- build-argobots
artifacts:
name: "cache-vol"
paths:
- ./soft/hdf5/vol
build-h5bench:
stage: build-stage-4
tags: [shell, ecp-theta, anl]
script:
- git clone https://github.com/hpc-io/h5bench.git
- mkdir -p h5bench/build
- cd h5bench/build
- cmake .. -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=$SDK_DIR/h5bench -DWITH_CACHE_VOL:BOOL=ON -DWITH_ASYNC_VOL:BOOL=ON -DCMAKE_C_FLAGS="-I/$HDF5_VOL_DIR/include -L/$HDF5_VOL_DIR/lib -g"
- make all install VERBOSE=1
- cd -
dependencies:
- build-async-vol
- build-cache-vol
- build-hdf5
- build-argobots
artifacts:
name: "h5bench"
paths:
- ./soft/h5bench
test-cache-vol-login:
stage: tests
tags: [shell, ecp-theta, anl]
script:
- export DEBUG=2
- module unload nompirun
- printf "HDF5_CACHE_STORAGE_TYPE SSD\nHDF5_CACHE_STORAGE_PATH SSD\nHDF5_CACHE_STORAGE_SCOPE LOCAL\nHDF5_CACHE_STORAGE_SIZE 128755813888\nHDF5_CACHE_WRITE_BUFFER_SIZE 17179869184" > conf1.dat
- export opt=no
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_group.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_file.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- export opt=yes
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_group.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_file.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- export HDF5_VOL_CONNECTOR="cache_ext config=conf2.dat;under_vol=512;under_info={under_vol=0;under_info={}}"
- printf "HDF5_CACHE_STORAGE_TYPE SSD\nHDF5_CACHE_STORAGE_PATH SSD\nHDF5_CACHE_STORAGE_SCOPE GLOBAL\nHDF5_CACHE_STORAGE_SIZE 128755813888\nHDF5_CACHE_WRITE_BUFFER_SIZE 17179869184" > conf2.dat
- export opt=no
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_group.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_file.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- export opt=yes
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_group.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 test_file.exe
- HDF5_CACHE_WR=$opt mpirun -np 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- cd -
dependencies:
- build-hdf5
- build-async-vol
- build-cache-vol
- build-h5bench
- build-argobots
test-cache-vol-knl:
stage: tests
variables:
ANL_THETA_SCHEDULER_PARAMETERS: "-A CSC250STDM10 -n 1 -t 30 -q debug-flat-quad --attrs ssds=required:ssd_size=128:enable_ssh=1"
tags: [batch, ecp-theta, anl]
script:
- export HDF5_VOL_CONNECTOR="cache_ext config=conf2.dat;under_vol=512;under_info={under_vol=0;under_info={}}"
- export DEBUG=2
- module load intel
- module load cray-mpich-abi
- module load gcc
- export MPICH_MAX_THREAD_SAFETY="multiple"
- export LD_LIBRARY_PATH=/opt/cray/pe/mpt/7.7.14/gni/mpich-intel-abi/16.0/lib:$LD_LIBRARY_PATH
- printf "HDF5_CACHE_STORAGE_TYPE SSD\nHDF5_CACHE_STORAGE_PATH ./SSD/\nHDF5_CACHE_STORAGE_SCOPE GLOBAL\nHDF5_CACHE_STORAGE_SIZE 128755813888\nHDF5_CACHE_WRITE_BUFFER_SIZE 17179869184" > conf2.dat
- export opt=no
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_group.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_file.exe
- HDF5_CACHE_WR=$opt aprun -n 2 h5bench_write ./tests/test_h5bench.cfg test.h5
- rm test.h5
- export opt=yes
- mkdir -p SSD
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_group.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_file.exe
- HDF5_CACHE_WR=$opt aprun -n 2 h5bench_write ./tests/test_h5bench.cfg test.h5
- rm test.h5
- export HDF5_VOL_CONNECTOR="cache_ext config=conf1.dat;under_vol=512;under_info={under_vol=0;under_info={}}"
- printf "HDF5_CACHE_STORAGE_TYPE SSD\nHDF5_CACHE_STORAGE_PATH /local/scratch/\nHDF5_CACHE_STORAGE_SCOPE LOCAL\nHDF5_CACHE_STORAGE_SIZE 128755813888\nHDF5_CACHE_WRITE_BUFFER_SIZE 17179869184" > conf1.dat
- export opt=no
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_group.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_file.exe
- HDF5_CACHE_WR=$opt aprun -n 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- export opt=yes
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_dataset_async_api.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_group.exe
- HDF5_CACHE_WR=$opt aprun -n 2 test_file.exe
- HDF5_CACHE_WR=$opt aprun -n 2 h5bench_write ./tests/test_h5bench.cfg test_local.h5
- rm test_local.h5
- cd -
dependencies:
- build-hdf5
- build-async-vol
- build-cache-vol
- build-h5bench
- build-argobots