2013-05-31 04:10:54 +08:00
|
|
|
# /* ----------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
|
2014-09-04 23:42:15 +08:00
|
|
|
# Kepler CUDA
|
|
|
|
#CUDA_ARCH = -arch=sm_35
|
2013-05-31 04:10:54 +08:00
|
|
|
# Tesla CUDA
|
|
|
|
CUDA_ARCH = -arch=sm_21
|
|
|
|
# newer CUDA
|
|
|
|
#CUDA_ARCH = -arch=sm_13
|
|
|
|
# older CUDA
|
|
|
|
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE
|
|
|
|
|
2014-06-14 06:09:12 +08:00
|
|
|
# this setting should match LAMMPS Makefile
|
|
|
|
# one of LAMMPS_SMALLBIG (default), LAMMPS_BIGBIG and LAMMPS_SMALLSMALL
|
|
|
|
|
|
|
|
LMP_INC = -DLAMMPS_SMALLBIG
|
|
|
|
|
|
|
|
# precision for GPU calculations
|
|
|
|
# -D_SINGLE_SINGLE # Single precision for all calculations
|
|
|
|
# -D_DOUBLE_DOUBLE # Double precision for all calculations
|
|
|
|
# -D_SINGLE_DOUBLE # Accumulation of forces, etc. in double
|
|
|
|
|
2013-05-31 04:10:54 +08:00
|
|
|
CUDA_PRECISION = -D_SINGLE_DOUBLE
|
2014-06-14 06:09:12 +08:00
|
|
|
|
2013-05-31 04:10:54 +08:00
|
|
|
CUDA_INCLUDE = -I$(CUDA_HOME)/include
|
2019-12-12 06:29:42 +08:00
|
|
|
CUDA_LIB = -L$(CUDA_HOME)/lib64 -L$(CUDA_HOME)/lib64/stubs
|
2018-12-04 08:27:03 +08:00
|
|
|
CUDA_OPTS = -DUNIX -O3 --use_fast_math
|
2013-05-31 04:10:54 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|