mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6264 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
5bf395f4d7
commit
0a55075da6
|
@ -20,6 +20,10 @@ if (test $1 = 1) then
|
|||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&-L$(CUDA_INSTALL_PATH)\/lib64 -L$(CUDA_INSTALL_PATH)\/lib $(CUDA_USRLIB_CONDITIONAL) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&-lcuda -lcudart -lrt |' ../Makefile.package
|
||||
|
||||
# force rebuild of dependencies since adding -DLMP_USER_CUDA switch
|
||||
|
||||
touch ../accelerator_cuda.h
|
||||
|
||||
if (test -e ../atom_vec_angle.cpp) then
|
||||
cp atom_vec_angle_cuda.cpp ..
|
||||
cp atom_vec_angle_cuda.h ..
|
||||
|
@ -206,6 +210,10 @@ elif (test $1 = 0) then
|
|||
sed -i -e 's/[^ \t]*lrt[^ \t]* //g' ../Makefile.package
|
||||
fi
|
||||
|
||||
# force rebuild of dependencies since removing -DLMP_USER_CUDA switch
|
||||
|
||||
touch ../accelerator_cuda.h
|
||||
|
||||
rm ../atom_vec_angle_cuda.cpp
|
||||
rm ../atom_vec_atomic_cuda.cpp
|
||||
rm ../atom_vec_charge_cuda.cpp
|
||||
|
|
Loading…
Reference in New Issue