Changes between Version 45 and Version 46 of cypress/about


Ignore:
Timestamp:
08/21/18 12:26:00 (6 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/about

    v45 v46  
    104104The "'''interactive'''" QOS is intended to be used for testing SLURM script submission, and is limited to 1 job per user.  See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#interactiveQOS interactiveQOS]
    105105
     106See below for details:
     107
     108* [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#UsingSLURMonCypress  Slurm Scripts]
     109
     110* [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#RunningMannySerialJobs  Job-Array]
     111
     112* [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#SubmittingInteractiveJobs  Interactive Jobs]
     113
    106114=== Job scheduling and priority ===
    107115
     
    131139SLURM calculates each priority component as a fraction (value between 0 and 1), which is then multiplied by a weight.  The current weights are:  Fair-share:  100,000; Age:  10,000;  Job Size:  1,000.  That is, Fair-share is the major contributor to priority.  The weighted components are added to give the final priority.
    132140
    133 === Running serial jobs ===
    134 
    135 If you are running a large number of serial jobs, it is recommended to submit them as a job array to make the best use of your allocated resources.  For example, suppose you are running 100 serial jobs using scripts located in a "scripts" folder, each of which does a serial calculation:  scripts/run1.sh, scripts/run2.sh, ..., scripts/run100.sh.  You would create an sbatch script named "run100scripts.srun" with contents:
    136 
    137 {{{
    138 #!/bin/bash
    139 #SBATCH -J array_example
    140 #SBATCH --array=0-4
    141 #SBATCH -N 1
    142 #SBATCH -n 20
    143 #SBATCH --time=01:00:00
    144 
    145 srun ./runscript.sh
    146 }}}
    147 
    148 The contents of the script "runscript.sh" would be:
    149 
    150 {{{
    151 #!/bin/bash
    152 
    153 RUNNUMBER=$((SLURM_ARRAY_TASK_ID*SLURM_NTASKS + SLURM_PROCID + 1))
    154 ./scripts/run$RUNNUMBER.sh
    155 }}}
    156 
    157 Make sure your scripts have executable permissions.  Then, submitting with:
    158 
    159 {{{
    160 sbatch run100scripts.srun
    161 }}}
    162 
    163 will run the 100 scripts as a 5 job array, with 20 tasks each.
    164141
    165142