Ignore:
Timestamp:
Nov 7, 2013 2:43:35 PM (11 years ago)
Author:
raasch
Message:

further adjustments for lccrayb, mainly concerning remote job access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1242 r1255  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# further adjustments for lccrayb remote access
    2525#
    2626# Former revisions:
     
    28272827       cd -  > /dev/null
    28282828
    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
    28302832
    28312833    else
     
    29202922             [[ ! -f a.out ]]  &&  compile_error=true
    29212923             continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
    2922           elif [[ $localhost = lccrayf ]]
     2924          elif [[ $localhost = lccrayb  ||  $localhost = lccrayf ]]
    29232925          then
    29242926             make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$fopts"  LDFLAGS="$lopts"
     
    41214123                   printf "\n  >>> OUTPUT: ${localout[$i]}$cst  by SCP to"
    41224124                   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
    41244131                   [[ $? != 0 ]]  &&  transfer_failed=true
    41254132
     
    41964203                   printf "\n  >>> OUTPUT: ${localout[$i]}  append by SCP to"
    41974204                   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
    41994211                   [[ $? != 0 ]]  &&  transfer_failed=true
    42004212
     
    46794691          then
    46804692
    4681              if [[ $localhost = lcsgih  ||  $localhost = lcsgib  ||  $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* ]]
    46824694             then
    46834695                echo "*** ssh will be used to initiate restart-runs!"
     
    46894701                   then
    46904702                      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\" "
    46914706                   else
    46924707                      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 "
     
    46964711                   then
    46974712                      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\" "
    46984719                   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 "
    47054721                   fi
    47064722                fi
     
    49254941             # DUE TO UNKNOWN REASONS, COPY WITH cp COMMAND CREATES CORRUPT
    49264942             # FILES ON CRAY XC30 SYSTEMS (CSC HELSINKI), rsync IS USED INSTEAD
    4927           echo  "rsync -ae -t  $working_directory/SOURCES_FOR_RUN_$fname  ."  >>  $jobfile
     4943          echo  "rsync -av -t  $working_directory/SOURCES_FOR_RUN_$fname  ."  >>  $jobfile
    49284944
    49294945       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
    49344948                # on KISTI's IBM firewall is only opened on interactive node
    49354949             echo  "localdir=\`pwd\`"                            >>  $jobfile
    49364950             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
    49374957          fi
    49384958       fi
Note: See TracChangeset for help on using the changeset viewer.