2010-11-23 08:40:35 +08:00
|
|
|
# /* ----------------------------------------------------------------------
|
2011-12-02 23:51:43 +08:00
|
|
|
# Generic Mac Makefile for CUDA
|
|
|
|
# - 32-bit (requires adding -m32 to LAMMPS Makefile)
|
|
|
|
# - Change CUDA_ARCH for your GPU
|
2010-11-23 08:40:35 +08:00
|
|
|
# ------------------------------------------------------------------------- */
|
|
|
|
|
2013-05-31 04:04:31 +08:00
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
|
|
|
|
EXTRAMAKE = Makefile.lammps.standard
|
|
|
|
|
2010-11-23 08:40:35 +08:00
|
|
|
CUDA_HOME = /usr/local/cuda
|
2011-12-02 23:51:43 +08:00
|
|
|
NVCC = nvcc -m64
|
2010-11-23 08:40:35 +08:00
|
|
|
|
|
|
|
CUDA_ARCH = -arch=sm_11
|
|
|
|
CUDA_PRECISION = -D_SINGLE_SINGLE
|
|
|
|
CUDA_INCLUDE = -I$(CUDA_HOME)/include
|
|
|
|
CUDA_LIB = -L$(CUDA_HOME)/lib
|
2018-12-04 08:27:03 +08:00
|
|
|
CUDA_OPTS = -DUNIX -DUCL_NO_EXIT -O3 --use_fast_math
|
2010-11-23 08:40:35 +08:00
|
|
|
|
2011-12-02 23:51:43 +08:00
|
|
|
CUDR_CPP = mpic++ -m64
|
|
|
|
CUDR_OPTS = -O2 -g
|
2010-11-23 08:40:35 +08:00
|
|
|
|
|
|
|
BIN_DIR = ./
|
2011-01-12 23:24:04 +08:00
|
|
|
OBJ_DIR = ./
|
2010-11-23 08:40:35 +08:00
|
|
|
LIB_DIR = ./
|
|
|
|
AR = ar
|
|
|
|
BSH = /bin/sh
|
|
|
|
|
2012-01-31 08:55:55 +08:00
|
|
|
CUDPP_OPT = -DUSE_CUDPP -Icudpp_mini
|
2012-01-25 23:31:54 +08:00
|
|
|
|
2010-11-23 08:40:35 +08:00
|
|
|
include Nvidia.makefile
|
|
|
|
|