Changeset 1197 for palm


Ignore:
Timestamp:
Jul 4, 2013 6:19:45 AM (11 years ago)
Author:
raasch
Message:

script adjustments for CSC Helsinki (lccrayf)

Location:
palm/trunk/SCRIPTS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mbuild

    r1100 r1197  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# adjustments for CSC Helsinki (lccrayf)
    2525#
    2626# Former revisions:
     
    12501250
    12511251          # workaround for lcxe6
    1252        if [[ $remote_host = lcxe6 ]]
    1253        then
    1254 
    1255           eval $init_cmds
     1252       if [[ $remote_host = lcxe6  ||  $remote_host = lccrayf ]]
     1253       then
     1254
     1255          eval $init_cmds  >  /dev/null  2>&1
    12561256
    12571257       fi
  • palm/trunk/SCRIPTS/mrun

    r1191 r1197  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# adjustments for CSC Helsinki (lccrayf)
    2525#
    2626# Former revisions:
     
    553553    do_remote=true
    554554    case  $host  in
    555         (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|nech|necriam|lcflow|lckyoto|lcsgib|lcsgih|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     555        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|nech|necriam|lccrayf|lcflow|lckyoto|lcsgib|lcsgih|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    556556        (*)  printf "\n"
    557557             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    724724                   do_remote=true
    725725                   case  $host  in
    726                        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     726                       (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lccrayf|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    727727                       (*)  printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
    728728                            printf "\n      is not available"
     
    10011001    do_remote=true
    10021002    case  $host  in
    1003         (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     1003        (ibm|ibmh|ibmkisti|ibmku|ibms|ibmy|lccrayf|lcflow|lckyoto|lcsgib|lcsgih|nech|necriam|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    10041004        (*)  printf "\n"
    10051005             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    28182818          [[ ! -f a.out ]]  &&  compile_error=true
    28192819          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
     2820#       elif [[ $localhost = lccrayf ]]
     2821#       then
     2822#          printf "      compiler is called via ssh on \"sisu-login1\" \n"
     2823#          ssh  $SSH_PORTOPT  sisu-login1  -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\" "
     2824#          [[ ! -f a.out ]]  &&  compile_error=true
     2825#          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
    28202826       elif [[ $localhost = lcsgib ]]
    28212827       then
     
    28362842          [[ ! -f a.out ]]  &&  compile_error=true
    28372843          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
     2844       elif [[ $localhost = lccrayf ]]
     2845       then
     2846          module list
     2847          make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$fopts"  LDFLAGS="$lopts"
    28382848       else
    28392849          [[ "$init_cmds" != "" ]]  &&  eval $init_cmds
     
    35633573                # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT
    35643574                # DOES NOT EXIST
    3565              if [[ $host != lcsgih  &&  $host != lcsgib  &&  $host != lckyuh  &&  $host != lckyut ]]
     3575             if [[ $host != lccrayf  &&  $host != lcsgih  &&  $host != lcsgib  &&  $host != lckyuh  &&  $host != lckyut ]]
    35663576             then
    35673577                if [[ -f $hostfile ]]
     
    36703680                      mpirun -np $ii inspxe-cl -r result -collect mi3 -- ./a.out  <  runfile_atmos
    36713681                   fi
     3682                elif [[ $host = lccrayf ]]
     3683                then
     3684                    echo "aprun  -n $ii  -N $tasks_per_node  -m ${memory}M  a.out  $ROPTS  < runfile_atmos"
     3685                    aprun  -n $ii  -N $tasks_per_node  -m ${memory}M  a.out  $ROPTS  < runfile_atmos
    36723686                elif [[ $host = lcxe6  ||  $host = lcxt5m ]]
    36733687                then
     
    37183732                      fi
    37193733
    3720                    elif [[ $host = lcxe6  ||  $host = lcxt5m ]]
     3734                   elif [[ $host = lccrayf  ||  $host = lcxe6  ||  $host = lcxt5m ]]
    37213735                   then
    37223736
     
    37513765                      fi
    37523766
    3753                    elif [[ $host = lcxe6  ||  $host = lcxt5m ]]
     3767                   elif [[ $host = lccrayf  ||  $host = lcxe6  ||  $host = lcxt5m ]]
    37543768                   then
    37553769
  • palm/trunk/SCRIPTS/subjob

    r1185 r1197  
    2323# Current revisions:
    2424# ------------------
    25 #
     25# adjustments for CSC Helsinki (lccrayf)
    2626#
    2727# Former revisions:
     
    134134     (caurus)                local_addres=130.75.105.19;  local_host=lcmuk;;
    135135     (climate*)              local_addres=165.132.26.68;  local_host=lcyon;;
     136     (clogin*)               local_addres=86.50.166.21;   local_host=lccrayf;;
    136137     (compute-*.local)       local_addres=172.20.4.2;     local_host=lcfimm;;
    137138     (cs*)                   local_addres=136.172.44.131; local_host=nech;;
     
    174175     (quanero)               local_addres=130.75.105.107; local_host=lcmuk;;
    175176     (rte*)                  local_addres=133.5.185.60;   local_host=lcrte;;
     177     (r1*)                   local_addres=130.75.4.102;   local_host=lcsgih;;
     178     (r2*)                   local_addres=130.73.232.102; local_host=lcsgib;;
    176179     (scirocco)              local_addres=172.20.25.41;   local_host=lcmuk;;
     180     (sisu-login*)           local_addres=86.50.166.21;   local_host=lccrayf;;
    177181     (solano)                local_addres=130.75.105.110; local_host=lcmuk;;
    178182     (sugoka*)               local_addres=172.31.120.1;   local_host=lckyut;;
    179183     (sun1|sun2)             local_addres=130.75.6.1;     local_host=unics;;
    180184     (sx-*)                  local_addres=172.16.1.131;   local_host=necriam;;
    181      (r1*)                   local_addres=130.75.4.102;   local_host=lcsgih;;
    182      (r2*)                   local_addres=130.73.232.102; local_host=lcsgib;;
    183185     (t2a*)                  local_addres=10.1.6.165;     local_host=lctit;;
    184186     (urban*)                local_addres=147.46.30.151   local_host=lcsb;;
     
    313315        (ibms)    queue=p_normal; remote_addres=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;
    314316        (ibmy)    queue=parallel; remote_addres=165.132.26.58; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;
     317        (lccrayf) queue=small; remote_addres=86.50.166.21; submcom=/opt/slurm/default/bin/sbatch;;
    315318        (lcfimm)  remote_addres=172.20.4.2; submcom=/opt/torque/bin/qsub;;
    316319        (lcflow)  remote_addres=10.140.1.71; submcom=/cm/shared/apps/sge/6.2u5p2/bin/lx26-amd64/qsub;;
     
    366369        (ibmy)   case  $ndq  in
    367370                     (parallel)                              error=false;;
     371                     (*)                                     error=true;;
     372                 esac;;
     373        (lccrayf) case  $ndq  in
     374                     (usup|test*|small|large)                error=false;;
    368375                     (*)                                     error=true;;
    369376                 esac;;
     
    751758%%END%%
    752759
     760 elif [[ $remote_host = lccrayf ]]
     761 then
     762
     763    if [[ $numprocs != 0 ]]
     764    then
     765       cat > $job_to_send << %%END%%
     766#!/bin/bash -l
     767#SBATCH -J $job_name
     768#SBATCH -t $timestring
     769#SBATCH -N $nodes
     770#SBATCH --ntasks-per-node=$processes_per_node
     771#SBATCH -p $queue
     772#SBATCH -o $remote_dayfile
     773#SBATCH -e $remote_dayfile
     774
     775$init_cmds
     776$module_calls
     777
     778%%END%%
     779
     780    else
     781       cat > $job_to_send << %%END%%
     782#!/bin/bash -l
     783#SBATCH -J $job_name
     784#SBATCH -t $timestring
     785#SBATCH -l ncpus=1
     786#SBATCH -l pmem=${memory}mb
     787#SBATCH -m abe
     788#SBATCH -o $remote_dayfile
     789#SBATCH -e $remote_dayfile
     790
     791$init_cmds
     792$module_calls
     793
     794%%END%%
     795
     796    fi
     797
    753798 elif [[ $remote_host = lcfimm ]]
    754799 then
Note: See TracChangeset for help on using the changeset viewer.