git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7048 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-10-07 23:52:06 +00:00
parent c8fa1bd5df
commit 4591d9958d
3 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@
precision ?= 1
#GPU architecture (compute capability): 13, 20, 21
arch ?= 20
arch ?= 21
#Using cufft (should not be changed)
cufft ?= 1

View File

@ -1,6 +1,6 @@
# 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_USRLIB_CONDITIONAL = -L/usr/local/cuda/lib -L/usr/local/cuda/lib64 -lcufft
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
user-cuda_SYSINC = ${CUDA_FLAGS}
user-cuda_SYSLIB = -lcuda -lcudart -lrt

View File

@ -20,8 +20,10 @@
CUDA_HOME = /usr/local/cuda
NVCC = nvcc
# Tesla CUDA
CUDA_ARCH = -arch=sm_21
# newer CUDA
CUDA_ARCH = -arch=sm_13
#CUDA_ARCH = -arch=sm_13
# older CUDA
#CUDA_ARCH = -arch=sm_10 -DCUDA_PRE_THREE