-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
71 lines (54 loc) · 2.29 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 2.6.4)
project(JuKKR)
enable_language(Fortran)
# this is where we will place the Fortran module files
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/modules)
# here the executables are written to
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ./ )
# maybe useful for future library dependecies
set(complib "")
# we define some compiler flags
include( ./cmake/compiler_config.txt )
#define build type and compile options
include( ./cmake/compile_options.txt )
# default values for compile options (see cmake/compile_options.txt for details)
option(TIMING_DETAIL "Write detailed timing information (e.g. in rllsll)" OFF)
option(ENABLE_DEBUG_SYMBOLS "Add debug symbols (-g) everywhere" OFF)
option(ENABLE_OPTRPT "Generate optimization reports (*.optrpt files) at compilation" OFF)
option(OPTFLAGS_xHOST "Turn on xHost optimization flag for release build" ON)
option(OPTFLAGS_AVX512 "Use AVX512 instruction set for release build" OFF)
option(OPTFLAGS_AMD "FLAGS for AMD64 node on iffslurm (see compiler_config.txt)" OFF)
option(ENABLE_PATCH_INTEL "Use patch to make MKL think it works on intel hardware (EXPERIMENTAL!!!)" OFF)
option(ENABLE_MPI "Enable MPI parallelization" ON)
option(ENABLE_OMP "Enable OpenMP parallelization" OFF)
option(ENABLE_OMP_EVERYWHERE "Add openmp compile flags everywhere" OFF)
# default values of codes to compile:
option(COMPILE_KKRHOST "Compile KKRhost" ON)
option(COMPILE_KKRIMP "Compile KKRimp" OFF)
option(COMPILE_KKRSUSC "Compile KKRsusc" OFF)
option(COMPILE_PKKPRIME "Compile PKKprime" OFF)
option(COMPILE_VORONOI "Compile voronoi" ON)
option(COMPILE_RHOQ "Compile rhoq" OFF)
option(WRITE_RLLSLL_STANDALONE_INPUT "Set option to write out rllsll input files" OFF)
option(ENABLE_RLLSLL_STANDALONE "Compile rllsll standalone test exec" OFF)
if(ENABLE_RLLSLL_STANDALONE)
include( ./cmake/source_list_rllsll_test.txt )
endif()
if(COMPILE_KKRHOST)
include( ./cmake/source_list_KKRhost.txt )
endif()
if(COMPILE_KKRIMP)
include( ./cmake/source_list_KKRimp.txt )
endif()
if(COMPILE_KKRSUSC)
include( ./cmake/source_list_KKRsusc.txt )
endif()
if(COMPILE_PKKPRIME)
include( ./cmake/source_list_PKKprime.txt )
endif()
if(COMPILE_VORONOI)
include( ./cmake/source_list_voronoi.txt )
endif()
if(COMPILE_RHOQ)
include( ./cmake/source_list_rhoq.txt )
endif()