forked from applied-material-modeling/neml2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
147 lines (147 loc) · 3.72 KB
/
Copy pathCMakePresets.json
File metadata and controls
147 lines (147 loc) · 3.72 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"version": 8,
"configurePresets": [
{
"name": "default",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "OFF",
"NEML2_PCH": "ON",
"NEML2_TESTS": "ON",
"NEML2_RUNNER": "OFF",
"NEML2_PYBIND": "OFF",
"NEML2_DOC": "OFF",
"NEML2_CPU_PROFILER": "OFF",
"NEML2_WORK_DISPATCHER": "ON"
}
},
{
"name": "compile-commands",
"displayName": "Compile commands",
"description": "Export compile commands of the C++ backend",
"inherits": "default",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"NEML2_PCH": "OFF"
}
},
{
"name": "dev",
"displayName": "Development",
"description": "C++ backend, Python binding, tests, and documentation",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"NEML2_PYBIND": "ON",
"NEML2_DOC": "ON"
}
},
{
"name": "runner",
"displayName": "Runner",
"description": "Runner for benchmarking and profiling",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"NEML2_TESTS": "OFF",
"NEML2_RUNNER": "ON",
"NEML2_CPU_PROFILER": "ON"
}
},
{
"name": "coverage",
"displayName": "Coverage",
"description": "Generate coverage report from unit tests",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Coverage"
}
},
{
"name": "release",
"displayName": "Release",
"description": "Production build for C++ backend and Python bindings",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"NEML2_TESTS": "OFF",
"NEML2_RUNNER": "ON",
"NEML2_PYBIND": "ON"
}
}
],
"buildPresets": [
{
"name": "dev-cpp",
"displayName": "C++ Backend",
"description": "C++ backend with tests",
"configurePreset": "dev",
"targets": [
"unit_tests",
"regression_tests",
"verification_tests",
"dispatcher_tests"
]
},
{
"name": "dev-python",
"displayName": "Python Bindings",
"description": "Python bindings with tests",
"configurePreset": "dev",
"targets": [
"python_stub"
]
},
{
"name": "dev-doc",
"displayName": "Documentation",
"description": "HTML documentation",
"configurePreset": "dev",
"targets": [
"html"
]
},
{
"name": "coverage",
"displayName": "Coverage",
"description": "C++ backend compiled with coverage flags",
"configurePreset": "coverage",
"targets": [
"unit_tests",
"regression_tests",
"verification_tests",
"dispatcher_tests"
]
},
{
"name": "runner",
"displayName": "Runner",
"description": "Runner linked against gperftools CPU profiler",
"configurePreset": "runner",
"targets": [
"runner"
]
},
{
"name": "release",
"displayName": "Release",
"description": "C++ backend and Python bindings for release",
"configurePreset": "release",
"targets": [
"runner",
"python_stub"
]
}
],
"testPresets": [
{
"name": "runner",
"displayName": "Benchmark tests",
"description": "Run benchmark tests using the Runner (note that this only checks if the tests run without error)",
"configurePreset": "runner"
}
]
}