summarylogtreecommitdiffstats
path: root/plumed.psmp
blob: 9e8a1ea4bc96db29234b7ed960f9a0408d758088 (plain)
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
CC          = gcc
CXX         = g++
CPP         = 
FC          = mpifort
LD          = mpifort

AR          = ar -r

DFLAGS      = -D__FFTW3                                         \
              -D__LIBINT                                        \
              -D__parallel -D__SCALAPACK                        \
              -D__ELPA                                          \
              -D__LIBXSMM                                       \
              -D__LIBXC                                         \
              -D__SPGLIB                                        \
              -D__PLUMED2

INCS        = -I/usr/include                                    \
              -I/usr/include/elpa_openmp-$(_elpaver)/elpa       \
              -I/usr/include/elpa_openmp-$(_elpaver)/modules

OPTFLAGS    = -O2 -march=native -fopenmp

CFLAGS      = $(DFLAGS) $(INCS) $(OPTFLAGS)
CXXFLAGS    = $(DFLAGS) $(INCS) $(OPTFLAGS) -std=c++11
CPPFLAGS    = 
FCFLAGS     = $(DFLAGS) $(INCS) $(OPTFLAGS)                     \
              -ffree-form -ffree-line-length-none               \
              -fallow-argument-mismatch                         \
              -fno-tree-loop-vectorize

LDFLAGS     = $(FCFLAGS)

LIBS        = -lxsmmf -lxsmm                                    \
              -lelpa_openmp -lscalapack -lblas -llapack         \
              -lfftw3 -lfftw3_threads                           \
              /usr/lib/libint2.a                                \
              -lxcf03 -lxc                                      \
              -lsymspg                                          \
              -l$(_plumed)                                      \
              -lstdc++ -lpthread -lm -ldl -lz

include /usr/lib/$(_plumed)/src/lib/Plumed.inc