Changeset 9851
- Timestamp:
- 2018-06-28T12:38:21+02:00 (5 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
r9848 r9851 1 1 #!/bin/bash 2 2 set -u 3 set -xv3 #set -xv 4 4 5 resolution=$1 5 resolution=${1:?"you must provide the resolution: 1 025 or 12"} 6 6 7 machine=$( hostname | sed -e "s/[0-9]*//g" ) 7 8 8 9 case $machine in 9 10 "beaufixlogin") ncore_node=40 ;; 10 "curie") ncore_node=16 ;; 11 "curie") ncore_node=16 ;; 12 "irene") ncore_node=48 ;; 11 13 esac 12 14 … … 14 16 16) 15 17 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")list 025="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*816*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" ;; 19 21 esac 20 22 ;; 21 23 40) 22 24 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" ;; 26 35 esac 27 36 ;; 28 37 esac 29 38 30 31 # ORCA1 32 if [ ${resolution} == "1" ]; then 33 for cores in $list1 39 for ii in $list 34 40 do 35 ./submit_bench $cores $ncore_node ${resolution}41 echo "$ii = $ncore_node * $( echo "scale=3 ; $ii/${ncore_node}" | bc ) = $( echo $ii | bc )" 36 42 done 37 43 38 # ORCA025 39 elif [ ${resolution} == "025" ]; then 40 for cores in $list025 44 for cores in $list 41 45 do 42 ./submit_bench $cores $ncore_node ${resolution}46 ./submit_bench $cores $ncore_node ${resolution} 43 47 done 44 48 45 # ORCA1246 elif [ ${resolution} == "12" ]; then47 for cores in $list1248 do49 ./submit_bench $cores $ncore_node ${resolution}50 done51 fi -
NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/submit_bench
r9848 r9851 12 12 resolution=$3 13 13 machine=$( hostname | sed -e "s/[0-9]*//g" ) 14 ######################################################################15 14 # 16 15 # number of processes for each executable … … 21 20 22 21 nproc5=$( printf "%05d\n" ${nproc_exe1} ) 22 23 ###################################################################### 24 ### beaufixlogin 25 ###################################################################### 23 26 24 27 if [ "$machine" == "beaufixlogin" ] … … 79 82 80 83 81 ######################################################################82 ###83 84 ### 4. Execute the model 84 85 … … 89 90 echo 'is executed or submitted to queue.' 90 91 91 ######################################################################92 92 93 93 fi 94 94 95 if [ "$machine" == "curie" ] 95 ###################################################################### 96 ### curie or irene 97 ###################################################################### 98 99 if [[ ( "$machine" == "curie" ) || ( "$machine" == "irene" ) ]] 96 100 then 97 101 98 102 case ${resolution} in 99 103 "1") … … 101 105 then 102 106 timejob=3600 107 elif [ $nproc_exe1 -lt 100 ] 108 then 109 timejob=1800 110 elif [ $nproc_exe1 -lt 200 ] 111 then 112 timejob=900 103 113 else 104 timejob= 1800114 timejob=600 105 115 fi 106 ;;116 ;; 107 117 "025") 108 118 if [ $nproc_exe1 -lt 50 ] … … 115 125 then 116 126 timejob=3600 127 elif [ $nproc_exe1 -lt 400 ] 128 then 129 timejob=2000 130 elif [ $nproc_exe1 -lt 800 ] 131 then 132 timejob=1000 117 133 else 118 timejob= 1800134 timejob=600 119 135 fi 120 ;;136 ;; 121 137 "12") 122 138 if [ $nproc_exe1 -lt 200 ] 123 139 then 124 timejob=3 6000140 timejob=30000 125 141 elif [ $nproc_exe1 -lt 400 ] 126 142 then 127 timejob= 20000143 timejob=15000 128 144 elif [ $nproc_exe1 -lt 800 ] 129 145 then 130 timejob= 10000146 timejob=8000 131 147 elif [ $nproc_exe1 -lt 1600 ] 132 148 then … … 134 150 elif [ $nproc_exe1 -lt 3200 ] 135 151 then 136 timejob= 3600152 timejob=2500 137 153 else 138 timejob=1 800154 timejob=1200 139 155 fi 140 156 ;; 141 157 esac 142 158 143 159 [ "$machine" == "curie" ] && queuename=standard || queuename=skylake 160 144 161 jobname=$HOME/binrun/jobbench 145 162 cat > $jobname << EOF 146 163 #!/bin/bash 147 #MSUB -r jobbench${nproc5}164 #MSUB -r bench${nproc5} 148 165 #MSUB -n ${nproc_exe1} 149 166 #MSUB -T $timejob … … 152 169 #MSUB -j oe 153 170 #MSUB -x 154 #MSUB -q standard171 #MSUB -q ${queuename} 155 172 #MSUB -A gen6895 156 173 #==========================================
Note: See TracChangeset
for help on using the changeset viewer.