forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7048 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
c8fa1bd5df
commit
4591d9958d
|
@ -3,7 +3,7 @@
|
||||||
precision ?= 1
|
precision ?= 1
|
||||||
|
|
||||||
#GPU architecture (compute capability): 13, 20, 21
|
#GPU architecture (compute capability): 13, 20, 21
|
||||||
arch ?= 20
|
arch ?= 21
|
||||||
|
|
||||||
#Using cufft (should not be changed)
|
#Using cufft (should not be changed)
|
||||||
cufft ?= 1
|
cufft ?= 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Settings that the LAMMPS build will import when this package library is used
|
# Settings that the LAMMPS build will import when this package library is used
|
||||||
CUDA_FLAGS = -I/usr/local/cuda/include -I../../lib/cuda -DUNIX -DFFT_CUFFT -DCUDA_PRECISION=1 -DCUDA_ARCH=20
|
CUDA_FLAGS := -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT -DCUDA_PRECISION=1 -DCUDA_ARCH=20
|
||||||
CUDA_USRLIB_CONDITIONAL = -L/usr/local/cuda/lib -L/usr/local/cuda/lib64 -lcufft
|
CUDA_USRLIB_CONDITIONAL := -L/usr/local/cuda/lib -L/usr/local/cuda/lib64 -lcufft
|
||||||
|
|
||||||
user-cuda_SYSINC = ${CUDA_FLAGS}
|
user-cuda_SYSINC = ${CUDA_FLAGS}
|
||||||
user-cuda_SYSLIB = -lcuda -lcudart -lrt
|
user-cuda_SYSLIB = -lcuda -lcudart -lrt
|
||||||
|
|
|
@ -20,8 +20,10 @@
|
||||||
CUDA_HOME = /usr/local/cuda
|
CUDA_HOME = /usr/local/cuda
|
||||||
NVCC = nvcc
|
NVCC = nvcc
|
||||||
|
|
||||||
|
# Tesla CUDA
|
||||||
|
CUDA_ARCH = -arch=sm_21
|
||||||
# newer CUDA
|
# newer CUDA
|
||||||
CUDA_ARCH = -arch=sm_13
|
#CUDA_ARCH = -arch=sm_13
|
||||||
# older CUDA
|
# older CUDA
|
||||||
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE
|
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue