git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10165 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
5
lib/gpu/Makefile.lammps
Normal file
5
lib/gpu/Makefile.lammps
Normal file
@ -0,0 +1,5 @@
|
||||
# Settings that the LAMMPS build will import when this package library is used
|
||||
|
||||
gpu_SYSINC =
|
||||
gpu_SYSLIB = -lcudart -lcuda
|
||||
gpu_SYSPATH = -L/usr/local/cuda/lib64
|
||||
6
lib/gpu/Makefile.lammps.mingw-cross
Normal file
6
lib/gpu/Makefile.lammps.mingw-cross
Normal file
@ -0,0 +1,6 @@
|
||||
# Settings that the LAMMPS build will import when this package library is used
|
||||
# settings for OpenCL builds
|
||||
gpu_SYSINC =
|
||||
gpu_SYSLIB = -Wl,--enable-stdcall-fixup -L../../tools/mingw-cross$(LIBOBJDIR) -lOpenCL
|
||||
gpu_SYSPATH =
|
||||
|
||||
17
lib/gpu/Makefile.mingw32-cross
Normal file
17
lib/gpu/Makefile.mingw32-cross
Normal file
@ -0,0 +1,17 @@
|
||||
CUDA_HOME = ../../tools/mingw-cross/OpenCL
|
||||
|
||||
OCL_CPP = i686-w64-mingw32-g++ -O2 -march=i686 -mtune=generic -mfpmath=387 \
|
||||
-mpc64 -DMPI_GERYON -DUCL_NO_EXIT -I../../src/STUBS \
|
||||
-I$(CUDA_HOME)/include
|
||||
OCL_LINK = -Wl,--enable-stdcall-fixup -L$(CUDA_HOME)/../Obj_mingw32 -lOpenCL -L../../src/STUBS -lmpi_mingw32
|
||||
OCL_PREC = -D_SINGLE_DOUBLE
|
||||
OCL_TUNE = -DFERMI_OCL
|
||||
EXTRAMAKE = Makefile.lammps.mingw-cross
|
||||
|
||||
BIN_DIR = Obj_mingw32
|
||||
OBJ_DIR = Obj_mingw32
|
||||
LIB_DIR = Obj_mingw32
|
||||
AR = i686-w64-mingw32-ar
|
||||
BSH = /bin/sh
|
||||
|
||||
include Opencl.makefile
|
||||
19
lib/gpu/Makefile.mingw32-cross-mpi
Normal file
19
lib/gpu/Makefile.mingw32-cross-mpi
Normal file
@ -0,0 +1,19 @@
|
||||
CUDA_HOME = ../../tools/mingw-cross/OpenCL
|
||||
|
||||
OCL_CPP = i686-w64-mingw32-g++ -O2 -march=i686 -mtune=generic -mfpmath=387 \
|
||||
-mpc64 -DMPI_GERYON -DUCL_NO_EXIT -I$(CUDA_HOME)/include \
|
||||
-I../../tools/mingw-cross/mpich2-win32/include/ \
|
||||
-DMPICH_IGNORE_CXX_SEEK
|
||||
OCL_LINK = -Wl,--enable-stdcall-fixup -L$(CUDA_HOME)/../Obj_mingw32 -lOpenCL \
|
||||
-L../../tools/mingw-cross/mpich2-win32/lib -lmpi
|
||||
OCL_PREC = -D_SINGLE_DOUBLE
|
||||
OCL_TUNE = -DFERMI_OCL
|
||||
EXTRAMAKE = Makefile.lammps.mingw-cross
|
||||
|
||||
BIN_DIR = Obj_mingw32-mpi
|
||||
OBJ_DIR = Obj_mingw32-mpi
|
||||
LIB_DIR = Obj_mingw32-mpi
|
||||
AR = i686-w64-mingw32-ar
|
||||
BSH = /bin/sh
|
||||
|
||||
include Opencl.makefile
|
||||
18
lib/gpu/Makefile.mingw64-cross
Normal file
18
lib/gpu/Makefile.mingw64-cross
Normal file
@ -0,0 +1,18 @@
|
||||
CUDA_HOME = ../../tools/mingw-cross/OpenCL
|
||||
|
||||
OCL_CPP = x86_64-w64-mingw32-g++ -O3 -march=core2 -mtune=core2 -mpc64 \
|
||||
-msse2 -DMPI_GERYON -DUCL_NO_EXIT -I../../src/STUBS \
|
||||
-I$(CUDA_HOME)/include
|
||||
OCL_LINK = -Wl,--enable-stdcall-fixup -L$(CUDA_HOME)/../Obj_mingw64 -lOpenCL \
|
||||
-L../../src/STUBS -lmpi_mingw64
|
||||
OCL_PREC = -D_SINGLE_DOUBLE
|
||||
OCL_TUNE = -DFERMI_OCL
|
||||
EXTRAMAKE = Makefile.lammps.mingw-cross
|
||||
|
||||
BIN_DIR = Obj_mingw64
|
||||
OBJ_DIR = Obj_mingw64
|
||||
LIB_DIR = Obj_mingw64
|
||||
AR = x86_64-w64-mingw32-ar
|
||||
BSH = /bin/sh
|
||||
|
||||
include Opencl.makefile
|
||||
20
lib/gpu/Makefile.mingw64-cross-mpi
Normal file
20
lib/gpu/Makefile.mingw64-cross-mpi
Normal file
@ -0,0 +1,20 @@
|
||||
CUDA_HOME = ../../tools/mingw-cross/OpenCL
|
||||
|
||||
OCL_CPP = x86_64-w64-mingw32-g++ -O3 -march=core2 -mtune=core2 -mpc64 \
|
||||
-msse2 -DMPI_GERYON -DUCL_NO_EXIT -I$(CUDA_HOME)/include \
|
||||
-I../../tools/mingw-cross/mpich2-win64/include/ \
|
||||
-DMPICH_IGNORE_CXX_SEEK
|
||||
|
||||
OCL_LINK = -Wl,--enable-stdcall-fixup -L$(CUDA_HOME)/../Obj_mingw64 -lOpenCL \
|
||||
-L../../tools/mingw-cross/mpich2-win64/lib -lmpi
|
||||
OCL_PREC = -D_SINGLE_DOUBLE
|
||||
OCL_TUNE = -DFERMI_OCL
|
||||
EXTRAMAKE = Makefile.lammps.mingw-cross
|
||||
|
||||
BIN_DIR = Obj_mingw64-mpi
|
||||
OBJ_DIR = Obj_mingw64-mpi
|
||||
LIB_DIR = Obj_mingw64-mpi
|
||||
AR = x86_64-w64-mingw32-ar
|
||||
BSH = /bin/sh
|
||||
|
||||
include Opencl.makefile
|
||||
@ -101,7 +101,10 @@ CBNS = $(OBJ_DIR)/device.cubin $(OBJ_DIR)/device_cubin.h \
|
||||
$(OBJ_DIR)/lj_coul_debye.cubin $(OBJ_DIR)/lj_coul_debye_cubin.h \
|
||||
$(OBJ_DIR)/coul_dsf.cubin $(OBJ_DIR)/coul_dsf_cubin.h
|
||||
|
||||
all: $(GPU_LIB) $(EXECS)
|
||||
all: $(OBJ_DIR) $(GPU_LIB) $(EXECS)
|
||||
|
||||
$(OBJ_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(OBJ_DIR)/cudpp.o: cudpp_mini/cudpp.cpp
|
||||
$(CUDR) -o $@ -c cudpp_mini/cudpp.cpp -Icudpp_mini
|
||||
|
||||
@ -73,7 +73,10 @@ KERS = $(OBJ_DIR)/device_cl.h $(OBJ_DIR)/atom_cl.h \
|
||||
|
||||
OCL_EXECS = $(BIN_DIR)/ocl_get_devices
|
||||
|
||||
all: $(OCL_LIB) $(EXECS)
|
||||
all: $(OBJ_DIR) $(OCL_LIB) $(EXECS)
|
||||
|
||||
$(OBJ_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(OBJ_DIR)/atom_cl.h: lal_atom.cu lal_preprocessor.h
|
||||
$(BSH) ./geryon/file_to_cstr.sh atom lal_preprocessor.h lal_atom.cu $(OBJ_DIR)/atom_cl.h
|
||||
|
||||
Reference in New Issue
Block a user