2010-11-23 08:40:35 +08:00
|
|
|
# /* ----------------------------------------------------------------------
|
2011-12-02 23:51:43 +08:00
|
|
|
# Generic Linux Makefile for OpenCL
|
2010-11-23 08:40:35 +08:00
|
|
|
# ------------------------------------------------------------------------- */
|
|
|
|
|
2013-05-31 04:04:31 +08:00
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
|
2013-08-23 22:41:20 +08:00
|
|
|
EXTRAMAKE = Makefile.lammps.opencl
|
2013-05-31 04:04:31 +08:00
|
|
|
|
2018-05-08 12:50:23 +08:00
|
|
|
# OCL_TUNE = -DFERMI_OCL # -- Uncomment for NVIDIA Fermi
|
2013-08-23 22:41:20 +08:00
|
|
|
# OCL_TUNE = -DKEPLER_OCL # -- Uncomment for NVIDIA Kepler
|
|
|
|
# OCL_TUNE = -DCYPRESS_OCL # -- Uncomment for AMD Cypress
|
2018-05-08 12:50:23 +08:00
|
|
|
OCL_TUNE = -DGENERIC_OCL # -- Uncomment for generic device
|
2013-08-23 22:41:20 +08:00
|
|
|
|
2014-01-29 08:08:18 +08:00
|
|
|
# this setting should match LAMMPS Makefile
|
2014-01-29 08:07:38 +08:00
|
|
|
# one of LAMMPS_SMALLBIG (default), LAMMPS_BIGBIG and LAMMPS_SMALLSMALL
|
|
|
|
|
|
|
|
LMP_INC = -DLAMMPS_SMALLBIG
|
2014-01-26 07:53:12 +08:00
|
|
|
|
|
|
|
OCL_INC = -I/usr/local/cuda/include # Path to CL directory
|
|
|
|
OCL_CPP = mpic++ $(DEFAULT_DEVICE) -O3 -DMPI_GERYON -DUCL_NO_EXIT -DMPICH_IGNORE_CXX_SEEK $(LMP_INC) $(OCL_INC)
|
2010-11-23 08:40:35 +08:00
|
|
|
OCL_LINK = -lOpenCL
|
2014-01-26 07:53:12 +08:00
|
|
|
OCL_PREC = -D_SINGLE_DOUBLE
|
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
|
|
|
|
|
|
|
|
include Opencl.makefile
|
|
|
|
|