forked from dmalhotra/pvfmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeVariables.in
44 lines (33 loc) · 1.53 KB
/
MakeVariables.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Load this file inside your Makefile and use the variables CXXFLAGS_PVFMM and
# LDLIBS_PVFMM for compiling your code. You can use examples/Makefile as a
# template makefile for your projects linking to this library.
INSTALL_DIR_PVFMM = @prefix@
TOP_SRCDIR_PVFMM = @abs_top_srcdir@
PKG_SUBDIR_PVFMM =
# Compiler and flags.
CXX_PVFMM = @MPICXX@
INTEL_OFFLOAD_OK=@intel_offload_ok@
# The PVFMM library and headers.
PVFMM_INCLUDES = -I$(TOP_SRCDIR_PVFMM)/include$(PKG_SUBDIR_PVFMM)
PVFMM_LIBS = -L$(TOP_SRCDIR_PVFMM)/lib$(PKG_SUBDIR_PVFMM) -lpvfmm
# Add FFTW include and lib paths.
FFTW_INCLUDES_PVFMM = @FFTW_INCLUDE@
FFTW_LIBS_PVFMM = @FFTW_LIB@ @FFTWF_LIB@
# BLAS, LAPACK libs.
BLAS_LAPACK_LIB_PVFMM = @LAPACK_LIBS@ @BLAS_LIBS@ @FLIBS@
# X include and lib paths.
X_INCLUDES_PVFMM = @X_INCLUDES@
X_LIBS_PVFMM = @X_LIBS@
# nvcc compiler and flags.
NVCC_PVFMM = @NVCC@
NVCCFLAGS_PVFMM = @NVCCFLAGS@ @CUDA_CFLAGS@ $(PVFMM_INCLUDES)
# CUDA include and libs.
CUDA_CFLAGS_PVFMM = @CUDA_CFLAGS@
CUDA_LDLIBS_PVFMM = @CUDA_LDLIBS@
# Add all CXXFLAGS_PVFMM and LDLIBS_PVFMM
CXXFLAGS_PVFMM = @CXXFLAGS@ $(PVFMM_INCLUDES) $(FFTW_INCLUDES_PVFMM) $(X_INCLUDES_PVFMM) $(CUDA_CFLAGS_PVFMM)
LDLIBS_PVFMM = @LDFLAGS@ $(PVFMM_LIBS) $(FFTW_LIBS_PVFMM) $(BLAS_LAPACK_LIB_PVFMM) $(X_LIBS_PVFMM) $(CUDA_LDLIBS_PVFMM) @LIBS@
LDFLAGS_PVFMM = $(LDLIBS_PVFMM) # Deprecated, use LDLIBS_PVFMM instead
# Add SCTL
CXXFLAGS_PVFMM += -DSCTL_HAVE_PVFMM -DSCTL_HAVE_BLAS -DSCTL_HAVE_LAPACK -DSCTL_HAVE_FFTW -DSCTL_PROFILE=5 -DSCTL_VERBOSE
CXXFLAGS_PVFMM += -I$(TOP_SRCDIR_PVFMM)/SCTL/include