Skip to content

Commit

Permalink
Initial commit of cluster batch job script
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwilliams20 committed Aug 23, 2022
1 parent f2814d3 commit 8c491ad
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cluster/sim.sbatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash
#
###############################################################################
# sim.sbatch
#
# Batch script that runs some number of trials in the simulation and writes out
# the output to disc.
###############################################################################
#
#SBATCH --time=24:00:00 # Job run time (hh:mm:ss)
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=16 # Number of task (cores/ppn) per node
#SBATCH --job-name=potential # Name of batch job
#SBATCH --partition=csl # Partition (queue)
##SBATCH --array=1 # Job array indicies
#SBATCH --output=jobarray.o%A_%a # Name of batch job output file
#SBATCH --error=jobarray.e%A_%a # Name of batch job error file
#SBATCH [email protected] # Send email notifications
##SBATCH --mail-type=END # Type of email notifications to send
#
###############################################################################

# Create a unique directory using the jobid
mkdir -p ${SLURM_SUBMIT_DIR}/${SLURM_ARRAY_TASK_ID}
cd ${SLURM_SUBMIT_DIR}/${SLURM_ARRAY_TASK_ID}

module load anaconda/2021-May/3
conda activate dec

# Q: why is this necessary?
conda init bash
exec $SHELL

python ../run/analysis.py


0 comments on commit 8c491ad

Please sign in to comment.