git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9979 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -14,28 +14,40 @@
|
|||||||
This directory has source files to build a library that LAMMPS
|
This directory has source files to build a library that LAMMPS
|
||||||
links against when using the GPU package.
|
links against when using the GPU package.
|
||||||
|
|
||||||
|
This library must be built with a C++ compiler, before LAMMPS is
|
||||||
|
built, so LAMMPS can link against it.
|
||||||
|
|
||||||
|
Build the library using one of the provided Makefile.* files or create
|
||||||
|
your own, specific to your compiler and system. For example:
|
||||||
|
|
||||||
|
make -f Makefile.linux
|
||||||
|
|
||||||
When you are done building this library, two files should
|
When you are done building this library, two files should
|
||||||
exist in this directory:
|
exist in this directory:
|
||||||
|
|
||||||
libgpu.a the library LAMMPS will link against
|
libgpu.a the library LAMMPS will link against
|
||||||
Makefile.lammps settings the LAMMPS Makefile will import
|
Makefile.lammps settings the LAMMPS Makefile will import
|
||||||
|
|
||||||
The latter file will have settings like this (can be omitted if blank):
|
Makefile.lammps is created by the make command, by copying one of the
|
||||||
|
Makefile.lammps.* files. See the EXTRAMAKE setting at the top of the
|
||||||
|
Makefile.* files.
|
||||||
|
|
||||||
gpu_SYSINC =
|
IMPORTANT: You must examine the final Makefile.lammps to insure it is
|
||||||
gpu_SYSLIB = -lcudart -lcuda
|
correct for your system, else the LAMMPS build will likely fail.
|
||||||
gpu_SYSPATH = -L/usr/local/cuda/lib64
|
|
||||||
|
|
||||||
SYSINC is for settings needed to compile LAMMPS source files
|
Makefile.lammps has settings for 3 variables:
|
||||||
SYSLIB is for additional system libraries needed by this package
|
|
||||||
SYSPATH is the path(s) to where those libraries are
|
|
||||||
|
|
||||||
You must insure these settings are correct for your system, else
|
user-gpu_SYSINC = leave blank for this package
|
||||||
the LAMMPS build will likely fail.
|
user-gpu_SYSLIB = CUDA libraries needed by this package
|
||||||
|
user-gpu_SYSPATH = path(s) to where those libraries are
|
||||||
|
|
||||||
|
Because you have the CUDA compilers on your system, you should have
|
||||||
|
the needed libraries. If the CUDA developement tools were installed
|
||||||
|
in the standard manner, the settings in the Makefile.lammps.standard
|
||||||
|
file should work.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
GENERAL NOTES
|
GENERAL NOTES
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
@ -146,7 +158,6 @@ NOTE: The lj/cut/coul/long/gpu, cg/cmm/coul/long/gpu, coul/long/gpu,
|
|||||||
if the KSPACE package has been installed.
|
if the KSPACE package has been installed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXAMPLE BUILD PROCESS
|
EXAMPLE BUILD PROCESS
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user