-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
67 lines (54 loc) · 1.77 KB
/
Makefile.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ==============================================================================
# Path settings
#export intelroot=$HOME/intel
#export PATH=$intelroot/bin:$PATH
#export PATH=$intelroot/include:$PATH
#export PATH=$intelroot/include/intel64:$PATH
#export LD_LIBRARY_PATH=$intelroot/lib:$LD_LIBRARY_PATH
#export PATH=$intelroot/mkl/include:$PATH
#export PATH=$intelroot/mkl/include/intel64/lp64:$PATH
#export LD_LIBRARY_PATH=$intelroot/mkl/lib:$LD_LIBRARY_PATH
#export mpiroot=$HOME/intel/mpi
#export PATH=$mpiroot/include:$mpiroot/bin:$mpiroot/lib:$PATH
#export LD_LIBRARY_PATH=$mpiroot/lib:$LD_LIBRARY_PATH
# ==============================================================================
# Compilation settings
fc = mpiifx
cc = icx
cxx = icpx
ll = ar
intelroot = $(HOME)/intel
mklroot = $(intelroot)/mkl
mpiroot = $(intelroot)/mpi
base_inc = \
-I$(mklroot)/include \
-I$(mklroot)/include/fftw \
-I$(mklroot)/include/intel64/lp64 \
-I$(mpiroot)/include
# -I$(intelroot)/include \
# -I$(intelroot)/include/intel64 \
base_lflags = \
-qmkl -qopenmp -lstdc++ -lstdc++fs -liomp5 -lpthread -lm \
-L$(intelroot)/lib \
-L$(mklroot)/lib \
-L$(mpiroot)/lib \
-L$(mpiroot)/lib/release \
$(mklroot)/lib/libmkl_core.a \
$(mklroot)/lib/libmkl_intel_thread.a \
$(mklroot)/lib/libmkl_intel_lp64.a \
$(mklroot)/lib/libmkl_blas95_lp64.a \
$(mklroot)/lib/libmkl_lapack95_lp64.a
base_fflags = \
-O3 -fpp -traceback -warn unused -module $(moddir) -qmkl \
-assume byterecl -assume buffered_io -qopenmp -heap-arrays \
-gen-interfaces
# -align all -falign-loops -xHost \
# -O0 -g -check bounds
base_cflags = \
-O3 -w -qopenmp -std=c17 \
-Wno-implicit-function-declaration \
-Wno-implicit-int \
-Wno-pointer-to-int-cast
# -U__STRICT_ANSI__
base_cxxflags = \
-O3 -w -qopenmp -std=c++20 -lstdc++fs