Changeset 9869
- Timestamp:
- 2018-07-03T18:25:56+02:00 (6 years ago)
- Location:
- NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/sh_bench
r9857 r9869 5 5 resolution=${1:?"you must provide the resolution: 1 025 or 12"} 6 6 mincore=${2:-1} # minimum number of core to be tested 7 maxcore=${3:-0} # maximum number of core to be tested 7 8 8 9 machine=$( hostname | sed -e "s/[0-9]*//g" ) … … 22 23 list="" 23 24 25 # Prepare gnuplot data file 26 dateref=$( date "+%Y%m%d-%Hh%Mm%Ss" ) 27 echo "# nb_proc jpi jpj" > gnuplot_tbc_${resolution}_${dateref}.dat 24 28 nbl=$( cat best_jpni_jpnj_eorca${resolution} | wc -l ) 25 29 for ll in $( seq 1 $nbl ) … … 27 31 line=$( sed -n ${ll}p best_jpni_jpnj_eorca${resolution} ) # for each line 28 32 nn=$( echo $line | sed -e "s/.*nb_cores \([0-9]*\).*/\1/" ) # get the number of core 29 if [ $(( $nn % $ncore_node )) -eq 0 ] # if it is a multiple of $ncore_node 30 then 31 if [ $nn -lt $targetnb ] 32 then 33 n1=$nn # store the number of core 34 line1=$line # store the line 35 else 36 [ $(( $targetnb - $n1 )) -le $(( $nn -$targetnb )) ] && line=$line1 # keep the previous line 37 echo $line 38 nb=$( echo $line | sed -e "s/[^(]*( \([0-9]*\) x \([0-9]*\) .*/\1*\2/" ) # get jpni*jpnj 39 list="${list} ${nb}" 40 targetnb=$(( $targetnb * 2 )) 41 fi 42 fi 33 [ $maxcore -gt 1 -a $nn -gt $maxcore ] && break # if below $maxcore (if specified) 34 if [ $(( $nn % $ncore_node )) -eq 0 ] # if it is a multiple of $ncore_node 35 then 36 if [ $nn -lt $targetnb ] 37 then 38 n1=$nn # store the number of core 39 line1=$line # store the line 40 else 41 [ $(( $targetnb - $n1 )) -le $(( $nn -$targetnb )) ] && line=$line1 # keep the previous line 42 echo $line 43 nb=$( echo $line | sed -e "s/[^(]*( \([0-9]*\) x \([0-9]*\) .*/\1*\2/" ) # get jpni*jpnj 44 list="${list} ${nb}" 45 targetnb=$(( $targetnb * 2 )) 46 subsize=$( echo $line | awk {'printf "%d %d", $11, $13'}) 47 corenb=$( echo $line | awk {'printf "%d", $2'}) 48 echo "$corenb $subsize" >> gnuplot_tbc_${resolution}.dat 49 fi 50 fi 43 51 done 44 52 echo $list … … 46 54 for cores in $list 47 55 do 48 ./submit_bench $cores $ncore_node ${resolution} 56 ./submit_bench $cores $ncore_node ${resolution} ${dateref} 49 57 done 50 58 -
NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/submit_bench
r9851 r9869 11 11 ncore_node=$2 12 12 resolution=$3 13 dateref=$4 13 14 machine=$( hostname | sed -e "s/[0-9]*//g" ) 14 15 # … … 177 178 cd \${BRIDGE_MSUB_PWD}/.. 178 179 179 rsync -av --exclude="*eo" EXPREF/ EXP_${resolution}_${nproc5}/ 180 rsync -av EXP00/nemo EXP_${resolution}_${nproc5}/nemo 181 cd EXP_${resolution}_${nproc5}/ 180 181 EXPjob=EXP_${resolution}_${nproc5}_${dateref} 182 rsync -av --exclude="*eo" EXPREF/ ${EXPjob}/ 183 rsync -av EXP00/nemo ${EXPjob}/nemo 184 cd ${EXPjob} 182 185 183 186 jpni=${cores/\**/} … … 186 189 sed -e "s/jpni *=.*/jpni = \${jpni}/" -e "s/jpnj *=.*/jpnj = \${jpnj}/" namelist_cfg_orca${resolution}_like > namelist_cfg 187 190 188 time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo > jobout_${resolution}_${nproc5} 191 time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo > jobout_${resolution}_${nproc5}_${dateref} 189 192 190 193 EOF
Note: See TracChangeset
for help on using the changeset viewer.