- Timestamp:
- 2018-07-03T18:25:56+02:00 (6 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.