forked from lariszakrista/Parallelization_Workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch_script_template.sh
More file actions
27 lines (20 loc) · 953 Bytes
/
batch_script_template.sh
File metadata and controls
27 lines (20 loc) · 953 Bytes
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
#!/bin/bash
#SBATCH --nodes=1 # Number of requested nodes
#SBATCH --time=0:05:00 # Max wall time
#SBATCH --qos=debug # Specify debug QOS
#SBATCH --partition=shas # Specify Summit haswell nodes
#SBATCH --ntasks=24 # Number of tasks per job
#SBATCH --job-name=Matlab_Gen_Parallel # Job submission name
#SBATCH --output=MATLAB_GEN_PARALLEL.%j.out # Output file name with Job ID
# Written by: Shelley Knuth
# Date: 24 February 2014
# Updated: 21 April 2017
# Purpose: This script calls a Matlab parallel program
# purge all existing modules
module purge
# load the matlab module
module load matlab
# The directory where you want the job to run
cd /projects/$USER/tutorials/parallelization_workshop/new
# Run matlab without a GUI and ask for all available workers
matlab -nosplash -nodesktop -r "clear; num_workers=$SLURM_NTASKS; parallel_std;"