User Tools

Site Tools


acelab:namd

This is an old revision of the document!


General Info

NAMD is a parallel, object-oriented molecular dynamics code designed for high-performance simulation of large biomolecular systems.

Installation Guide
cd ~
mkdir NAMD
cd NAMD
mkdir code
mkdir bench
cd code

The code is shipped as a compiled binary, which has proven sufficient for testing. There are two versions available below; for x86 processors, as well as for CUDA enabled GPUs. x86 version: NAMD_2.10_Linux-x86_64-ibverbs-smp.tar.gz <br> CUDA version: NAMD_2.10_Linux-x86_64-ibverbs-smp-CUDA.tar.gz

Download the two tars into the current directory.

tar -xf NAMD_2.10_Linux-x86_64-ibverbs-smp.tar.gz <br>
tar -xf NAMD_2.10_Linux-x86_64-ibverbs-smp-CUDA.tar.gz
cd ../bench
Benchmark

Before beginning the benchmark, ensure that the correct version of the code is sourced,

export PATH=/home/$USER/NAMD/code/NAMD_2.10_Linux-x86_64-ibverbs-smp/:$PATH

or

export PATH=/home/$USER/NAMD/code/NAMD_2.10_Linux-x86_64-ibverbs-smp-CUDA/:$PATH

There are two benchmarks setup for NAMD, which will work with both the CUDA and x86 versions. The smaller test case is the apoa1 benchmark, with 2500 timesteps and 250 step output frequency: Apoa1.tar.gz <br> The larger test case is the STMV benchmark, with 1500 timesteps and 500 step output frequency: Stmv.tar.gz

NOTE: the benchmark calculates a once off FFT based on the number of cores used, so each test should be run twice to avoid this overhead.

CPU Benchmark

To run the benchmark for x86 CPUs, use the following command:

namd2 +idlepoll +p<N> <CONFIGFILE> 

Note, the config file has the extension .namd

A Dell C4130 with 24 Haswell cores completed the apoa1 test in 124 seconds, and the STMV test in 794 seconds.

GPU Benchmark

To run the benchmark for CUDA GPUs, use the following command:

namd2 +idlepoll +p<N> +devices <0,...,n> <CONFIGFILE>

Note, tests have shown that in order to service the GPUs effectively, 4-6 CPU threads per GPU is optimal.

A Dell C4130 with 4 Nvidia K80s (8 GPUs) produced to results below:

{| class=“wikitable”

! GPUs ! apoa1 (seconds) ! STMV (seconds)

/var/www/wiki/data/attic/acelab/namd.1441114692.txt.gz · Last modified: 2015/09/01 15:38 by mcawood