Changeset 2257 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Jun 7, 2017 2:07:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r2186 r2257 27 27 # ----------------- 28 28 # $Id$ 29 # adjustments for lceddy, removed lcflow-specific code 30 # 31 # 2186 2017-03-21 05:36:31Z raasch 29 32 # 30 33 # 2185 2017-03-21 05:09:29Z raasch … … 652 655 do_remote=true 653 656 case $host in 654 (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lc flow|lckyoto|lcocean|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;657 (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lceddy|lckyoto|lcocean|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 655 658 (*) printf "\n" 656 659 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 810 813 do_remote=true 811 814 case $host in 812 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lc flow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;815 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lceddy|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 813 816 (*) printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 814 817 printf "\n is not available" … … 1074 1077 do_remote=true 1075 1078 case $host in 1076 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lc flow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;1079 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lceddy|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 1077 1080 (*) printf "\n" 1078 1081 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 1103 1106 # CHECK, IF THE NUMBER OF CORES PER NODE HAS BEEN GIVEN UND IF IT IS AN 1104 1107 # INTEGRAL DIVISOR OF THE TOTAL NUMBER OF CORES GIVEN BY OPTION -X 1105 if [[ "$tasks_per_node" = "" && $host != lc flow && $host != lcxt5m ]]1108 if [[ "$tasks_per_node" = "" && $host != lcxt5m ]] 1106 1109 then 1107 1110 printf "\n" … … 1119 1122 fi 1120 1123 1121 if [[ $host != lc flow && $host != lcxt5m ]]1124 if [[ $host != lcxt5m ]] 1122 1125 then 1123 1126 (( nodes = numprocs / ( tasks_per_node * threads_per_task ) )) … … 2421 2424 [[ ! -f a.out ]] && compile_error=true 2422 2425 continue # STATUS=1, IF a.out EXISTS 2423 elif [[ $localhost = lcflow ]]2424 then2425 printf " compiler is called via ssh on \"flow\" \n"2426 /usr/bin/ssh $SSH_PORTOPT flow02.hpc.uni-oldenburg.de -l $usern "$init_cmds $module_calls cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2427 check_for_file=`/usr/bin/ssh $SSH_PORTOPT flow02.hpc.uni-oldenburg.de -l $usern "ls $TEMPDIR/a.out 2> /dev/null"`2428 [[ "$check_for_file" = "" ]] && compile_error=true2429 continue # STATUS=1, IF a.out EXISTS2430 2426 elif [[ $localhost = lcbullhh || $localhost = lccrayb || $localhost = lccrayf || $localhost = lccrayh ]] 2431 2427 then 2428 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" 2429 elif [[ $localhost = lceddy ]] 2430 then 2431 which mpifc 2432 2432 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" 2433 2433 else … … 3100 3100 # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT 3101 3101 # DOES NOT EXIST 3102 if [[ $host != lcbullhh && $host != lccrayb && $host != lccrayf && $host != lccrayh && $host != lckyuh && $host != lckyut && $host != lcocean ]]3102 if [[ $host != lcbullhh && $host != lccrayb && $host != lccrayf && $host != lccrayh && $host != lckyuh && $host != lckyut && $host != lcocean && $host != lceddy ]] 3103 3103 then 3104 3104 if [[ -f $hostfile ]] … … 3167 3167 elif [[ $host = lcxe6 || $host = lcxt5m ]] 3168 3168 then 3169 aprun -n $ii -N $tasks_per_node a.out < runfile_atmos 3170 elif [[ $host = lcflow ]] 3171 then 3172 mpirun -np $ii a.out < runfile_atmos 3169 aprun -n $ii -N $tasks_per_node a.out < runfile_atmos 3170 elif [[ $host = lceddy ]] 3171 then 3172 echo $ii 3173 echo $tasks_per_node 3174 echo $nodes 3175 mpirun -n $ii a.out < runfile_atmos 3173 3176 elif [[ $host = lcocean ]] 3174 3177 then … … 3177 3180 then 3178 3181 mpirun_rsh -hostfile $PBS_NODEFILE -np `cat $PBS_NODEFILE | wc -l` a.out < runfile_atmos 3182 3179 3183 elif [[ $host = lckiaps ]] 3180 3184 then … … 4081 4085 then 4082 4086 4083 if [[ $localhost = lcbullhh || $localhost = lccrayb || $localhost = lccrayh || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lc flow|| $localhost = lckyu* || $localhost = lcxe6 ]]4087 if [[ $localhost = lcbullhh || $localhost = lccrayb || $localhost = lccrayh || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lceddy || $localhost = lckyu* || $localhost = lcxe6 ]] 4084 4088 then 4085 4089 echo "*** ssh will be used to initiate restart-runs!" … … 4110 4114 then 4111 4115 ssh $SSH_PORTOPT $usern@gaiad "ssh $SSH_PORTOPT $return_address -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4112 elif [[ $localhost = lc flow]]4116 elif [[ $localhost = lceddy ]] 4113 4117 then 4114 4118 /usr/bin/ssh $SSH_PORTOPT $return_address -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " … … 4496 4500 echo "export LOCAL_MRUN_PATH" >> $jobfile 4497 4501 4498 # lc flowALSO REQUIRES TO PROVIDE PATH FOR THE PALM-SCRIPTS4499 # if [[ $host = lcflow || $localhost = lcflow]]4500 #then4502 # lceddy ALSO REQUIRES TO PROVIDE PATH FOR THE PALM-SCRIPTS 4503 if [[ $host = lceddy || $localhost = lceddy ]] 4504 then 4501 4505 echo "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:' >> $jobfile 4502 4506 echo "export PATH=\$PATH:\$PALM_BIN" >> $jobfile 4503 #fi4507 fi 4504 4508 4505 4509 # CALL MRUN WITHIN THE JOB (SETTING QUEUE IS A WORKAROUND FOR ibmkisti)
Note: See TracChangeset
for help on using the changeset viewer.