-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·248 lines (175 loc) · 8.21 KB
/
run.sh
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
#!/bin/bash
#COBALT -t 10
#COBALT -n 2
#COBALT --attrs mcdram=cache:numa=quad:ssds=required:ssd_size=16
#COBALT -A ecp-testbed-01
#COBALT -q debug-flat-quad
#COBALT -o btio_1_10.txt
#COBALT -e btio_1_10.err
export n_nodes=$COBALT_JOBSIZE
export n_mpi_ranks_per_node=${PPN}
export n_mpi_ranks=$(($n_nodes * $n_mpi_ranks_per_node))
export n_openmp_threads_per_rank=1
export n_hyperthreads_per_core=1
RUNS=(1) # Number of runs
OUTDIR=/projects/radix-io/khou/FS_56_8M/btio
BBDIR=/local/scratch
PPN=4
#PPN=64
#NN=${COBALT_JOBSIZE}
NN=1
let NP=NN*PPN
let SLEEPNN=${COBALT_JOBSIZE}-NN
TL=300
#EDGEL=sqrt(NP)*16
EDGEL=32
DIMX=${EDGEL}
DIMY=${EDGEL}
DIMZ=512
NITR=8 # 5 * 8 MiB /process
NODE_USED=$(aprun -q ./selnode ${NN} ${COBALT_PARTNAME})
echo "Nodes Available: ${COBALT_PARTNAME}"
echo "Nodes Used: ${NODE_USED}"
echo "mkdir -p ${OUTDIR}"
mkdir -p ${OUTDIR}
TSTARTTIME=`date +%s.%N`
for i in ${RUNS[@]}
do
# Ncmpio
echo "========================== NCMPI =========================="
>&2 echo "========================== NCMPI =========================="
echo "#%$: io_driver: ncmpi"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: blocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=2
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} ./btio
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
# Ncmpio NB
echo "========================== NCMPI NB =========================="
>&2 echo "========================== NCMPI NB =========================="
echo "#%$: io_driver: ncmpi"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: nonblocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=3
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} ./btio
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
# BB LPP P
echo "========================== BB LPP P ALL =========================="
>&2 echo "========================== BB LPP P ALL =========================="
echo "#%$: io_driver: bb_lpp_private"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: blocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=12
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} -e PNETCDF_HINTS="nc_burst_buf=enable;nc_burst_buf_del_on_close=disable;nc_burst_buf_overwrite=enable;nc_burst_buf_dirname=${BBDIR}" ./btio
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
# BB LPN S
echo "========================== BB LPN P =========================="
>&2 echo "========================== BB LPN P =========================="
echo "#%$: io_driver: bb_lpn_private"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: blocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=12
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} -e PNETCDF_HINTS="nc_burst_buf=enable;nc_burst_buf_del_on_close=disable;nc_burst_buf_shared_logs=enable;nc_burst_buf_overwrite=enable;nc_burst_buf_dirname=${BBDIR}" ./btio
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
# BB LPP P Itr
echo "========================== BB LPP P Itr =========================="
>&2 echo "========================== BB LPP P Itr =========================="
echo "#%$: io_driver: bb_lpp_private_itr"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: blocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=2
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} -e PNETCDF_HINTS="nc_burst_buf=enable;nc_burst_buf_del_on_close=disable;nc_burst_buf_overwrite=enable;nc_burst_buf_dirname=${BBDIR}" ./btio
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
# LogFS
echo "========================== Logfs =========================="
>&2 echo "========================== Logfs =========================="
echo "#%$: io_driver: logfs"
echo "#%$: number_of_nodes: ${NN}"
echo "#%$: number_of_proc: ${NP}"
echo "#%$: io_mode: blocking_coll"
echo "rm -f ${OUTDIR}/*"
rm -f ${OUTDIR}/*
let IO_METHOD=2
echo "m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=logfs:${OUTDIR} inputbt.m4 > inputbt.data"
m4 -D io_method=${IO_METHOD} -D n_itr=${NITR} -D dim_x=${DIMX} -D dim_y=${DIMY} -D dim_z=${DIMZ} -D out_dir=logfs:${OUTDIR} inputbt.m4 > inputbt.data
STARTTIME=`date +%s.%N`
aprun -n ${NP} -N ${PPN} -t ${TL} -L ${NODE_USED} -e PNETCDF_HINTS="logfs_replayonclose=true;logfs_info_logbase=${BBDIR}/;logfs_flushblocksize=268435456" ./btio_logfs
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $STARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "#%$: exe_time: $TIMEDIFF"
echo "ls -lah ${OUTDIR}"
ls -lah ${OUTDIR}
echo "lfs getstripe ${OUTDIR}"
lfs getstripe ${OUTDIR}
echo '-----+-----++------------+++++++++--+---'
done
ENDTIME=`date +%s.%N`
TIMEDIFF=`echo "$ENDTIME - $TSTARTTIME" | bc | awk -F"." '{print $1"."$2}'`
echo "-------------------------------------------------------------"
echo "total_exe_time: $TIMEDIFF"
echo "-------------------------------------------------------------"