Changeset 9869


Ignore:
Timestamp:
2018-07-03T18:25:56+02:00 (2 years ago)
Author:
smasson
Message:

dev_r9759_HPC09_ESIWACE: update bench jobs

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  
    55resolution=${1:?"you must provide the resolution: 1 025 or 12"} 
    66mincore=${2:-1} # minimum number of core to be tested 
     7maxcore=${3:-0} # maximum number of core to be tested 
    78 
    89machine=$( hostname | sed -e "s/[0-9]*//g" ) 
     
    2223list="" 
    2324 
     25# Prepare gnuplot data file 
     26dateref=$( date "+%Y%m%d-%Hh%Mm%Ss" ) 
     27echo "# nb_proc    jpi    jpj" > gnuplot_tbc_${resolution}_${dateref}.dat 
    2428nbl=$( cat best_jpni_jpnj_eorca${resolution} | wc -l ) 
    2529for ll in $( seq 1 $nbl ) 
     
    2731    line=$( sed -n ${ll}p best_jpni_jpnj_eorca${resolution} )    # for each line 
    2832    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 
    4351done 
    4452echo $list 
     
    4654for cores in $list 
    4755do 
    48     ./submit_bench $cores $ncore_node ${resolution} 
     56    ./submit_bench $cores $ncore_node ${resolution} ${dateref} 
    4957done 
    5058 
  • NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/submit_bench

    r9851 r9869  
    1111ncore_node=$2 
    1212resolution=$3 
     13dateref=$4 
    1314machine=$( hostname | sed -e "s/[0-9]*//g" ) 
    1415# 
     
    177178cd \${BRIDGE_MSUB_PWD}/.. 
    178179 
    179 rsync -av --exclude="*eo" EXPREF/ EXP_${resolution}_${nproc5}/ 
    180 rsync -av EXP00/nemo EXP_${resolution}_${nproc5}/nemo 
    181 cd EXP_${resolution}_${nproc5}/ 
     180 
     181EXPjob=EXP_${resolution}_${nproc5}_${dateref} 
     182rsync -av --exclude="*eo" EXPREF/ ${EXPjob}/ 
     183rsync -av EXP00/nemo ${EXPjob}/nemo 
     184cd ${EXPjob} 
    182185 
    183186jpni=${cores/\**/} 
     
    186189sed -e "s/jpni *=.*/jpni = \${jpni}/" -e "s/jpnj *=.*/jpnj = \${jpnj}/" namelist_cfg_orca${resolution}_like > namelist_cfg 
    187190 
    188 time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo > jobout_${resolution}_${nproc5} 
     191time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo > jobout_${resolution}_${nproc5}_${dateref} 
    189192 
    190193EOF 
Note: See TracChangeset for help on using the changeset viewer.