Changes between Version 39 and Version 40 of cypress/about


Ignore:
Timestamp:
05/11/16 12:16:43 (8 years ago)
Author:
hoang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/about

    v39 v40  
    106106Other QOS's on the system are for staff testing use only.
    107107
     108=== Running serial jobs ===
     109
     110If 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:
     111
     112{{{
     113#!/bin/bash
     114#SBATCH -J array_example
     115#SBATCH --array=0-4
     116#SBATCH -N 1
     117#SBATCH -n 20
     118#SBATCH --time=01:00:00
     119
     120srun ./runscript.sh
     121}}}
     122
     123The contents of the script "runscript.sh" would be:
     124
     125{{{
     126#!/bin/bash
     127
     128RUNNUMBER=$((SLURM_ARRAY_TASK_ID*SLURM_NTASKS + SLURM_PROCID + 1))
     129./scripts/run$RUNNUMBER.sh
     130}}}
     131
     132Make sure your scripts have executable permissions.  Then, submitting with:
     133
     134{{{
     135sbatch run100scripts.srun
     136}}}
     137
     138will run the 100 scripts as a 5 job array, with 20 tasks each.
     139
    108140
    109141== Requesting memory for your job ==