HPC/Applications/lammps/Package GPU

From CNM Wiki
< HPC‎ | Applications‎ | lammps
Revision as of 22:41, November 5, 2012 by Stern (talk | contribs) (Created page with "== Package GPU == * Provides multi-threaded versions of most pair styles, all dihedral styles and a few fixes in LAMMPS; for the full list: *# In your browser, open http://lam...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Package GPU

  • Provides multi-threaded versions of most pair styles, all dihedral styles and a few fixes in LAMMPS; for the full list:
    1. In your browser, open http://lammps.sandia.gov/doc/Section_commands.html#comm
    2. Search for the string /cuda.
  • Supports one physical GPU per LAMMPS MPI process (CPU core).
  • Multiple MPI processes (CPU cores) can share a single GPU, and in many cases it will be more efficient to run this way.

Usage

  1. Use the command package gpu near the beginning of your LAMMPS control script. Since all Carbon GPU nodes have just one GPU per node, the first two arguments (called first and last) must always be zero; the split argument is not restricted.
  2. Do one of the following:
  3. In the job file or qsub command line, request a GPU #PBS -l nodes=...:gpus=1 (referring to the number of GPUs per node).
  4. Call the lmp_openmpi-gpu binary.

Input file examples

package gpu force 0 0 1.0
package gpu force 0 0 0.75
package gpu force/neigh 0 0 1.0
package gpu force/neigh 0 1 -1.0
…
pair_style      lj/charmm/coul/long/gpu 8.0 10.0

Job file example

#PBS -l nodes=...:gpus=1
…
mpirun … lmp_openmpi-gpu -in infile