Difference between revisions of "Amber Job Sample Scripts"

From UFRC
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:Software]]
 +
See also: [[SLURM Commands]]
 +
 +
[[Amber|Back to the Amber app page]]
 
= Serial Submission Script =
 
= Serial Submission Script =
  
Line 5: Line 9:
 
<source lang=bash>
 
<source lang=bash>
 
#!/bin/bash
 
#!/bin/bash
#SBATCH --job-name=<job_name>
+
#SBATCH --job-name=<JOBNAME>
#SBATCH --mail-user=<user@ufl.edu>
+
#SBATCH --mail-user=<EMAIL>
 
#SBATCH --mail-type=FAIL,END
 
#SBATCH --mail-type=FAIL,END
#SBATCH --output <out.out>
+
#SBATCH --output <my_job-%j.out>
#SBATCH --error <out.err>
+
#SBATCH --error <my_job-%j.err>
 
#SBATCH --nodes=1
 
#SBATCH --nodes=1
 
#SBATCH --ntasks=1
 
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=1G
+
#SBATCH --mem-per-cpu=2G
 
#SBATCH --time=01:00:00
 
#SBATCH --time=01:00:00
 +
#SBATCH --account=<GROUP>
 +
#SBATCH --array=<BEGIN-END>
  
 
module load intel/2016.0.109 amber/14
 
module load intel/2016.0.109 amber/14
 
echo $PBS_O_WORKDIR
 
cd $PBS_O_WORKDIR
 
  
 
sander -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd
 
sander -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd
Line 29: Line 32:
 
<source lang=bash>
 
<source lang=bash>
 
#!/bin/bash
 
#!/bin/bash
#SBATCH --job-name=<job_name>
+
#SBATCH --job-name=<JOBNAME>
#SBATCH --mail-user=<user@ufl.edu>
+
#SBATCH --mail-user=<EMAIL>
 
#SBATCH --mail-type=FAIL,END
 
#SBATCH --mail-type=FAIL,END
#SBATCH --output <out.out>
+
#SBATCH --output <my_job-%j.out>
#SBATCH --error <out.err>
+
#SBATCH --error <my_job-%j.err>
 
#SBATCH --nodes=1
 
#SBATCH --nodes=1
#SBATCH --ntasks=1
+
#SBATCH --ntasks=<number of tasks>
#SBATCH --mem-per-cpu=1G
+
#SBATCH --mem-per-cpu=2G
 
#SBATCH --time=01:00:00
 
#SBATCH --time=01:00:00
 +
#SBATCH --account=<GROUP>
 +
#SBATCH --array=<BEGIN-END>
  
 
module load intel/2016.0.109 openmpi/1.10.2 amber/14
 
module load intel/2016.0.109 openmpi/1.10.2 amber/14
  
echo $PBS_O_WORKDIR
 
cd $PBS_O_WORKDIR
 
  
 
mpiexec sander.MPI -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd
 
mpiexec sander.MPI -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd
 
</source>
 
</source>

Latest revision as of 21:18, 5 December 2022

See also: SLURM Commands

Back to the Amber app page

Serial Submission Script

The following job script runs sander on a single processor.

#!/bin/bash
#SBATCH --job-name=<JOBNAME>
#SBATCH --mail-user=<EMAIL>
#SBATCH --mail-type=FAIL,END
#SBATCH --output <my_job-%j.out>
#SBATCH --error <my_job-%j.err>
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=2G
#SBATCH --time=01:00:00
#SBATCH --account=<GROUP>
#SBATCH --array=<BEGIN-END>

module load intel/2016.0.109 amber/14

sander -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd

MPI Submission Script

The following job script runs sander.MPI on two nodes with four processors each.

#!/bin/bash
#SBATCH --job-name=<JOBNAME>
#SBATCH --mail-user=<EMAIL>
#SBATCH --mail-type=FAIL,END
#SBATCH --output <my_job-%j.out>
#SBATCH --error <my_job-%j.err>
#SBATCH --nodes=1
#SBATCH --ntasks=<number of tasks>
#SBATCH --mem-per-cpu=2G
#SBATCH --time=01:00:00
#SBATCH --account=<GROUP>
#SBATCH --array=<BEGIN-END>

module load intel/2016.0.109 openmpi/1.10.2 amber/14


mpiexec sander.MPI -O -i amber.in -o amber.log -p amber.prmtop  -c amber.inpcrd