Changeset 1866 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Apr 15, 2016 6:50:59 AM (8 years ago)
Author:
raasch
Message:

scripts adjusted for lcocean

Location:
palm/trunk/SCRIPTS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1842 r1866  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# adjusted for lcocean
    2525#
    2626# Former revisions:
     
    310310    return_address=165.132.26.68
    311311    echo "+++ WARNING: fixed return_address = $return_address is used !!!!!"
     312 elif [[ `hostname` = "schultzl-Latitude-E6540" ]]
     313 then
     314    return_address="schultzl-Latitude-E6540"
     315    echo "+++ WARNING: fixed return_address = $return_address is used !!!!!"
    312316 elif [[ `hostname` = urban00 ]]
    313317 then
     
    630634    do_remote=true
    631635    case  $host  in
    632         (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     636        (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    633637        (*)  printf "\n"
    634638             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    788792                   do_remote=true
    789793                   case  $host  in
    790                        (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     794                       (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    791795                       (*)  printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
    792796                            printf "\n      is not available"
     
    10521056    do_remote=true
    10531057    case  $host  in
    1054         (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
     1058        (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb)  true;;
    10551059        (*)  printf "\n"
    10561060             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     
    23902394             [[ ! -f a.out ]]  &&  compile_error=true
    23912395             continue   # STATUS=1, IF a.out EXISTS
     2396          elif [[ $localhost = lcocean ]]
     2397          then
     2398             printf "      compiler is called via ssh on \"ocean\" \n"
     2399             echo $PWD
     2400             ssh  $SSH_PORTOPT  ocean  -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\" "
     2401             [[ ! -f a.out ]]  &&  compile_error=true
     2402            continue   # STATUS=1, IF a.out EXISTS
    23922403          elif [[ $localhost = lcflow ]]
    23932404          then
     
    30693080                   # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT
    30703081                   # DOES NOT EXIST
    3071                 if [[  $host != lcbullhh  && $host != lccrayb  &&  $host != lccrayf  && $host != lccrayh  &&  $host != lckyuh  &&  $host != lckyut ]]
     3082                if [[  $host != lcbullhh  && $host != lccrayb  &&  $host != lccrayf  && $host != lccrayh  &&  $host != lckyuh  &&  $host != lckyut  &&  $host != lcocean ]]
    30723083                then
    30733084                   if [[ -f $hostfile ]]
     
    31403151                   then
    31413152                      mpirun -np $ii a.out  < runfile_atmos
     3153                   elif [[ $host = lcocean ]]
     3154                   then
     3155                      mpirun a.out  $ROPTS  < runfile_atmos
    31423156                   elif [[ $host = lcsb ]]
    31433157                   then
     
    40794093                   then
    40804094                      /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 "
     4095                   elif [[ $localhost = lcocean ]]
     4096                   then
     4097                      /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 "
    40814098                   elif [[ $localhost = lccrayb ]]
    40824099                   then
     
    42914308       #              THIS MAY CREATE A QUITE LARGE JOB-FILE, WHICH CAN CAUSE PROBLEMS WITH SOME
    42924309       #              QUEUEING-SYSTEMS
    4293     if [[ $host = ibmkisti  ||  $host = lcbullhh  ||  $host = lccrayb  ||  $host = lccrayf  ||  $host = lccrayh ]]
     4310    if [[ $host = ibmkisti  ||  $host = lcbullhh  ||  $host = lccrayb  ||  $host = lccrayf  ||  $host = lccrayh  ||  $host = lcocean ]]
    42944311    then
    42954312
  • palm/trunk/SCRIPTS/subjob

    r1842 r1866  
    2323# Current revisions:
    2424# ------------------
    25 #
     25# adjusted for lcocean
    2626#
    2727# Former revisions:
     
    231231     (hexagon*)              local_address=129.177.20.113; local_host=lcxe6;;
    232232     (nobel*)                local_address=150.183.5.101;  local_host=ibms;;
     233     (ocean)                 local_address="ocean";        local_host=lcocean;;
    233234     (orkan)                 local_address=130.75.105.3;   local_host=lcmuk;;
    234235     (ostria)                local_address=130.75.105.106; local_host=lcmuk;;
     
    238239     (quanero)               local_address=130.75.105.107; local_host=lcmuk;;
    239240     (rte*)                  local_address=133.5.185.60;   local_host=lcrte;;
     241     (schultzl-Latitude-E6540)  local_address="schultzl-Latitude-E6540"; local_host=lcsch;;
    240242     (shiokaze-lx)           local_address=134.106.74.123; local_host=lcfor;;
    241243     (sisu-login*)           local_address=86.50.166.21;   local_host=lccrayf;;
    242244     (solano)                local_address=130.75.105.110; local_host=lcmuk;;
    243245     (sugoka*)               local_address=172.31.120.1;   local_host=lckyut;;
     246     (tc*)                   local_address="ocean";        local_host=lcocean;;
    244247     (t2a*)                  local_address=10.1.6.165;     local_host=lctit;;
    245248     (urban*)                local_address=147.46.30.151   local_host=lcsb;;
     
    384387        (lckyuh)  remote_address=133.5.4.33; submcom=/usr/bin/pjsub;;
    385388        (lckyut)  remote_address=133.5.4.37; submcom=/usr/bin/pjsub;;
     389        (lcocean) remote_address="ocean"; submcom=qsub;;
    386390        (lcsb)    remote_address=147.46.30.151; submcom=/usr/torque/bin/qsub;;
    387391        (lctit)   queue=S; remote_address=10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;;
     
    11651169%%END%%
    11661170
     1171 elif [[ $remote_host = lcocean ]]
     1172 then
     1173   cat > $job_to_send << %%END%%
     1174#!/bin/bash
     1175#$ -cwd
     1176#$ -V
     1177#$ -N $job_name
     1178#$ -pe orte $numprocs
     1179#$ -o $remote_dayfile
     1180#$ -j y
     1181#$ -R y
     1182$init_cmds
     1183$module_calls
     1184
     1185%%END%%
     1186
    11671187 elif [[ $remote_host = nech ]]
    11681188 then
     
    12441264    echo "trap '"                               >>  $job_to_send
    12451265    echo "set +vx"                              >>  $job_to_send
    1246     if [[ $(echo $remote_host | cut -c1-3) = ibm  ||  $remote_host = lcbullhh  ||  $remote_host = lccrayb  ||  $remote_host = lccrayh  ||  $(echo $remote_host | cut -c1-3) = nec  ||  $remote_host = lcflow  ||  $remote_host = lckiaps  ||  $remote_host = lckyu* || $remote_host = lcxe6 ]]
     1266    if [[ $(echo $remote_host | cut -c1-3) = ibm  ||  $remote_host = lcbullhh  ||  $remote_host = lccrayb  ||  $remote_host = lccrayh  ||  $(echo $remote_host | cut -c1-3) = nec  ||  $remote_host = lcflow  ||  $remote_host = lckiaps  ||  $remote_host = lckyu* || $remote_host = lcxe6  ||  $remote_host = lcocean ]]
    12471267    then
    12481268       if [[ $remote_host = ibmh ]]
     
    13951415          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
    13961416          echo "%%END%%"                                 >>  $job_to_send
     1417
     1418       elif [[ $remote_host = lcocean ]]
     1419       then
     1420          echo "cat > scpjob.${identifier}.tmp << %%END%%"                  >>  $job_to_send
     1421          echo "#!/bin/bash"                                             >>  $job_to_send
     1422          echo "SGEPREFIX -S /bin/bash"                                  >>  $job_to_send
     1423          echo "SGEPREFIX -N transfer_$job_name"                         >>  $job_to_send
     1424          echo "SGEPREFIX -cwd"                                          >>  $job_to_send
     1425          echo "SGEPREFIX -j y"                                          >>  $job_to_send
     1426          echo "SGEPREFIX -o ${local_host}_${job_name}_scpjob_$identifier"  >>  $job_to_send
     1427          echo " "                                                       >>  $job_to_send
     1428          echo "set -x"                                                  >>  $job_to_send
     1429          echo "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:'   >>  $job_to_send
     1430          echo "export PATH=\$PATH:\$PALM_BIN"                           >>  $job_to_send
     1431          echo ""                                 >>  $job_to_send         
     1432          echo "batch_scp  $PORTOPT  -d  -w 10  -u $local_user $local_address  ${job_catalog}/$remote_dayfile  \"$job_catalog\"  $local_dayfile"  >>  $job_to_send
     1433          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
     1434          echo "rm -f scpjob.${identifier}"                                 >>  $job_to_send         
     1435          echo "%%END%%"                                                 >>  $job_to_send
     1436          echo "sed -e 's/SGEPREFIX/#$/g' scpjob.${identifier}.tmp > scpjob.${identifier}" >>  $job_to_send         
     1437          echo "rm -f scpjob.${identifier}.tmp"                             >>  $job_to_send         
    13971438
    13981439       elif [[ $remote_host = lcflow ]]
     
    14841525          echo "scp $PORTOPT scpjob.$identifier  ${remote_username}@${remote_address}:job_queue"           >>  $job_to_send
    14851526          echo "ssh $SSH_PORTOPT ${remote_username}@${remote_address}  \"cd job_queue; $submcom scpjob.$identifier; rm scpjob.$identifier\" "  >>  $job_to_send
    1486        elif [[ $remote_host = lcflow ]]
     1527       elif [[ $remote_host = lcflow  ||  $remote_host = lcocean ]]
    14871528       then
    14881529          echo "mv  scpjob.$identifier  $job_catalog"           >>  $job_to_send
Note: See TracChangeset for help on using the changeset viewer.