forked from cp2k/cp2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux-x86-64-gfortran.ssmp
61 lines (49 loc) · 1.82 KB
/
Linux-x86-64-gfortran.ssmp
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
# Tested with: GFortran 8.3.0, LAPACK 3.9.1, FFTW 3.3.9, LIBINT 2.6.0,
# LIBXC 5.1.5, SPGLIB 1.16.0, LIBVORI 210412, LIBXSMM 1.16.1
# Author: Matthias Krack ([email protected], PSI, July 2021)
CC = gcc
FC = gfortran
LD = gfortran
AR = ar -r
FFTW_INC = $(GNU_PATH)/fftw/3.3.9/include
FFTW_LIB = $(GNU_PATH)/fftw/3.3.9/lib
LIBINT_INC = $(GNU_PATH)/libint/2.6.0-lmax-6/include
LIBINT_LIB = $(GNU_PATH)/libint/2.6.0-lmax-6/lib
LIBVORI_LIB = $(GNU_PATH)/libvori/210412/lib
LIBXC_INC = $(GNU_PATH)/libxc/5.1.5/include
LIBXC_LIB = $(GNU_PATH)/libxc/5.1.5/lib
LIBXSMM_INC = $(GNU_PATH)/libxsmm/1.16.1/include
LIBXSMM_LIB = $(GNU_PATH)/libxsmm/1.16.1/lib
SPGLIB_INC = $(GNU_PATH)/spglib/1.16.0/include
SPGLIB_LIB = $(GNU_PATH)/spglib/1.16.0/lib
CFLAGS = -O2 -fopenmp -fopenmp-simd -ftree-vectorize -funroll-loops -g -march=native -mtune=native
DFLAGS = -D__FFTW3
DFLAGS += -D__LIBINT
DFLAGS += -D__LIBVORI
DFLAGS += -D__LIBXC
DFLAGS += -D__LIBXSMM
DFLAGS += -D__SPGLIB
FCFLAGS = $(CFLAGS) $(DFLAGS)
FCFLAGS += -fbacktrace
FCFLAGS += -ffree-form
FCFLAGS += -ffree-line-length-none
FCFLAGS += -fno-omit-frame-pointer
FCFLAGS += -std=f2008
FCFLAGS += -I$(FFTW_INC)
FCFLAGS += -I$(LIBINT_INC)
FCFLAGS += -I$(LIBXC_INC)
FCFLAGS += -I$(LIBXSMM_INC)
LDFLAGS = $(FCFLAGS) -static
LIBS = $(LIBVORI_LIB)/libvori.a
LIBS += $(LIBXC_LIB)/libxcf03.a
LIBS += $(LIBXC_LIB)/libxc.a
LIBS += $(LIBINT_LIB)/libint2.a
LIBS += $(SPGLIB_LIB)/libsymspg.a
LIBS += $(FFTW_LIB)/libfftw3_omp.a
LIBS += $(FFTW_LIB)/libfftw3.a
LIBS += $(LIBXSMM_LIB)/libxsmmf.a
LIBS += $(LIBXSMM_LIB)/libxsmm.a
LIBS += $(LIBPATH)/liblapack.a
LIBS += $(LIBPATH)/libblas.a
LIBS += -ldl
LIBS += -lstdc++