This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:gromacs [2013/11/22 16:34] swyngaard [Example Job Submission Script] |
howto:gromacs [2024/08/12 13:29] (current) alopis |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Gromacs ====== | ====== Gromacs ====== | ||
| - | ===== Initial Setup ===== | + | The available **Easy Scripts** (cpu and gpu versions) for Gromacs |
| - | In order to use Gromacs | + | |
| - | <code bash> | + | |
| - | export MODULEPATH=/ | + | |
| - | module add gromacs/ | + | |
| - | </ | + | |
| - | To complete the setup log out of the cluster | + | **qgromacs_2024-1, |
| - | ===== Example Job Submission Script ===== | + | **qgromacs_2024-1_gpu, |
| - | The following file is a Gromacs template job submission script that can used as a starting point for creating your own scripts: | + | |
| - | <file bash gromacs.job> | + | |
| - | #This job tests GROMACS, it requires the input file min.steep0.tpr to be in the working directory. | + | |
| - | #MSUB -l nodes=2: | ||
| - | #MSUB -l feature=dell | ||
| - | #MSUB -l walltime=24: | ||
| - | #MSUB -j oe | ||
| - | #MSUB -o out.log | ||
| - | #MSUB -d / | ||
| - | #MSUB -V | ||
| - | NP=`cat $PBS_NODEFILE | wc -l` | + | Execute any of these **Easy Scripts** on the login node (on a lustre subdirectory) and follow the prompts. |
| - | BIN=mdrun_mpi | + | This script handles PBS setup and submission. |
| - | ARGS=" | + | Sets up the mpi environment variables allowing you to run over multiple processors and nodes. |
| + | Examples of script execution are provided below. | ||
| - | mpirun -np $NP -machinefile $PBS_NODEFILE $BIN $ARGS | ||
| - | </ | ||
| - | This job submission script requires that the file '' | + | **Note**, please first include this **module load** - even better if your add this line to your .bashrc, then the Easy Scripts should be visible and available: |
| - | **NOTE:** Please ensure that all file I/O associated with your job only occurs in a sub-directory of your '' | + | module load chpc/easy_scripts |
| - | ===== Job Submission ===== | ||
| - | Submit the job using the following command: | ||
| - | <code bash> | ||
| - | msub gromacs.job | ||
| - | </ | ||
| - | ===== Example Expected Output ===== | + | EXAMPLE1 |
| + | Enter project name/ | ||
| + | CHEM0100 | ||
| + | Enter default filename for all file options (without any extension to the file) | ||
| + | test | ||
| + | Enter number of nodes on which to run job | ||
| + | 1 | ||
| + | Enter total walltime (hour: | ||
| + | 2:00 | ||
| + | Enter email address | ||
| + | testing@gmail.com | ||
| + | Generated pbs file for test | ||
| + | Do you wish to submit job to cluster (y/n) | ||
| + | y | ||
| + | |||
| + | | ||
| + | EXAMPLE2 [PLEASE TAKE NOTE OF EMPTY SPACES] | ||
| + | Enter project name/ | ||
| + | CHEM0100 | ||
| + | Enter default filename for all file options (without any extension to the file) | ||
| + | test | ||
| + | Enter number of nodes on which to run job | ||
| + | | ||
| + | Enter total walltime (hour: | ||
| + | | ||
| + | Enter email address | ||
| + | testing@gmail.com | ||
| + | Generated pbs file for test | ||
| + | Do you wish to submit job to cluster (y/n) | ||
| + | y | ||
| + | |||
| + | ====== Gromacs on GPU ====== | ||
| + | |||
| + | ** //Please note that you need to first be added to the gpu_1 queue before you can submit jobs to the GPU cluster// ** | ||
| + | |||
| + | Execute **qgromacs_2018-2_gpu**, | ||
| + | Examples of script execution are provided below. | ||
| + | |||
| + | EXAMPLE1 | ||
| + | Enter research programme name | ||
| + | CHEM0100 | ||
| + | Enter default filename for all file options (without any extension to the file) | ||
| + | test | ||
| + | Enter total walltime (hour: | ||
| + | 2:00 | ||
| + | Enter email address | ||
| + | testing@gmail.com | ||
| + | Generated pbs file for test | ||
| + | Do you wish to submit job to cluster (y/n) | ||
| + | y | ||
| + | |||
| + | |||
| + | EXAMPLE2 [PLEASE TAKE NOTE OF EMPTY SPACES] | ||
| + | Enter research programme name | ||
| + | CHEM0100 | ||
| + | Enter default filename for all file options (without any extension to the file) | ||
| + | test | ||
| + | Enter total walltime (hour: | ||
| + | | ||
| + | Enter email address | ||
| + | testing@gmail.com | ||
| + | Generated pbs file for test | ||
| + | Do you wish to submit job to cluster (y/n) | ||
| + | y | ||