Changeset 693 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Mar 8, 2011 8:27:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r683 r693 219 219 # 02/02/10 - Siggi - further adjustments on Tsubame and concerning openMP 220 220 # usage 221 # 09/02/10 - Siggi - mpt bugfix for netCDF4 usage 221 # 09/02/10 - Siggi - adjustments for ibmkisti, mpt bugfix for netCDF4 222 # usage, totalview usage extended 222 223 223 224 … … 304 305 then 305 306 return_addres=133.5.185.60 306 echo "+++ WARNING: return_addres changed to $return_addres !!!!!" 307 echo "+++ WARNING: fixed return_addres = $return_addres is used !!!!!" 308 elif [[ `hostname` = climate0 ]] 309 then 310 return_addres=165.132.26.68 311 echo "+++ WARNING: fixed return_addres = $return_addres is used !!!!!" 307 312 else 308 313 return_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') … … 670 675 do_remote=true 671 676 case $host in 672 (ibm|ibmh|ibmk u|ibms|ibmy|nech|necriam|lckyoto|lcsgib|lcsgih|unics|lcxt4|lcxt5m|lck) true;;677 (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|nech|necriam|lckyoto|lcsgib|lcsgih|unics|lcxt4|lcxt5m|lck) true;; 673 678 (*) printf "\n" 674 679 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 834 839 do_remote=true 835 840 case $host in 836 (ibm|ibmh|ibmk u|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxt4|lcxt5m|lck) true;;841 (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxt4|lcxt5m|lck) true;; 837 842 (*) printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 838 843 printf "\n is not available" … … 1099 1104 # GLOBALE REVISIONSNUMMER ERMITTELN (FORTSETZUNGSLAEUFEN WIRD DIESE 1100 1105 # DURCH OPTION -G MITGETEILT) 1101 if [[ "$global_revision" = "" ]]1106 if [[ "$global_revision" = "" && $host != "ibmkisti" ]] 1102 1107 then 1103 1108 global_revision=`svnversion $source_path 2>/dev/null` … … 1116 1121 do_remote=true 1117 1122 case $host in 1118 (ibm|ibmh|ibmk u|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxt4|lcxt5m|lck) true;;1123 (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxt4|lcxt5m|lck) true;; 1119 1124 (*) printf "\n" 1120 1125 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 1145 1150 # DEFAULT-WERT SETZEN) UND OB SIE EIN GANZZAHLIGER TEILER DER 1146 1151 # GESAMTPROZESSORANZAHL IST 1147 if [[ $host = nech || $host = necriam || $host = ibmh || $host = ibm s ]]1152 if [[ $host = nech || $host = necriam || $host = ibmh || $host = ibmkisti || $host = ibms ]] 1148 1153 then 1149 1154 [[ "$tasks_per_node" = "" ]] && tasks_per_node=6 … … 1258 1263 case $host in 1259 1264 (ibmh) queue=no_class;; 1265 (ibmkisti) queue=class.32plus;; 1260 1266 (ibmy) queue=parallel;; 1261 1267 (lckyoto) queue=ph;; … … 2990 2996 fi 2991 2997 2998 if [[ "$totalview" = true ]] 2999 then 3000 printf "\n *** totalview debugger will be used" 3001 tv_opt="-tv" 3002 else 3003 tv_opt="" 3004 fi 3005 2992 3006 if [[ "$cond1" = debug || "$cond2" = debug ]] 2993 3007 then … … 3063 3077 then 3064 3078 printf "\n running totalview debugger" 3065 mpiexec_mpt -tv-n $ii ./a.out $ROPTS < runfile_atmos3079 mpiexec_mpt $tv_opt -n $ii ./a.out $ROPTS < runfile_atmos 3066 3080 else 3067 3081 mpiexec_mpt -np $ii ./a.out $ROPTS < runfile_atmos … … 3075 3089 then 3076 3090 printf "\n running totalview debugger" 3077 mpiexec -tv./a.out $ROPTS < runfile_atmos3091 mpiexec $tv_opt ./a.out $ROPTS < runfile_atmos 3078 3092 else 3079 3093 mpiexec ./a.out $ROPTS < runfile_atmos … … 3097 3111 then 3098 3112 # SETUP THE IBM MPI ENVIRONMENT 3099 if [[ $host != ibmh ]]3113 if [[ $host != ibmh && $host != ibmkisti ]] 3100 3114 then 3101 3115 export MP_SHARED_MEMORY=yes … … 3112 3126 [[ $node_usage = not_shared ]] && export MP_SINGLE_THREAD=yes 3113 3127 fi 3128 3129 if [[ $host = ibmkisti ]] 3130 then 3131 export LANG=en_US 3132 export MP_SHARED_MEMORY=yes 3133 export MP_SINGLE_THREAD=yes 3134 export MEMORY_AFFINITY=MCM 3135 fi 3136 3114 3137 if [[ "$LOADLBATCH" = yes ]] 3115 3138 then … … 3141 3164 then 3142 3165 poe a.out -procs $numprocs -nodes 1 -rmpool 0 $ROPTS 3143 elif [[ $localhost = ibmk u || $localhost = ibmy ]]3166 elif [[ $localhost = ibmkisti || $localhost = ibmku || $localhost = ibmy ]] 3144 3167 then 3145 3168 if [[ -f $hostfile ]] … … 3313 3336 export MPI_GROUP_MAX=64 3314 3337 echo "*** MPI_GROUP_MAX=$MPI_GROUP_MAX" 3315 mpiexec_mpt -np $ii ./a.out $ROPTS < runfile_atmos 3338 if [[ $use_openmp = true ]] 3339 then 3340 echo " mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos" 3341 mpiexec -npernode $tasks_per_node $tv_opt ./a.out $ROPTS < runfile_atmos 3342 else 3343 mpiexec_mpt -np $ii $tv_opt ./a.out $ROPTS < runfile_atmos 3344 fi 3316 3345 3317 3346 # next is test for openmp usage … … 3340 3369 then 3341 3370 echo " mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos" 3342 mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos3371 mpiexec -npernode $tasks_per_node $tv_opt ./a.out $ROPTS < runfile_atmos 3343 3372 else 3344 mpiexec -np $ii ./a.out $ROPTS < runfile_atmos3373 mpiexec -np $ii $tv_opt ./a.out $ROPTS < runfile_atmos 3345 3374 fi 3346 3375 fi … … 4236 4265 then 4237 4266 4238 if [[ $localhost = lcsgih || $localhost = lcsgib || $localhost = nech || $localhost = ibmh || $localhost = ibmk u || $localhost = ibms ]]4267 if [[ $localhost = lcsgih || $localhost = lcsgib || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms ]] 4239 4268 then 4240 4269 echo "*** ssh will be used to initiate restart-runs!" … … 4245 4274 ssh $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/muksoft/packages/intel/Compiler/11.0/083/lib/intel64/;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4246 4275 else 4247 ssh $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4276 if [[ $localhost = ibmkisti ]] 4277 then 4278 ssh $usern@gaiad "ssh $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4279 else 4280 ssh $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4281 fi 4248 4282 fi 4249 4283 else … … 4333 4367 4334 4368 # MRUN-BEFEHL FUER REMOTE-MASCHINE ZUSAMMENSTELLEN 4335 mrun_com="$mrun_script_name -a $afname -c $config_file -d $fname -h $host -H $fromhost -m $memory -t $cpumax -q $queue -R $return_addres -U $return_username -u $remote_username"4369 mrun_com="$mrun_script_name -a $afname -c $config_file -d $fname -h $host -H $fromhost -m $memory -t $cpumax -q \$queue -R $return_addres -U $return_username -u $remote_username" 4336 4370 [[ "$cpp_opts" != "" ]] && mrun_com=${mrun_com}" -D \"$cpp_opts\"" 4337 4371 [[ "$global_revision" != "" ]] && mrun_com=${mrun_com}" -G \"$global_revision\"" … … 4385 4419 # BEREITSTELLUNG VON QUELLTEXTEN, MRUN-SCRIPTS UND KONFIGURATIONS- 4386 4420 # DATEI FUER DEN JOB 4387 if [[ $( echo $host | cut -c1-5 ) = lcsgi ]]4421 if [[ $( echo $host | cut -c1-5 ) = lcsgi || $host = ibmkisti ]] 4388 4422 then 4389 4423 … … 4397 4431 4398 4432 # SOURCE-VERZEICHNIS VOM LOKALEN RECHNER PER SCP TRANSFERIEREN 4433 # (BEI JOBS AUF LOKALEM RECHNER REICHT CP) 4399 4434 echo "set -x" >> $jobfile 4400 echo "scp -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4435 if [[ $host = $localhost ]] 4436 then 4437 echo "cp -r $working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4438 else 4439 if [[ $host != ibmkisti ]] 4440 then 4441 echo "scp -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4442 else 4443 # on KISTI's IBM firewall is only opened on interactive node 4444 echo "localdir=\`pwd\`" >> $jobfile 4445 echo "ssh $remote_username@gaiad \"cd \$localdir; scp -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4446 fi 4447 fi 4401 4448 echo "export SOURCES_COMPLETE=true" >> $jobfile 4402 4449 … … 4456 4503 # ABSPEICHERN DER AKTUELLEN MRUN-VERSION 4457 4504 # ABDECKZEICHEN VERHINDERN, DASS ERSETZUNGEN ERFOLGEN 4458 echo "cat > $mrun_script_name <<\"%END%\"" >> $jobfile4459 cat ${PALM_BIN}/$mrun_script_name >> $jobfile4460 echo "%END%" >> $jobfile4505 echo "cat > $mrun_script_name <<\"%END%\"" >> $jobfile 4506 cat ${PALM_BIN}/$mrun_script_name >> $jobfile 4507 echo "%END%" >> $jobfile 4461 4508 echo "chmod u+x $mrun_script_name" >> $jobfile 4462 4509 echo "execute_mrun=true" >> $jobfile … … 4514 4561 fi 4515 4562 4516 # MRUN AUF ZIELRECHNER AUFRUFEN 4563 # MRUN AUF ZIELRECHNER AUFRUFEN (queue is workaround for ibmkisti) 4517 4564 echo "set -x" >> $jobfile 4565 echo "queue=$queue" >> $jobfile 4518 4566 echo "[[ \$execute_mrun = true ]] && ./$mrun_com" >> $jobfile 4519 4567
Note: See TracChangeset
for help on using the changeset viewer.