Ignore:
Timestamp:
Feb 10, 2013 1:47:43 AM (11 years ago)
Author:
raasch
Message:

adjustments for Forwind cluster (lcflow) and Kuyshu University computing center (hayaka -lckyuh); further small adjustments for lckyut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1096 r1099  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# adjustments for Kyushu-University computing center (lckyuh - hayaka)
     25# and for Forwind cluster (lcflow)
     26# small further adjustments for lckyut
    2527#
    2628# Former revisions:
     
    3436#
    3537# 2013-02-02 07:06:13Z raasch
    36 # adjustments for Kyushu-University computing center (lckyut)
     38# adjustments for Kyushu-University computing center (lckyut - tatara)
    3739#
    3840# 1083 2013-01-04 10:22:09Z maronga
     
    514516    do_remote=true
    515517    case  $host  in
    516         (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|nech|necriam|lckyoto|lcsgib|lcsgih|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyut|lcsb)  true;;
     518        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|nech|necriam|lcflow|lckyoto|lcsgib|lcsgih|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    517519        (*)  printf "\n"
    518520             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    600602 fi
    601603
     604
     605    # WERTE VON MRUN-OPTIONEN SICHERN UND DAMIT GEGEBENENFALLS SPAETER DIE
     606    # IN DER KONFIGURAIONSDATEI ANGEGEBENEN WERTE UEBERSTEUERN
     607 mrun_memory=$memory
     608 mrun_group_number=$group_number
     609 mrun_cpumax=$cpumax
     610 mrun_numprocs=$numprocs
    602611
    603612
     
    678687                   do_remote=true
    679688                   case  $host  in
    680                        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyut|lcsb)  true;;
     689                       (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    681690                       (*)  printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
    682691                            printf "\n      is not available"
     
    817826%%END%%
    818827
    819        # WERTE VON MRUN-OPTIONEN SICHERN UND DAMIT GEGEBENENFALLS SPAETER DIE
    820        # IN DER KONFIGURAIONSDATEI ANGEGEBENEN WERTE UEBERSTEUERN
    821     mrun_memory=$memory
    822     mrun_group_number=$group_number
    823     mrun_cpumax=$cpumax
    824     mrun_numprocs=$numprocs
    825 
    826828    if [[ $localhost_realname = "sx-fep" ]]
    827829    then
     
    866868    rm  $interpreted_config_file
    867869
    868 
    869        # OPTIONSWERTE UEBERSTEUERN KONFIGURATIONSDATEI
    870     [[ $mrun_memory     != 0   ]]  &&  memory=$mrun_memory
    871     [[ "$mrun_group_number" != "none" ]]  &&  group_number=$mrun_group_number
    872     [[ $mrun_cpumax     != 0   ]]  &&  cpumax=$mrun_cpumax
    873     [[ "$mrun_numprocs" != ""  ]]  &&  numprocs=$mrun_numprocs
    874     [[ "$max_par_io_str" != "" ]]  &&  maximum_parallel_io_streams=$max_par_io_str
    875     [[ "$mrun_tasks_per_node" != "" ]]  &&  tasks_per_node=$mrun_tasks_per_node
    876 
    877  fi
     870 fi
     871
     872
     873    # OPTIONSWERTE UEBERSTEUERN KONFIGURATIONSDATEI
     874 [[ $mrun_memory     != 0   ]]  &&  memory=$mrun_memory
     875 [[ "$mrun_group_number" != "none" ]]  &&  group_number=$mrun_group_number
     876 [[ $mrun_cpumax     != 0   ]]  &&  cpumax=$mrun_cpumax
     877 [[ "$mrun_numprocs" != ""  ]]  &&  numprocs=$mrun_numprocs
     878 [[ "$max_par_io_str" != "" ]]  &&  maximum_parallel_io_streams=$max_par_io_str
     879 [[ "$mrun_tasks_per_node" != "" ]]  &&  tasks_per_node=$mrun_tasks_per_node
    878880
    879881
     
    962964    do_remote=true
    963965    case  $host  in
    964         (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyut|lcsb)  true;;
     966        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    965967        (*)  printf "\n"
    966968             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    11221124        (lckiaps)    queue=normal;;
    11231125        (lckyoto)    queue=ph;;
    1124         (lckyut)     queue=cx-dbg;;
     1126        (lckyuh)     queue=fx-single;;
     1127        (lckyut)     queue=cx-single;;
    11251128        (lcsgib)     queue=testq;;
    11261129        (lcsgih)     queue=testq;;
     
    18701873 lopts="$lopts $netcdf_lib $dvr_lib"
    18711874 ROPTS="$ropts"
    1872 # if [[ ( $(echo $host | cut -c1-3) = nec  ||  $(echo $host | cut -c1-3) = ibm  ||  $host = lckyoto  ||  $host = lcsgih  ||  $host = lcsgib  ||  $host = lctit  ||  $host = lcfimm  ||  $host = lcxe6 ||  $host = lcxt5m || $host = lck || $host = lckiaps || $host = lckordi || $host = lcsb || $host )  &&  -n $numprocs ]]
     1875# if [[ ( $(echo $host | cut -c1-3) = nec  ||  $(echo $host | cut -c1-3) = ibm  ||  $host = lckyoto  ||  $host = lcsgih  ||  $host = lcsgib  ||  $host = lctit  ||  $host = lcfimm  ||  $host = lcflow  ||  $host = lcxe6 ||  $host = lcxt5m || $host = lck || $host = lckiaps || $host = lckordi || $host = lcsb || $host )  &&  -n $numprocs ]]
    18731876# then
    18741877    XOPT="-X $numprocs"
     
    35093512                # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT
    35103513                # DOES NOT EXIST
    3511              if [[ $host != lcsgih  &&  $host != lcsgib ]]
     3514             if [[ $host != lcsgih  &&  $host != lcsgib  &&  $host != lckyu* ]]
    35123515             then
    35133516                if [[ -f $hostfile ]]
     
    36303633                elif [[ $host = lckyu* ]]
    36313634                then
    3632                    mpiexec -n $ii   a.out  < runfile_atmos  $ROPTS
     3635                   mpiexec -n $ii  ./a.out  < runfile_atmos  $ROPTS
    36333636                else
    36343637                   mpiexec  -machinefile hostfile  -n $ii  a.out  < runfile_atmos  $ROPTS
     
    45274530          then
    45284531
    4529              if [[ $localhost = lcsgih  ||  $localhost = lcsgib  ||  $localhost = nech  ||  $localhost = ibmh  ||  $localhost = ibmkisti  ||  $localhost = ibmku  ||  $localhost = ibms ]]
     4532             if [[ $localhost = lcsgih  ||  $localhost = lcsgib  ||  $localhost = nech  ||  $localhost = ibmh  ||  $localhost = ibmkisti  ||  $localhost = ibmku  ||  $localhost = ibms  ||  $localhost = lcflow  ||  $localhost = lckyu* ]]
    45304533             then
    45314534                echo "*** ssh will be used to initiate restart-runs!"
     
    47714774          # ABSPEICHERN DER KONFIGURATIONSDATEI
    47724775          # ABDECKZEICHEN VERHINDERN, DASS ERSETZUNGEN ERFOLGEN
     4776          # Lines with #$ coming from the svn keyword substitution are
     4777          # removed from the config file in order to avoid problems
     4778          # with the SGE batch system
    47734779       echo  "cat > $config_file << \"%END%\""      >>  $jobfile
    4774        cat   $config_file                           >>  $jobfile
     4780       sed 's/#$.*//g'   $config_file               >>  $jobfile
    47754781       echo  "%END%"                                >>  $jobfile
    47764782       echo  " "                                    >>  $jobfile
     
    48354841    then
    48364842       echo  "export PALM_BIN=$PALM_BIN"                >>  $jobfile
     4843    elif [[ $host = lcflow  ||  $localhost = lcflow ]]
     4844    then
     4845       echo  "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:'   >>  $jobfile
     4846       echo  "export PATH=\$PATH:\$PALM_BIN"              >>  $jobfile
    48374847    fi
    48384848
     
    48404850    echo  "set -x"                                      >>  $jobfile
    48414851    echo  "queue=$queue"                                >>  $jobfile
     4852#    echo  "echo \"*** shell test\" "                    >>  $jobfile
     4853#    echo  "which ksh"                                   >>  $jobfile
     4854#    echo  "ls -al /bin"                                 >>  $jobfile
    48424855    echo  "[[ \$execute_mrun = true ]]  &&  ./$mrun_com"  >>  $jobfile
    48434856
Note: See TracChangeset for help on using the changeset viewer.