-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob.sh
executable file
·41 lines (34 loc) · 1.3 KB
/
job.sh
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
35
36
37
38
39
40
41
#!/bin/bash
# Sample SLURM job script
# for TACC Stampede2 KNL nodes
#
# *** Serial Job on Normal Queue ***
#
# Last revised: 27 Jun 2017
#
# Notes:
#
# -- Copy/edit this script as desired. Launch by executing
# "sbatch knl.serial.slurm" on a Stampede2 login node.
#
# -- Serial codes run on a single node (upper case N = 1).
# A serial code ignores the value of lower case n,
# but slurm needs a plausible value to schedule the job.
#
# -- For a good way to run multiple serial executables at the
# same time, execute "module load launcher" followed
# by "module help launcher".
#----------------------------------------------------
#SBATCH -J myjob # Job name
#SBATCH -o myjob.o%j # Name of stdout output file
#SBATCH -e myjob.e%j # Name of stderr error file
#SBATCH -p skx-dev # Queue (partition) name
#SBATCH -N 2 # Total # of nodes (must be 1 for serial)
#SBATCH -n 2 # Total # of mpi tasks (should be 1 for serial)
#SBATCH -t 01:30:00 # Run time (hh:mm:ss)
#SBATCH -A A-ccsc
# Other commands must follow all #SBATCH directives...
export SP_OUTFILE=mpi.yaml
rm $SP_OUTFILE
~/snippets/shell_profiler/profile.sh ~/snippets/shell_profiler/test_mpi.sh asdfasdf
# ---------------------------------------------------