-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathmakefile.gnu
More file actions
61 lines (47 loc) · 2.14 KB
/
makefile.gnu
File metadata and controls
61 lines (47 loc) · 2.14 KB
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
#!/bin/make -f
###############################################################################
# EXTERNAL LIBRARY PATHS
###############################################################################
# Enter here paths to GSL or EIGEN if they are not in your standard include
# path. DO NOT completely remove the entry, leave at least "./".
PROJECT_GSL=.//jet/home/xyttyxyx/selfcompiled-programs/lib/
PROJECT_EIGEN=/jet/home/xyttyxyx/selfcompiled-programs/compile/eigen-3.3.9/
###############################################################################
# COMPILERS AND FLAGS
###############################################################################
PROJECT_CC=g++
PROJECT_MPICC=mpic++
# OpenMP parallelization is disabled by default, add flag "-fopenmp" to enable.
PROJECT_CFLAGS=-O3 -march=native -std=c++11
PROJECT_CFLAGS_MPI=-Wno-long-long
PROJECT_DEBUG=-g -pedantic-errors -Wall -Wextra
PROJECT_TEST=--coverage -fno-default-inline -fno-inline -fno-inline-small-functions -fno-elide-constructors
PROJECT_AR=ar
PROJECT_ARFLAGS=-rcsv
PROJECT_CFLAGS_BLAS=
PROJECT_LDFLAGS_BLAS=-lblas -lgsl -lgslcblas
###############################################################################
# COMPILE-TIME OPTIONS
###############################################################################
# Do not use symmetry function groups.
#PROJECT_OPTIONS+= -DN2P2_NO_SF_GROUPS
# Do not use symmetry function cache.
#PROJECT_OPTIONS+= -DN2P2_NO_SF_CACHE
# Disable asymmetric polynomial symmetry functions.
#PROJECT_OPTIONS+= -DN2P2_NO_ASYM_POLY
# Build with dummy Stopwatch class.
#PROJECT_OPTIONS+= -DN2P2_NO_TIME
# Disable check for low number of neighbors.
#PROJECT_OPTIONS+= -DN2P2_NO_NEIGH_CHECK
# Use alternative (older) memory layout for symmetry function derivatives.
#PROJECT_OPTIONS+= -DN2P2_FULL_SFD_MEMORY
# Compile without MPI support.
#PROJECT_OPTIONS+= -DN2P2_NO_MPI
# Use BLAS together with Eigen.
PROJECT_OPTIONS+= -DEIGEN_USE_BLAS
# Disable all C++ asserts (also Eigen debugging).
#PROJECT_OPTIONS+= -DNDEBUG
# Use Intel MKL together with Eigen.
#PROJECT_OPTIONS+= -DEIGEN_USE_MKL_ALL
# Disable Eigen multi threading.
PROJECT_OPTIONS+= -DEIGEN_DONT_PARALLELIZE