Ignore:
Timestamp:
Jun 7, 2017 2:07:05 PM (7 years ago)
Author:
witha
Message:

Bugfix in PALM-WTM, modifications for lceddy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r2186 r2257  
    2727# -----------------
    2828# $Id$
     29# adjustments for lceddy, removed lcflow-specific code
     30#
     31# 2186 2017-03-21 05:36:31Z raasch
    2932#
    3033# 2185 2017-03-21 05:09:29Z raasch
     
    652655    do_remote=true
    653656    case  $host  in
    654         (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|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;;
    655658        (*)  printf "\n"
    656659             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    810813                   do_remote=true
    811814                   case  $host  in
    812                        (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|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;;
    813816                       (*)  printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
    814817                            printf "\n      is not available"
     
    10741077    do_remote=true
    10751078    case  $host  in
    1076         (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|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;;
    10771080        (*)  printf "\n"
    10781081             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    11031106       # CHECK, IF THE NUMBER OF CORES PER NODE HAS BEEN GIVEN UND IF IT IS AN
    11041107       # INTEGRAL DIVISOR OF THE TOTAL NUMBER OF CORES GIVEN BY OPTION -X
    1105     if [[ "$tasks_per_node" = ""  &&  $host != lcflow  &&  $host != lcxt5m ]]
     1108    if [[ "$tasks_per_node" = ""  &&  $host != lcxt5m ]]
    11061109    then
    11071110       printf "\n"
     
    11191122    fi
    11201123
    1121     if [[ $host != lcflow  &&  $host != lcxt5m ]]
     1124    if [[ $host != lcxt5m ]]
    11221125    then
    11231126       (( nodes = numprocs / ( tasks_per_node * threads_per_task ) ))
     
    24212424             [[ ! -f a.out ]]  &&  compile_error=true
    24222425            continue   # STATUS=1, IF a.out EXISTS
    2423           elif [[ $localhost = lcflow ]]
    2424           then
    2425              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=true
    2429              continue   # STATUS=1, IF a.out EXISTS
    24302426          elif [[ $localhost = lcbullhh  ||  $localhost = lccrayb  ||  $localhost = lccrayf ||  $localhost = lccrayh ]]
    24312427          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
    24322432             make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$fopts"  LDFLAGS="$lopts"
    24332433          else
     
    31003100                   # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT
    31013101                   # 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 ]]
    31033103                then
    31043104                   if [[ -f $hostfile ]]
     
    31673167                   elif [[ $host = lcxe6  ||  $host = lcxt5m ]]
    31683168                   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
    31733176                   elif [[ $host = lcocean ]]
    31743177                   then
     
    31773180                   then
    31783181                      mpirun_rsh -hostfile $PBS_NODEFILE -np `cat $PBS_NODEFILE | wc -l` a.out  < runfile_atmos
     3182
    31793183                   elif [[ $host = lckiaps ]]
    31803184                   then
     
    40814085          then
    40824086
    4083              if [[ $localhost = lcbullhh  ||  $localhost = lccrayb  ||  $localhost = lccrayh  ||  $localhost = nech  ||  $localhost = ibmh  ||  $localhost = ibmkisti  ||  $localhost = ibmku  ||  $localhost = ibms  ||  $localhost = lcflow  ||  $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 ]]
    40844088             then
    40854089                echo "*** ssh will be used to initiate restart-runs!"
     
    41104114                   then
    41114115                      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 = lcflow ]]
     4116                   elif [[ $localhost = lceddy ]]
    41134117                   then
    41144118                      /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 "
     
    44964500    echo  "export LOCAL_MRUN_PATH"                      >>  $jobfile
    44974501
    4498        # lcflow ALSO REQUIRES TO PROVIDE PATH FOR THE PALM-SCRIPTS
    4499 #    if [[ $host = lcflow  ||  $localhost = lcflow ]]
    4500 #    then
     4502       # lceddy ALSO REQUIRES TO PROVIDE PATH FOR THE PALM-SCRIPTS
     4503    if [[ $host = lceddy  ||  $localhost = lceddy ]]
     4504    then
    45014505       echo  "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:'   >>  $jobfile
    45024506       echo  "export PATH=\$PATH:\$PALM_BIN"              >>  $jobfile
    4503 #    fi
     4507    fi
    45044508
    45054509       # CALL MRUN WITHIN THE JOB (SETTING QUEUE IS A WORKAROUND FOR ibmkisti)
Note: See TracChangeset for help on using the changeset viewer.