Changeset 622 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Dec 10, 2010 8:08:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r592 r622 210 210 # 17/08/10 - BjornM - adjustments for interactive runs on lcxt4 211 211 # 07/09/10 - Siggi - bugfix for wrong netcdf/3.6.3 module on lcsgi 212 # 08/12/10 - Siggi - new handling of openmp/hybrid runs, option -O 213 # has now argument threads_per_task 214 # adjustments for Kyushu Univ. (lcrte, ibmku) 212 215 213 216 … … 290 293 read_from_config="" 291 294 restart_run=false 292 return_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 293 if [[ $return_addres = 130.75.105.158 ]] 294 then 295 return_addres=172.20.25.41 296 echo "+++ WARNING: return_addres changed to $return_addres !!!!!" 295 if [[ `hostname` = rte10 ]] 296 then 297 return_addres=133.5.185.60 298 echo "+++ WARNING: return_addres changed to $return_addres !!!!!" 299 else 300 return_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 297 301 fi 298 302 return_password="" … … 450 454 # SHELLSCRIPT-OPTIONEN EINLESEN UND KOMMANDO NEU ZUSAMMENSETZEN, FALLS ES 451 455 # FUER FOLGEJOBS BENOETIGT WIRD 452 while getopts :a:AbBc:Cd:D:Fg:G:h:H:i:IkK:m:M:n:o:O p:P:q:r:R:s:St:T:u:U:vxX:yY: option456 while getopts :a:AbBc:Cd:D:Fg:G:h:H:i:IkK:m:M:n:o:O:p:P:q:r:R:s:St:T:u:U:vxX:yY: option 453 457 do 454 458 case $option in … … 474 478 (n) node_usage=$OPTARG; mc="$mc -n$OPTARG";; 475 479 (o) output_list=$OPTARG; mc="$mc -o'$OPTARG'";; 476 (O) use_openmp=true; mc="$mc -O";;480 (O) use_openmp=true; threads_per_task=$OPTARG; mc="$mc -O$OPTARG";; 477 481 (p) package_list=$OPTARG; mc="$mc -p'$OPTARG'";; 478 482 (P) return_password=$OPTARG; mc="$mc -P$OPTARG";; … … 658 662 do_remote=true 659 663 case $host in 660 (ibm|ibm b|ibmh|ibms|ibmy|nech|necriam|lckyoto|lcsgib|lcsgih|lctit|unics|lcxt4|lcxt5m|lck) true;;664 (ibm|ibmh|ibmku|ibms|ibmy|nech|necriam|lckyoto|lcsgib|lcsgih|lctit|unics|lcxt4|lcxt5m|lck) true;; 661 665 (*) printf "\n" 662 666 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 835 839 do_remote=true 836 840 case $host in 837 (ibm|ibm s|ibmy|lckyoto|lcsgib|lcsgih|lctit|nech|necriam|unics|lcxt4|lcxt5m|lck) true;;841 (ibm|ibmh|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|lctit|nech|necriam|unics|lcxt4|lcxt5m|lck) true;; 838 842 (*) printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 839 843 printf "\n is not available" … … 1117 1121 do_remote=true 1118 1122 case $host in 1119 (ibm|ibm b|ibmh|ibms|ibmy|lckyoto|lcsgib|lcsgih|lctit|nech|necriam|unics|lcxt4|lcxt5m|lck) true;;1123 (ibm|ibmh|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|lctit|nech|necriam|unics|lcxt4|lcxt5m|lck) true;; 1120 1124 (*) printf "\n" 1121 1125 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 1146 1150 # DEFAULT-WERT SETZEN) UND OB SIE EIN GANZZAHLIGER TEILER DER 1147 1151 # GESAMTPROZESSORANZAHL IST 1148 if [[ $host = nech || $host = necriam || $host = ibmh || $host = ibm b || $host = ibms ]]1152 if [[ $host = nech || $host = necriam || $host = ibmh || $host = ibms ]] 1149 1153 then 1150 1154 [[ "$tasks_per_node" = "" ]] && tasks_per_node=6 … … 1181 1185 # FALLS OPENMP PARALLELISIERUNG VERWENDET WERDEN SOLL, ANZAHL VON THREADS 1182 1186 # SETZEN UND ZAHL DER TASKS PRO KNOTEN AUF 1 SETZEN 1183 if [[ $use_openmp = true ]]1184 then1185 threads_per_task=$tasks_per_node1186 tasks_per_node=11187 fi1187 # if [[ $use_openmp = true ]] 1188 # then 1189 # threads_per_task=$tasks_per_node 1190 # tasks_per_node=1 1191 # fi 1188 1192 1189 1193 # SETTINGS FOR SUBJOB-COMMAND 1190 if [[ $(echo $host | cut -c1-5) = lcsgi ]] 1191 then 1192 (( tp1 = tasks_per_node * threads_per_task )) 1193 TOPT="-T $tp1" 1194 else 1195 TOPT="-T $tasks_per_node" 1196 fi 1194 TOPT="-T $tasks_per_node" 1197 1195 OOPT="-O $threads_per_task" 1198 1196 … … 1267 1265 then 1268 1266 case $host in 1269 (ibmb) if [[ $node_usage = shared ]]1270 then1271 queue=cshare1272 else1273 queue=csolo1274 fi;;1275 1267 (ibmh) queue=no_class;; 1276 1268 (ibmy) queue=parallel;; … … 2020 2012 if [[ "$tmp_data_catalog" = "" ]] 2021 2013 then 2022 if [[ $localhost = ibmb ]] 2023 then 2024 tmp_data_catalog=$WORK/mrun_restart_data 2025 elif [[ $localhost = nech ]] 2014 if [[ $localhost = nech ]] 2026 2015 then 2027 2016 tmp_data_catalog=$WRKSHR/mrun_restart_data … … 2178 2167 printf "| $spalte1$spalte2 | \n" 2179 2168 fi 2180 if [[ $ threads_per_task != 1]]2169 if [[ $use_openmp = true ]] 2181 2170 then 2182 2171 spalte1="threads per task:"; spalte2="$threads_per_task" … … 3005 2994 then 3006 2995 dxladebug a.out 3007 elif [[ $localhost = ibm b || $localhost = ibmh ]]2996 elif [[ $localhost = ibmh ]] 3008 2997 then 3009 2998 … … 3087 3076 exit 3088 3077 fi 3078 3079 # end debug mode 3089 3080 else 3081 3082 # normal execution 3090 3083 if [[ -n $numprocs ]] 3091 3084 then … … 3135 3128 fi 3136 3129 else 3137 if [[ $localhost = ibm b || $localhost = ibmh || $localhost = ibms ]]3130 if [[ $localhost = ibmh || $localhost = ibms ]] 3138 3131 then 3139 3132 poe a.out -procs $numprocs -nodes 1 -rmpool 0 $ROPTS 3140 elif [[ $localhost = ibm y ]]3133 elif [[ $localhost = ibmku || $localhost = ibmy ]] 3141 3134 then 3142 3135 if [[ -f $hostfile ]] … … 3168 3161 echo "coupled_run $iia $iio" > runfile_atmos 3169 3162 fi 3170 ./a.out -procs $tasks_per_node $ROPTS < runfile_atmos 3163 if [[ $localhost = ibmy ]] 3164 then 3165 ./a.out -procs $tasks_per_node $ROPTS < runfile_atmos 3166 else 3167 poe ./a.out -procs $numprocs $ROPTS < runfile_atmos 3168 fi 3171 3169 3172 3170 else … … 3292 3290 export MPI_DSM_CPULIST="0,1,4,5,2,3,6,7:allhosts" 3293 3291 fi 3292 else 3293 unset MPI_DSM_CPULIST 3294 3294 fi 3295 3295 # MPI_IB_RAILS: use both IB rails on ICE2 … … 3304 3304 3305 3305 # next is test for openmp usage 3306 # mpiexec -n $ii -pernode ./a.out $ROPTS < runfile_atmos 3306 # echo "mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos" 3307 # mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos 3307 3308 elif [[ $( echo $mpilib | cut -c1-3 ) = mva ]] 3308 3309 then … … 3317 3318 # export MV2_CPU_MAPPING=0,1,4,5,2,3,6,7 3318 3319 # fi 3320 [[ $use_openmp = true ]] && unset MV2_CPU_MAPPING 3319 3321 echo "*** MV2_CPU_MAPPING=$MV2_CPU_MAPPING" 3320 if [[ $ threads_per_task != 1]]3322 if [[ $use_openmp = true ]] 3321 3323 then 3322 mpiexec -npernode 1./a.out $ROPTS < runfile_atmos3324 mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos 3323 3325 else 3324 3326 mpiexec -np $ii ./a.out $ROPTS < runfile_atmos … … 3636 3638 cst="/" 3637 3639 fi 3638 if [[ $localhost = ibmb || $localhost =nech ]]3640 if [[ $localhost = nech ]] 3639 3641 then 3640 3642 … … 3717 3719 if [[ $localhost != $fromhost ]] 3718 3720 then 3719 if [[ $localhost = ibmh || $localhost = ibmb || $localhost =nech ]]3721 if [[ $localhost = ibmh || $localhost = nech ]] 3720 3722 then 3721 3723 … … 4231 4233 then 4232 4234 4233 if [[ $localhost = lcsgih || $localhost = lcsgib || $localhost = nech || $localhost = ibm b || $localhost = ibmh|| $localhost = ibms || $localhost = lctit ]]4235 if [[ $localhost = lcsgih || $localhost = lcsgib || $localhost = nech || $localhost = ibmh || $localhost = ibmku || $localhost = ibms || $localhost = lctit ]] 4234 4236 then 4235 4237 echo "*** ssh will be used to initiate restart-runs!" … … 4348 4350 if [[ $use_openmp = true ]] 4349 4351 then 4350 mrun_com=${mrun_com}" -O" 4351 [[ "$tasks_per_node" != "" ]] && mrun_com=${mrun_com}" -T $threads_per_task" 4352 else 4353 [[ "$tasks_per_node" != "" ]] && mrun_com=${mrun_com}" -T $tasks_per_node" 4354 fi 4352 mrun_com=${mrun_com}" -O $threads_per_task" 4353 fi 4354 [[ "$tasks_per_node" != "" ]] && mrun_com=${mrun_com}" -T $tasks_per_node" 4355 4355 [[ $store_on_archive_system = true ]] && mrun_com=${mrun_com}" -A" 4356 4356 [[ $package_list != "" ]] && mrun_com=${mrun_com}" -p \"$package_list\""
Note: See TracChangeset
for help on using the changeset viewer.