forked from dftbplus/dftbplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.config
92 lines (69 loc) · 3.26 KB
/
make.config
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
################################################################################
# Basic settings
################################################################################
# Build directory (default: _build within the source tree)
BUILDDIR := $(ROOT)/_build
# Installation directory
INSTALLDIR := $(ROOT)/_install
################################################################################
# Configuration of optional components
################################################################################
# Whether DFTB+ should support GPU-acceleration, if using remember to
# set MAGMADIR and LIB_LAPACK to point to the GPU BLAS (CUDADIR/...)
# in your make.arch file (see make.x86_64-linux-intel for an example)
WITH_GPU := 0
# Whether DFTB+ should support MPI-parallelism
WITH_MPI := 0
# Whether DFTB+ with MPI-parallelism should use the ELSI libraries
WITH_ELSI := 0
# Whether the ELSI libraries are compiled with PEXSI support
WITH_PEXSI := 0
# Whether the socket library (external control) should be linked.
WITH_SOCKETS := 0
# Whether the ARPACK library (needed by TD-DFTB) should be linked with DFTB+
# Only affects serial build (MPI-version is built without ARPACK/TD-DFTB).
WITH_ARPACK := 0
# Whether transport via libNEGF should be included.
# Only affects parallel build (serial version is built without libNEGF/transport)
WITH_TRANSPORT := 0
# Whether the DFTD3 library (dispersion) should be linked.
# NOTE: Due to the license of the DFTD3 library, the combined code must be
# distributed under the GPLv3 license (as opposed to the LGPLv3 license of the
# DFTB+ package)
WITH_DFTD3 := 0
################################################################################
# General building/testing options
################################################################################
# DEBUG levels:
# 0 -- production code
# 1 -- internal runtime checks and reduced compiler optimization
# 2 -- level 1 checks plus extra runtime compiler checks
DEBUG := 0
# Whether the API (DFTB+ library) should be built
BUILD_API := 0
# Whether eventual binaries needed for testing should be also built
BUILD_TEST_BINARIES := 1
# Nr. of MPI processes used for testing
TEST_MPI_PROCS := 1
# Nr. of OpenMP shared memory threads used for testing
TEST_OMP_THREADS := 1
################################################################################
# Architecture dependent settings
################################################################################
# Whether DFTD3 should be compiled during the build process. If set to 1 (yes),
# you will have to download the dftd3 library before starting the build using
# the utils/get_opt_externals tool.
# (Only active, if WITH_DFTB3 was set to 1 above.)
COMPILE_DFTD3 := 1
# Set the compile time include and the link time library options for
# dftd3-lib. Ignored if WITH_DFTD3 has been disabled or COMPILE_DFTD3 enabled.
DFTD3_INCS := -I/usr/local/include/dftd3-lib
DFTD3_LIBS := -L/usr/local/lib -ldftd3
# Link time library options for linking ARPACK. Ignored if WITH_ARPACK was
# disabled.
ARPACK_LIBS := -larpack
# Whether ARPACK depends on the external LAPACK and BLAS libraries
ARPACK_NEEDS_LAPACK := 0
# Include architecture dependent settings from make.arch (make sure to adapt
# those in make.arch for your system)
include $(ROOT)/make.arch