lammps/lib/gpu
sjplimp e7d5e47e27 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3215 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-10-12 15:35:28 +00:00
..
Makefile.nvidia git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3059 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:58:35 +00:00
README git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
gb_gpu.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3145 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-09-04 15:03:44 +00:00
gb_gpu_extra.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
gb_gpu_kernel.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3145 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-09-04 15:03:44 +00:00
gb_gpu_memory.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
gb_gpu_memory.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
lj_gpu.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
lj_gpu_kernel.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3145 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-09-04 15:03:44 +00:00
lj_gpu_memory.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
lj_gpu_memory.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
nvc_device.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
nvc_device.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
nvc_get_devices.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
nvc_macros.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
nvc_memory.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
nvc_timer.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
nvc_traits.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
pair_gpu_atom.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3215 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-10-12 15:35:28 +00:00
pair_gpu_atom.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
pair_gpu_nbor.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
pair_gpu_nbor.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3048 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-11 19:00:24 +00:00
pair_gpu_texture.h git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00
pair_tex_tar.cu git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3056 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2009-08-13 16:05:41 +00:00

README

/***************************************************************************
                                   README
                             -------------------
                               W. Michael Brown

  README for building LAMMPS GPU Library

 __________________________________________________________________________
    This file is part of the LAMMPS GPU Library
 __________________________________________________________________________

    begin                : Thu Jun 25 2009
    copyright            : (C) 2009 by W. Michael Brown
    email                : wmbrown@sandia.gov
 ***************************************************************************/

/* -----------------------------------------------------------------------
   Copyright (2009) Sandia Corporation.  Under the terms of Contract
   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
   certain rights in this software.  This software is distributed under 
   the GNU General Public License.
   ----------------------------------------------------------------------- */

                          GENERAL NOTES
                          
This library, pair_gpu_lib.a, provides routines for GPGPU acceleration
of LAMMPS pair styles.  Currently, only CUDA enabled GPUs are
supported.  Compilation of this library requires installing the CUDA
GPU driver and CUDA toolkit for your operating system. In addition to
the LAMMPS library, the binary nvc_get_devices will also be
built. This can be used to query the names and properties of GPU
devices on your system.

NOTE: Installation of the CUDA SDK is not required.

Current pair styles supporting GPU Accelartion:

  1. lj/cut/gpu
  2. gayberne/gpu

                     MULTIPLE LAMMPS PROCESSES
                     
When using GPGPU acceleration, you are restricted to one physical GPU
per LAMMPS process. This can be multiple GPUs on a single node or
across multiple nodes. Intructions on GPU assignment can be found in
the LAMMPS documentation.

                            SPEEDUPS

The speedups that can be obtained using this library are highly
dependent on the GPU architecture and the computational expense of the
pair potential. When comparing a single precision Tesla C1060 run to a
serial Intel Xeon 5140 2.33 GHz serial run, the speedup is ~4.42x for
lj/cut with a cutoff of 2.5. For gayberne with a cutoff of 7, the
speedup is >103x for 8000 particles. The speedup will improve with an
increase in the number of particles or an increase in the cutoff.

                    BUILDING AND PRECISION MODES

To build, edit the CUDA_CPP, CUDA_ARCH, CUDA_PREC, and CUDA_LINK files for
your machine. Type make. Additionally, the GPU package must be installed and
compiled for LAMMPS. The library supports 3 precision modes as determined by 
the CUDA_PREC variable:

  CUDA_PREC = -D_SINGLE_SINGLE  # Single precision for all calculations
  CUDA_PREC = -D_DOUBLE_DOUBLE  # Double precision for all calculations
  CUDA_PREC = -D_SINGLE_DOUBLE  # Accumulation of forces, etc. in double

NOTE: Double precision is only supported on certain GPUS (with
      compute capability>=1.3).
      
NOTE: The gayberne/gpu pair style will only be installed if the ASPHERE
      package has been installed before installing the GPU package in LAMMPS.

                           GPU MEMORY

Upon initialization of the pair style, the library will reserve memory
for 64K atoms per GPU or 70% of each cards GPU memory, whichever value
is limiting.  The value of 70% can be changed by editing the
PERCENT_GPU_MEMORY definition in the source file. The value of 64K
cannot be increased and is the maximum number of atoms allowed per
GPU. Using the 'neigh_modify one' modifier in your LAMMPS input script
can help to increase maximum number of atoms per GPU for cards with
limited memory.