git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9980 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
5
lib/gpu/Makefile.lammps.standard
Normal file
5
lib/gpu/Makefile.lammps.standard
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Settings that the LAMMPS build will import when this package library is used
|
||||||
|
|
||||||
|
gpu_SYSINC =
|
||||||
|
gpu_SYSLIB = -lcudart -lcuda
|
||||||
|
gpu_SYSPATH = -L/usr/local/cuda/lib64
|
||||||
37
lib/gpu/Makefile.linux.double
Normal file
37
lib/gpu/Makefile.linux.double
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# /* ----------------------------------------------------------------------
|
||||||
|
# Generic Linux Makefile for CUDA
|
||||||
|
# - Change CUDA_ARCH for your GPU
|
||||||
|
# ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
# which file will be copied to Makefile.lammps
|
||||||
|
|
||||||
|
EXTRAMAKE = Makefile.lammps.standard
|
||||||
|
|
||||||
|
CUDA_HOME = /usr/local/cuda
|
||||||
|
NVCC = nvcc
|
||||||
|
|
||||||
|
# Tesla CUDA
|
||||||
|
CUDA_ARCH = -arch=sm_21
|
||||||
|
# newer CUDA
|
||||||
|
#CUDA_ARCH = -arch=sm_13
|
||||||
|
# older CUDA
|
||||||
|
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE
|
||||||
|
|
||||||
|
CUDA_PRECISION = -D_DOUBLE_DOUBLE
|
||||||
|
CUDA_INCLUDE = -I$(CUDA_HOME)/include
|
||||||
|
CUDA_LIB = -L$(CUDA_HOME)/lib64
|
||||||
|
CUDA_OPTS = -DUNIX -O3 -Xptxas -v --use_fast_math
|
||||||
|
|
||||||
|
CUDR_CPP = mpic++ -DMPI_GERYON -DUCL_NO_EXIT -DMPICH_IGNORE_CXX_SEEK
|
||||||
|
CUDR_OPTS = -O2 # -xHost -no-prec-div -ansi-alias
|
||||||
|
|
||||||
|
BIN_DIR = ./
|
||||||
|
OBJ_DIR = ./
|
||||||
|
LIB_DIR = ./
|
||||||
|
AR = ar
|
||||||
|
BSH = /bin/sh
|
||||||
|
|
||||||
|
CUDPP_OPT = -DUSE_CUDPP -Icudpp_mini
|
||||||
|
|
||||||
|
include Nvidia.makefile
|
||||||
|
|
||||||
37
lib/gpu/Makefile.linux.mixed
Normal file
37
lib/gpu/Makefile.linux.mixed
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# /* ----------------------------------------------------------------------
|
||||||
|
# Generic Linux Makefile for CUDA
|
||||||
|
# - Change CUDA_ARCH for your GPU
|
||||||
|
# ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
# which file will be copied to Makefile.lammps
|
||||||
|
|
||||||
|
EXTRAMAKE = Makefile.lammps.standard
|
||||||
|
|
||||||
|
CUDA_HOME = /usr/local/cuda
|
||||||
|
NVCC = nvcc
|
||||||
|
|
||||||
|
# Tesla CUDA
|
||||||
|
CUDA_ARCH = -arch=sm_21
|
||||||
|
# newer CUDA
|
||||||
|
#CUDA_ARCH = -arch=sm_13
|
||||||
|
# older CUDA
|
||||||
|
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE
|
||||||
|
|
||||||
|
CUDA_PRECISION = -D_SINGLE_DOUBLE
|
||||||
|
CUDA_INCLUDE = -I$(CUDA_HOME)/include
|
||||||
|
CUDA_LIB = -L$(CUDA_HOME)/lib64
|
||||||
|
CUDA_OPTS = -DUNIX -O3 -Xptxas -v --use_fast_math
|
||||||
|
|
||||||
|
CUDR_CPP = mpic++ -DMPI_GERYON -DUCL_NO_EXIT -DMPICH_IGNORE_CXX_SEEK
|
||||||
|
CUDR_OPTS = -O2 # -xHost -no-prec-div -ansi-alias
|
||||||
|
|
||||||
|
BIN_DIR = ./
|
||||||
|
OBJ_DIR = ./
|
||||||
|
LIB_DIR = ./
|
||||||
|
AR = ar
|
||||||
|
BSH = /bin/sh
|
||||||
|
|
||||||
|
CUDPP_OPT = -DUSE_CUDPP -Icudpp_mini
|
||||||
|
|
||||||
|
include Nvidia.makefile
|
||||||
|
|
||||||
Reference in New Issue
Block a user