Changeset 1255 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Nov 7, 2013 2:43:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r1242 r1255 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # further adjustments for lccrayb remote access 25 25 # 26 26 # Former revisions: … … 2827 2827 cd - > /dev/null 2828 2828 2829 cp SOURCES_FOR_RUN_$fname/* $TEMPDIR_COMPILE 2829 # DUE TO UNKNOWN REASONS, COPY WITH cp COMMAND CREATES CORRUPT 2830 # FILES ON CRAY XC30 SYSTEMS (HLRN III), rsync IS USED INSTEAD 2831 rsync -av -t SOURCES_FOR_RUN_$fname/* $TEMPDIR_COMPILE > /dev/null 2830 2832 2831 2833 else … … 2920 2922 [[ ! -f a.out ]] && compile_error=true 2921 2923 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2922 elif [[ $localhost = lccray f ]]2924 elif [[ $localhost = lccrayb || $localhost = lccrayf ]] 2923 2925 then 2924 2926 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" … … 4121 4123 printf "\n >>> OUTPUT: ${localout[$i]}$cst by SCP to" 4122 4124 printf "\n ${pathout[$i]}/${localhost}_${fname}${endout[$i]}$cst\n" 4123 batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 4125 if [[ $localhost = lccrayb ]] 4126 then 4127 ssh $usern@blogin1 "cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 4128 else 4129 batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 4130 fi 4124 4131 [[ $? != 0 ]] && transfer_failed=true 4125 4132 … … 4196 4203 printf "\n >>> OUTPUT: ${localout[$i]} append by SCP to" 4197 4204 printf "\n ${pathout[$i]}/${localhost}_${fname}${endout[$i]}\n" 4198 batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 4205 if [[ $localhost = lccrayb ]] 4206 then 4207 ssh $usern@blogin1 "cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 4208 else 4209 batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 4210 fi 4199 4211 [[ $? != 0 ]] && transfer_failed=true 4200 4212 … … 4679 4691 then 4680 4692 4681 if [[ $localhost = lcsgih || $localhost = lc sgib || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lcflow || $localhost = lckyu* ]]4693 if [[ $localhost = lcsgih || $localhost = lccrayb || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lcflow || $localhost = lckyu* ]] 4682 4694 then 4683 4695 echo "*** ssh will be used to initiate restart-runs!" … … 4689 4701 then 4690 4702 ssh $SSH_PORTOPT $usern@136.172.40.15 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;. /muksoft/packages/intel/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4703 elif [[ $localhost = lccrayb ]] 4704 then 4705 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;. /muksoft/packages/intel/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4691 4706 else 4692 4707 ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;. /muksoft/packages/intel/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " … … 4696 4711 then 4697 4712 ssh $SSH_PORTOPT $usern@gaiad "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4713 elif [[ $localhost = lcflow ]] 4714 then 4715 /usr/bin/ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4716 elif [[ $localhost = lccrayb ]] 4717 then 4718 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4698 4719 else 4699 if [[ $localhost = lcflow ]] 4700 then 4701 /usr/bin/ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4702 else 4703 ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4704 fi 4720 ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4705 4721 fi 4706 4722 fi … … 4925 4941 # DUE TO UNKNOWN REASONS, COPY WITH cp COMMAND CREATES CORRUPT 4926 4942 # FILES ON CRAY XC30 SYSTEMS (CSC HELSINKI), rsync IS USED INSTEAD 4927 echo "rsync -a e-t $working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile4943 echo "rsync -av -t $working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4928 4944 4929 4945 else 4930 if [[ $host != ibmkisti ]] 4931 then 4932 echo "scp $PORTOPT -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4933 else 4946 if [[ $host = ibmkisti ]] 4947 then 4934 4948 # on KISTI's IBM firewall is only opened on interactive node 4935 4949 echo "localdir=\`pwd\`" >> $jobfile 4936 4950 echo "ssh $SSH_PORTOPT $remote_username@gaiad \"cd \$localdir; scp $PORTOPT -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4951 elif [[ $host = lccrayb ]] 4952 then 4953 echo "localdir=\`pwd\`" >> $jobfile 4954 echo "ssh $SSH_PORTOPT $remote_username@blogin1 \"cd \$localdir; scp $PORTOPT -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4955 else 4956 echo "scp $PORTOPT -r $return_username@$return_addres:$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4937 4957 fi 4938 4958 fi
Note: See TracChangeset
for help on using the changeset viewer.