30 lines
978 B
Makefile
30 lines
978 B
Makefile
# /* ----------------------------------------------------------------------
|
|
# Linux Makefile for Intel oneAPI - Mixed precision
|
|
# ------------------------------------------------------------------------- */
|
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
EXTRAMAKE = Makefile.lammps.opencl
|
|
|
|
# this setting should match LAMMPS Makefile
|
|
# one of LAMMPS_SMALLBIG (default), LAMMPS_BIGBIG and LAMMPS_SMALLSMALL
|
|
|
|
LMP_INC = -DLAMMPS_SMALLBIG
|
|
|
|
OCL_INC = -I$(ONEAPI_ROOT)/compiler/latest/linux/include/sycl/
|
|
CPP_OPT = -xHost -O2 -qopenmp -qopenmp-simd -fp-model fast=2 -no-prec-div \
|
|
-qoverride-limits
|
|
OCL_CPP = mpiicpc -std=c++11 -diag-disable=10441 -DMPICH_IGNORE_CXX_SEEK \
|
|
$(LMP_INC) $(OCL_INC) $(CPP_OPT)
|
|
OCL_LINK = -L$(ONEAPI_ROOT)/compiler/latest/linux/lib -lOpenCL
|
|
OCL_PREC = -D_SINGLE_DOUBLE
|
|
OCL_TUNE = -DMPI_GERYON -DCUDA_PROXY -DGERYON_NUMA_FISSION -DUCL_NO_EXIT
|
|
|
|
BIN_DIR = ./
|
|
OBJ_DIR = ./
|
|
LIB_DIR = ./
|
|
AR = ar
|
|
BSH = /bin/sh
|
|
|
|
include Opencl.makefile
|