Ignore:
Timestamp:
Jul 17, 2015 11:37:41 AM (9 years ago)
Author:
heinze
Message:

adjustments for Mistral at DKRZ Hamburg (lcbullhh)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/subjob

    r1576 r1620  
    2323# Current revisions:
    2424# ------------------
    25 #
     25# adjustments for Mistral at DKRZ Hamburg (lcbullhh)
    2626#
    2727# Former revisions:
     
    174174
    175175
    176 
    177 
    178176    # DETERMINE NAME OF LOCAL HOST
    179177 local_host=$(hostname)
    180 
    181 
    182178
    183179    # SET HOST-SPECIFIC VARIABLES VEREINBAREN (CHECK, IF LOCAL HOST
     
    223219     (meller)                local_address=134.106.74.155; local_host=lcfor;;
    224220     (meteo-login*)          local_address=193.166.211.144;local_host=lcxt5m;;
     221     (mlogin1*|m1*)          local_address=136.172.50.13;  local_host=lcbullhh;;
    225222     (hexagon*)              local_address=129.177.20.113; local_host=lcxe6;;
    226223     (nobel*)                local_address=150.183.5.101;  local_host=ibms;;
     
    367364        (ibmku)   queue=s4; remote_address=133.5.4.129; submcom=/usr/local/bin/llsubmit;;
    368365        (ibms)    queue=p_normal; remote_address=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;
     366        (lcbullhh)    queue=compute; remote_address=136.172.50.13; submcom=/usr/bin/sbatch;;
    369367        (lccrayb) queue=mpp1testq; remote_address=130.73.233.1; submcom=/opt/moab/default/bin/msub;;
    370368        (lccrayh) queue=mpp1testq; remote_address=130.75.4.1; submcom=/opt/moab/default/bin/msub;;
     
    413411        (ibms)   case  $ndq  in
    414412                     (express|normal|p_express|p_normal|p_normal_1.3|p_normal_1.7|grand)     error=false;;
     413                     (*)                                     error=true;;
     414                 esac;;
     415        (lcbullhh) case  $ndq  in
     416                     (compute|shared)  error=false;;
    415417                     (*)                                     error=true;;
    416418                 esac;;
     
    617619 fi
    618620
    619 
    620 
    621621    # GENERATE RANDOM IDENTIFIER, AND DETERMINE THE JOBNAME ON THE TARGET HOST
    622622 identifier=$RANDOM
     
    630630    remote_dayfile=/dev/null
    631631 fi
    632 
    633632
    634633
     
    780779%%END%%
    781780
     781 elif [[ $remote_host = lcbullhh ]]
     782 then
     783    if [[ $numprocs != 0 ]]
     784    then
     785       cat > $job_to_send << %%END%%
     786#!/bin/bash -l
     787#SBATCH -J $job_name
     788#SBATCH -t $timestring
     789#SBATCH -N $nodes
     790#SBATCH --ntasks-per-node=$processes_per_node
     791#SBATCH -p $queue
     792#SBATCH -o $remote_dayfile
     793#SBATCH -e $remote_dayfile
     794#SBATCH -A $project_account
     795
     796$init_cmds
     797$module_calls
     798
     799%%END%%
     800
     801    else
     802       cat > $job_to_send << %%END%%
     803#!/bin/bash -l
     804#SBATCH -J $job_name
     805#SBATCH -t $timestring
     806#SBATCH -l ncpus=1
     807#SBATCH -l pmem=${memory}mb
     808#SBATCH -m abe
     809#SBATCH -o $remote_dayfile
     810#SBATCH -e $remote_dayfile
     811#SBATCH -A $project_account
     812
     813$init_cmds
     814$module_calls
     815
     816%%END%%
     817
     818    fi
     819
    782820 elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]]
    783821 then
     
    11961234    echo "trap '"                               >>  $job_to_send
    11971235    echo "set +vx"                              >>  $job_to_send
    1198     if [[ $(echo $remote_host | cut -c1-3) = ibm  ||  $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 ]]
     1236    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 ]]
    11991237    then
    12001238       if [[ $remote_host = ibmh ]]
     
    12101248       then
    12111249          return_queue=p_normal
     1250       elif [[ $remote_host = lcbullhh ]]
     1251       then
     1252          return_queue=shared
    12121253       elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]]
    12131254       then
     
    12761317          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
    12771318          echo "%%END%%"                           >>  $job_to_send
     1319
     1320       elif [[ $remote_host = lcbullhh ]]
     1321       then
     1322          echo "cat > scpjob.$identifier << %%END%%"        >>  $job_to_send
     1323          echo "#!/bin/bash"                             >>  $job_to_send
     1324          echo "#SBATCH --job-name=job_protocol_transfer" >>  $job_to_send
     1325          echo "#SBATCH -t 00:20:00"                     >>  $job_to_send
     1326          echo "#SBATCH -N 1"                            >>  $job_to_send
     1327          echo "#SBATCH -n 1"                            >>  $job_to_send
     1328          echo "#SBATCH -o \$HOME/job_queue/last_job_transfer_protocol"      >>  $job_to_send
     1329          echo "#SBATCH -o $remote_dayfile"              >>  $job_to_send
     1330          echo "#SBATCH -e $remote_dayfile"              >>  $job_to_send
     1331          echo "#SBATCH -A $project_account"             >>  $job_to_send
     1332          echo "#SBATCH -p $return_queue"                >>  $job_to_send
     1333          echo " "                                       >>  $job_to_send
     1334          echo "set -x"                                  >>  $job_to_send
     1335          echo "batch_scp  $PORTOPT  -d  -w 10  -u $local_user $local_address  ${job_catalog}/$remote_dayfile  \"$job_catalog\"  $local_dayfile"  >>  $job_to_send
     1336          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
     1337          echo "%%END%%"                                 >>  $job_to_send
    12781338
    12791339       elif [[ $remote_host = lckyuh ]]
     
    13871447          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
    13881448          echo "%%END%%"                           >>  $job_to_send
     1449
    13891450       fi
    13901451
     
    13921453       then
    13931454          echo "llsubmit  scpjob.$identifier"      >>  $job_to_send
     1455       elif [[ $remote_host = lcbullhh ]]
     1456       then
     1457          echo "sbatch  scpjob.$identifier"               >>  $job_to_send
    13941458       elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]]
    13951459       then
     
    14361500
    14371501
    1438 
    14391502    # APPEND THE JOB-FILE (CREATE BY mrun) TO THE JOB-DIRECTIVES GENERATED ABOVE
    14401503 cat  $file_to_send  >>  $job_to_send
     
    15251588             eval  $submcom  -q $queue  $job_on_remhost
    15261589          fi
     1590       elif [[ $local_host = lcbullhh ]]
     1591       then
     1592          if [[ $queue = default ]]
     1593          then
     1594             eval  $submcom  $job_on_remhost
     1595          fi
    15271596       else
    15281597          qsub  $job_on_remhost
     
    15391608 fi
    15401609
    1541 
    1542 
    15431610    # FINAL ACTIONS
    15441611 if [[ $no_submit = false ]]
Note: See TracChangeset for help on using the changeset viewer.