New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 9851 for NEMO/branches – NEMO

Changeset 9851 for NEMO/branches


Ignore:
Timestamp:
2018-06-28T12:38:21+02:00 (6 years ago)
Author:
smasson
Message:

dev_r9759_HPC09_ESIWACE: update scripts for irene

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

    r9848 r9851  
    11#!/bin/bash 
    22set -u 
    3 set -xv 
     3#set -xv 
    44 
    5 resolution=$1 
     5resolution=${1:?"you must provide the resolution: 1 025 or 12"} 
     6 
    67machine=$( hostname | sed -e "s/[0-9]*//g" ) 
    78 
    89case $machine in  
    910    "beaufixlogin") ncore_node=40 ;; 
    10     "curie")   ncore_node=16 ;; 
     11    "curie")        ncore_node=16 ;; 
     12    "irene")        ncore_node=48 ;; 
    1113esac 
    1214 
     
    1416    16) 
    1517    case ${resolution} in 
    16    "1")list1="4*4 8*4 8*8 8*16 24*10 24*22 40*24 72*28 120*30 72*66" ;; 
    17    "025")list025="8*4 8*8 16*8 20*12 24*22 32*32 48*42 160*25 56*134 120*134 240*121" ;; 
    18    "12")list12="16*8 16*16 32*16 40*26 80*26 80*51 114*72 160*102 240*126" ;; 
     18   "1")  list="4*4 8*4 8*8 8*16 24*10 24*22 40*24 72*28 120*30 72*66" ;; 
     19   "025")list="8*4 8*8 16*8 20*12 24*22 32*32 48*42 160*25 56*134 120*134 240*121" ;; 
     20   "12") list="16*16 32*16 40*26 80*26 80*51 114*72 160*102 240*126" ;; 
    1921    esac 
    2022    ;; 
    2123    40) 
    2224    case ${resolution} in 
    23    "1")list1="8*5 8*10 16*10 20*16 20*30 40*33 60*42 120*42" ;; 
    24    "025")list025="8*5 10*8 16*10 20*16 20*32 40*32 60*42 80*67 180*64" ;; 
    25    "12")list12="40*31 60*42 80*63 160*75" ;; 
     25   "1")  list="8*5 8*10 10*16 20*16 20*30 40*33 60*42 120*42" ;; 
     26   "025")list="8*5 10*8 16*10 20*16 20*32 40*32 60*42 80*67 180*64" ;; 
     27   "12") list="40*31 60*42 80*63 160*75" ;; 
     28    esac 
     29    ;; 
     30    48) 
     31    case ${resolution} in 
     32   "1")  list="8*6 12*8 19*10 24*16 24*30 45*33 72*42" ;; 
     33   "025")list="8*6 12*8 16*12 24*16 24*32 48*32 48*64 96*64 480*25 144*173 720*39" ;; 
     34   "12") list="12*16 24*16 48*16 48*32 80*39 96*63 144*85 160*150 240*126" ;; 
    2635    esac 
    2736    ;; 
    2837esac 
    2938 
    30  
    31 # ORCA1 
    32 if [ ${resolution} == "1" ]; then 
    33 for cores in $list1 
     39for ii in $list 
    3440do 
    35   ./submit_bench $cores $ncore_node ${resolution} 
     41    echo "$ii = $ncore_node * $( echo "scale=3 ; $ii/${ncore_node}" | bc ) = $( echo $ii | bc )" 
    3642done 
    3743 
    38 # ORCA025 
    39 elif [ ${resolution} == "025" ]; then 
    40 for cores in $list025 
     44for cores in $list 
    4145do 
    42   ./submit_bench $cores $ncore_node ${resolution} 
     46    ./submit_bench $cores $ncore_node ${resolution} 
    4347done 
    4448 
    45 # ORCA12 
    46 elif [ ${resolution} == "12" ]; then 
    47 for cores in $list12 
    48 do 
    49   ./submit_bench $cores $ncore_node ${resolution} 
    50 done 
    51 fi 
  • NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/submit_bench

    r9848 r9851  
    1212resolution=$3 
    1313machine=$( hostname | sed -e "s/[0-9]*//g" ) 
    14 ###################################################################### 
    1514# 
    1615# number of processes for each executable 
     
    2120 
    2221nproc5=$( printf "%05d\n" ${nproc_exe1} ) 
     22 
     23###################################################################### 
     24### beaufixlogin 
     25###################################################################### 
    2326 
    2427if [ "$machine" == "beaufixlogin" ] 
     
    7982 
    8083 
    81 ###################################################################### 
    82 ### 
    8384### 4. Execute the model 
    8485 
     
    8990echo 'is executed or submitted to queue.' 
    9091 
    91 ###################################################################### 
    9292 
    9393fi 
    9494 
    95 if [ "$machine" == "curie" ] 
     95###################################################################### 
     96### curie or irene 
     97###################################################################### 
     98 
     99if [[ ( "$machine" == "curie" ) || ( "$machine" == "irene" ) ]] 
    96100then 
    97  
     101     
    98102    case ${resolution} in 
    99103   "1") 
     
    101105       then 
    102106      timejob=3600 
     107       elif [ $nproc_exe1 -lt 100 ] 
     108       then 
     109      timejob=1800 
     110       elif [ $nproc_exe1 -lt 200 ] 
     111       then 
     112      timejob=900 
    103113       else 
    104       timejob=1800 
     114      timejob=600 
    105115       fi 
    106    ;; 
     116       ;; 
    107117   "025") 
    108118       if [ $nproc_exe1 -lt 50 ] 
     
    115125       then 
    116126      timejob=3600 
     127       elif [ $nproc_exe1 -lt 400 ] 
     128       then 
     129      timejob=2000 
     130       elif [ $nproc_exe1 -lt 800 ] 
     131       then 
     132      timejob=1000 
    117133       else 
    118       timejob=1800 
     134      timejob=600 
    119135       fi 
    120    ;; 
     136       ;; 
    121137   "12") 
    122138       if [ $nproc_exe1 -lt 200 ] 
    123139       then 
    124       timejob=36000 
     140      timejob=30000 
    125141       elif [ $nproc_exe1 -lt 400 ] 
    126142       then 
    127       timejob=20000 
     143      timejob=15000 
    128144       elif [ $nproc_exe1 -lt 800 ] 
    129145       then 
    130       timejob=10000 
     146      timejob=8000 
    131147       elif [ $nproc_exe1 -lt 1600 ] 
    132148       then 
     
    134150       elif [ $nproc_exe1 -lt 3200 ] 
    135151       then 
    136       timejob=3600 
     152      timejob=2500 
    137153       else 
    138       timejob=1800 
     154      timejob=1200 
    139155       fi 
    140156   ;; 
    141157    esac 
    142158 
    143     
     159    [ "$machine" == "curie" ] && queuename=standard || queuename=skylake 
     160     
    144161    jobname=$HOME/binrun/jobbench 
    145162    cat > $jobname << EOF 
    146163#!/bin/bash 
    147 #MSUB -r jobbench${nproc5} 
     164#MSUB -r bench${nproc5} 
    148165#MSUB -n ${nproc_exe1} 
    149166#MSUB -T $timejob 
     
    152169#MSUB -j oe 
    153170#MSUB -x 
    154 #MSUB -q standard 
     171#MSUB -q ${queuename} 
    155172#MSUB -A gen6895 
    156173#========================================== 
Note: See TracChangeset for help on using the changeset viewer.