NAMD

From SciNet Users Documentation
Jump to navigation Jump to search

NAMD v2.13

This is the NAMD version 2.13 Scalable Molecular Dynamics package.

It was built directly on top of ibverbs, so it will run on InfiniBand nodes. Here is a sample run script:

#!/bin/bash
#
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=40
#SBATCH --time=00:15:00
#SBATCH --job-name namdtest

# The intel and openmpi modules are needed in order to have mpiexec in the path, to use it to launch the processes
module load intel
module load openmpi
module load namd/2.13

# DIRECTORY TO RUN - $SLURM_SUBMIT_DIR is directory job was submitted from
cd $SLURM_SUBMIT_DIR

# Generate NAMD nodelist
for n in `echo $SLURM_NODELIST | scontrol show hostnames`; do
  echo "host $n" >> nodelist.$SLURM_JOBID
done

NODELIST=nodelist.$SLURM_JOBID
cat $NODELIST

# Calculate total processes (P) and procs per node (PPN)
PPN=4
P=$(($SLURM_NTASKS * 2))

charmrun +p<procs> ++mpiexec  $SCINET_NAMD_ROOT/bin/namd2 input.namd

# Cleaning
rm $NODELIST

Full documentation for NAMD is available on their website: http://www.ks.uiuc.edu/Research/namd/

NAMD v2.12

This is the NAMD version 2.12 Scalable Molecular Dynamics package.

It was built directly on top of ibverbs, so it will run on InfiniBand nodes. Here is a sample run script:

#!/bin/bash
#
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=40
#SBATCH --time=00:15:00
#SBATCH --job-name namdtest

# Note that the module will likely be taken out of experimental mode at some point.
module load namd/.experimental-2.12-ibverbs-smp

# DIRECTORY TO RUN - $SLURM_SUBMIT_DIR is directory job was submitted from
cd $SLURM_SUBMIT_DIR

# Generate NAMD nodelist
for n in `echo $SLURM_NODELIST | scontrol show hostnames`; do
  echo "host $n" >> nodelist.$SLURM_JOBID
done

NODELIST=nodelist.$SLURM_JOBID
cat $NODELIST

# Calculate total processes (P) and procs per node (PPN)
PPN=4
P=$(($SLURM_NTASKS * 2))

charmrun ++verbose +p $P ++ppn $PPN ++nodelist $NODELIST $SCINET_NAMD_ROOT/bin/namd2 input.namd

# Cleaning
rm $NODELIST

Full documentation for NAMD is available on their website: http://www.ks.uiuc.edu/Research/namd/