Changeset 759 for palm/trunk/SCRIPTS
- Timestamp:
- Sep 15, 2011 1:58:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r757 r759 215 215 # 14/12/10 - Siggi - adjustments for new Tsubame system at Tokyo 216 216 # institute of technology (lctit) 217 # 23/12/10 - Micha - different number of processors in ocean and atmosphere218 # is now allowed217 # 23/12/10 - Micha - different number of processors in ocean and 218 # atmosphere is now allowed 219 219 # 02/02/10 - Siggi - further adjustments on Tsubame and concerning openMP 220 220 # usage … … 225 225 # 06/04/11 - BjornM - bugfix for runs with mpt on lcsgi 226 226 # 17/08/11 - Siggi - extensions for impi library 227 # 18/08/11 - Siggi - bugfix for local append of output files with suffix (.nc) 227 # 18/08/11 - Siggi - bugfix for local append of output files with suffix 228 # (.nc) 228 229 # 18/08/11 - Marcus - support for Linux OS with German locale 229 # - properly report hosts on general Linux clusters 230 # - properly report hosts on general Linux clusters 230 231 # 29/08/11 - BjornW - adapted for lcflow (ForWind cluster in Oldenburg) 231 # 29/08/11 - Carolin- initiating restart-run: adjustment of the path at IMUK 232 # 29/08/11 - Carolin- initiating restart-run: adjustment of the path at 233 # IMUK 234 # 15/09/11 - Siggi - new option -w tp set the maximum number of parallel 235 # io streams, option -T is obligatory from now on 232 236 233 237 … … 287 291 mainprog="" 288 292 makefile="" 293 max_par_io_str="" 289 294 mc=$0 290 295 while [[ $(echo $mc | grep -c "/") != 0 ]] … … 474 479 # SHELLSCRIPT-OPTIONEN EINLESEN UND KOMMANDO NEU ZUSAMMENSETZEN, FALLS ES 475 480 # FUER FOLGEJOBS BENOETIGT WIRD 476 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:v xX:yY: option481 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:vw:xX:yY: option 477 482 do 478 483 case $option in … … 507 512 (S) read_from_config=false; mc="$mc -S";; 508 513 (t) cpumax=$OPTARG; mc="$mc -t$OPTARG";; 509 (T) tasks_per_node=$OPTARG; mc="$mc -T$OPTARG";;514 (T) mrun_tasks_per_node=$OPTARG; mc="$mc -T$OPTARG";; 510 515 (u) remote_username=$OPTARG; mc="$mc -u$OPTARG";; 511 516 (U) return_username=$OPTARG; mc="$mc -U$OPTARG";; 512 517 (v) silent=true; mc="$mc -v";; 518 (w) max_par_io_str=$OPTARG; mc="$mc -w$OPTARG";; 513 519 (x) do_trace=true;set -x; mc="$mc -x";; 514 520 (X) numprocs=$OPTARG; mc="$mc -X$OPTARG";; … … 567 573 printf "\n -u username on remote machine \"\" " 568 574 printf "\n -v no prompt for confirmation ---" 575 printf "\n -w maximum parallel io streams as given by -X" 569 576 printf "\n -x tracing of mrun for debug purposes ---" 570 577 printf "\n -X # of processors (on parallel machines) 1" … … 1036 1043 1037 1044 # OPTIONSWERTE UEBERSTEUERN KONFIGURATIONSDATEI 1038 [[ $mrun_memory != 0 ]] && memory=$mrun_memory1045 [[ $mrun_memory != 0 ]] && memory=$mrun_memory 1039 1046 [[ "$mrun_group_number" != "none" ]] && group_number=$mrun_group_number 1040 [[ $mrun_cpumax != 0 ]] && cpumax=$mrun_cpumax 1041 [[ "$mrun_numprocs" != "" ]] && numprocs=$mrun_numprocs 1047 [[ $mrun_cpumax != 0 ]] && cpumax=$mrun_cpumax 1048 [[ "$mrun_numprocs" != "" ]] && numprocs=$mrun_numprocs 1049 [[ "$max_par_io_str" != "" ]] && maximum_parallel_io_streams=$max_par_io_str 1050 [[ "$mrun_tasks_per_node" != "" ]] && tasks_per_node=$mrun_tasks_per_node 1042 1051 1043 1052 fi … … 1157 1166 # DEFAULT-WERT SETZEN) UND OB SIE EIN GANZZAHLIGER TEILER DER 1158 1167 # GESAMTPROZESSORANZAHL IST 1159 if [[ $host = nech || $host = necriam || $host = ibmh || $host = ibmkisti || $host = ibms ]] 1160 then 1161 [[ "$tasks_per_node" = "" ]] && tasks_per_node=6 1162 (( ival = $tasks_per_node )) 1163 (( pes = numprocs )) 1168 if [[ "$tasks_per_node" = "" ]] 1169 then 1170 printf "\n" 1171 printf "\n +++ option \"-T\" (tasks per node) is missing" 1172 printf "\n set -T option or define tasks_per_node in the config file" 1173 locat=tasks_per_node; (( iec = 0 )); exit 1174 fi 1175 (( ival = $tasks_per_node )) 1176 (( pes = numprocs )) 1164 1177 # if [[ $(echo $package_list | grep -c dvrp_graphics+1PE) = 1 ]] 1165 1178 # then 1166 1179 # (( pes = pes - 1 )) 1167 1180 # fi 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 fi 1181 (( ii = pes / ival )) 1182 if (( pes - ii * ival > 0 )) 1183 then 1184 printf "\n" 1185 printf "\n +++ tasks per node (option \"-T\") must be an integral" 1186 printf "\n divisor of the total number of processors (option \"-X\")" 1187 printf "\n values of this mrun-call: \"-T $tasks_per_node\" \"-X $numprocs\"" 1188 locat=tasks_per_node; (( iec = 0 )); exit 1189 fi 1190 1178 1191 1179 1192 # IBMY HAT NUR EINEN KNOTEN … … 1190 1203 fi 1191 1204 1192 # FALLS OPENMP PARALLELISIERUNG VERWENDET WERDEN SOLL, ANZAHL VON THREADS1193 # SETZEN UND ZAHL DER TASKS PRO KNOTEN AUF 1 SETZEN1194 # if [[ $use_openmp = true ]]1195 # then1196 # threads_per_task=$tasks_per_node1197 # tasks_per_node=11198 # fi1199 1205 1200 1206 # SETTINGS FOR SUBJOB-COMMAND … … 1263 1269 fi 1264 1270 1271 1272 # Set default value for the maximum number of parallel io streams 1273 if [[ "$maximum_parallel_io_streams" = "" ]] 1274 then 1275 maximum_parallel_io_streams=$numprocs 1276 fi 1265 1277 1266 1278 … … 2194 2206 then 2195 2207 spalte1="tasks per node:"; spalte2="$tasks_per_node (number of nodes: $nodes)" 2208 printf "| $spalte1$spalte2 | \n" 2209 fi 2210 if [[ $maximum_parallel_io_streams != $numprocs ]] 2211 then 2212 spalte1="max par io streams:"; spalte2="$maximum_parallel_io_streams" 2196 2213 printf "| $spalte1$spalte2 | \n" 2197 2214 fi … … 2996 3013 &envpar run_identifier = '$fname', host = '$localhost', 2997 3014 write_binary = '$write_binary', tasks_per_node = $tasks_per_node, 3015 maximum_parallel_io_streams = $maximum_parallel_io_streams, 2998 3016 maximum_cpu_time_allowed = ${cpumax}., 2999 3017 revision = '$global_revision', … … 4422 4440 mrun_com=${mrun_com}" -O $threads_per_task" 4423 4441 fi 4424 [[ "$tasks_per_node" != "" ]] && mrun_com=${mrun_com}" -T $tasks_per_node"4442 [[ "$tasks_per_node" != "" ]] && mrun_com=${mrun_com}" -T $tasks_per_node" 4425 4443 [[ $store_on_archive_system = true ]] && mrun_com=${mrun_com}" -A" 4426 4444 [[ $package_list != "" ]] && mrun_com=${mrun_com}" -p \"$package_list\"" … … 4430 4448 [[ "$ocean_file_appendix" = true ]] && mrun_com=${mrun_com}" -y" 4431 4449 [[ $run_coupled_model = true ]] && mrun_com=${mrun_com}" -Y \"$coupled_dist\"" 4450 [[ "$max_par_io_str" != "" ]] && mrun_com=${mrun_com}" -w $max_par_io_str" 4432 4451 if [[ $do_remote = true ]] 4433 4452 then
Note: See TracChangeset
for help on using the changeset viewer.