Tutorial to run a file in HPC (example for Gromacs)
Tutorial to run a file in HPC (example for Gromacs)
Steps:
Prepare a system and ensure it is working in your local computer.
Transfer the files to the HPC System.
Command: scp -r localid@localip:/home/location userid@paramshakti.iitkgp.ac.in:/location
OR using WINSCP
Access the folder you want.
Create a script file.
e.g.
#!/bin/bash
#SBATCH -J job_name # name of the job
#SBATCH -p shared # name of the partition: available options "large, medium or shared"
#SBATCH -n 4 # no of processes or tasks
#SBATCH --cpus-per-task=4 # no of threads per process or task
#SBATCH -t 70:00:00 # walltime in HH:MM:SS, Max value 72:00:00
#list of modules you want to use, for example
module load apps/gromacs/2020/cpu
#name of the executable
exe="gmx_mpi"
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
#run the application
mpirun -bootstrap slurm -n $SLURM_NTASKS $exe mdrun -v -deffnm eql
Save the file as eql.sh
Run the command
sbatch eql.sh