forked from uchicago-bio/RCC-Utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-info.sbatch
34 lines (28 loc) · 1.27 KB
/
node-info.sbatch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#SBATCH --output=%j.out
#SBATCH --error=%j.err
#SBATCH --job-name=blast-single-node
#SBATCH --nodes=1
#SBATCH --tasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1 # Number of threads per task
#SBATCH --partition=sandyb # 'sandby' has 16 cores/ 32G memory; look up what is appropriate for job
#SBATCH --mem-per-cpu=16000 # Default is 2000 (2G)
#SBATCH --mail-type=ALL
#SBATCH [email protected]
JOBNAME=$1
WORKDIR=$SLURM_JOBID"-"$JOBNAME
mkdir -p $WORKDIR
################################################################################
# We are interested in tracking how long these take to run. We also
# want to track how long the job was in the queue. Slurm keeps an
# output and error file for each job. All the standard output and
# error will be directed there.
################################################################################
echo "Starting Job id: $SLURM_JOBID"
date
lscpu
echo "Done with processing..."
date
`cp $0 $WORKDIR`
`mv $SLURM_JOBID.out $SLURM_JOBID.err $WORKDIR`