using-slurm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
using-slurm [2013/12/02 14:21] – aorth | using-slurm [2015/03/18 15:43] – aorth | ||
---|---|---|---|
Line 19: | Line 19: | ||
[aorth@taurus: | [aorth@taurus: | ||
+ | **NB:** interactive jobs have a time limit of 8 hours, if you need more then you should write a batch script. | ||
==== Batch jobs ==== | ==== Batch jobs ==== | ||
Request 4 CPUs for a NCBI BLAST+ job in the '' | Request 4 CPUs for a NCBI BLAST+ job in the '' | ||
- | < | + | < |
#SBATCH -p batch | #SBATCH -p batch | ||
#SBATCH -J blastn | #SBATCH -J blastn | ||
Line 27: | Line 28: | ||
# load the blast module | # load the blast module | ||
- | module load blast/2.2.28+ | + | module load blast/2.2.30+ |
# run the blast with 4 CPU threads (cores) | # run the blast with 4 CPU threads (cores) | ||
Line 33: | Line 34: | ||
Submit the script with '' | Submit the script with '' | ||
- | < | + | < |
Submitted batch job 1082</ | Submitted batch job 1082</ | ||
Line 47: | Line 48: | ||
# load the blast module | # load the blast module | ||
- | module load blast/2.2.28+ | + | module load blast/2.2.30+ |
WORKDIR=/ | WORKDIR=/ | ||
Line 54: | Line 55: | ||
echo "Using $WORKDIR on $SLURMD_NODENAME" | echo "Using $WORKDIR on $SLURMD_NODENAME" | ||
echo | echo | ||
+ | |||
+ | # change to working directory on compute node | ||
+ | cd $WORKDIR | ||
# run the blast with 4 CPU threads (cores) | # run the blast with 4 CPU threads (cores) | ||
- | blastn -query ~/ | + | blastn -query ~/ |
- | All output is directed to '' | + | All output is directed to '' |
==== Check queue status ==== | ==== Check queue status ==== | ||
< | < |
using-slurm.txt · Last modified: 2022/11/03 11:38 by jean-baka