Skip to content

Commit

Permalink
Merge pull request #33 from CurtisColwell/33_slurm_submit
Browse files Browse the repository at this point in the history
33 slurm submit
  • Loading branch information
CurtisColwell authored Oct 29, 2019
2 parents 68bc399 + a3ad29a commit 7dec72e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,12 @@ exactly or the script will not be able to translate the energy back to the base

## Using with SLURM

These jobs can be submitted to a SLURM scheduler by creating an .srun file that runs the bash
script.
These jobs can be submitted to a SLURM scheduler by running slurm.bash with the name of
the molecule to submit.
```
bash slurm.bash input/example-molecule
```
In slurm.bash, the partition defaults to short, but can be changed by editing the file. In
slurm_submit.srun, the number of processors defaults to 28, but can be changed by changing
the number in the header AND in the bash command. The level of theory can be changed in the
bash command as well.
8 changes: 8 additions & 0 deletions slurm.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!bin/bash

set -e

inputname=$(basename -- "$1")
inputname="${inputname%.*}"

sbatch --job-name=$inputname --partition=short --output="output/"$inputname".txt" --account=$GROUP_NAME "slurm_submit.srun"
7 changes: 7 additions & 0 deletions slurm_submit.srun
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
#SBATCH -N 1
#SBATCH -n 28

set -e

bash StrainViz.bash ${SLURM_JOB_NAME} 28 "M062X/6-31G(d)"

0 comments on commit 7dec72e

Please sign in to comment.