Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
231 lines (231 loc) · 8.85 KB
/
Copy pathCMakePresets.json
File metadata and controls
231 lines (231 loc) · 8.85 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"BUILD_TESTING": "ON"
}
},
{
"name": "debug",
"inherits": "base",
"displayName": "Debug",
"description": "Debug build; optional deps (DUMPI/SWM/UNION/Torch/ZeroMQ) auto-detected. Requires ROSS: export ROSS_ROOT=<ross-install> (or set CMAKE_PREFIX_PATH / module load).",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release",
"description": "Optimized build; optional deps auto-detected. Requires ROSS on ROSS_ROOT / CMAKE_PREFIX_PATH.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "relwithdebinfo",
"inherits": "base",
"displayName": "Release + Debug Info",
"description": "Optimized build with debug symbols (profiling, optimized crash diagnosis).",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "coverage",
"inherits": "debug",
"displayName": "Coverage",
"description": "Debug build with --coverage instrumentation; mirrors the CI coverage job (collect with lcov after ctest).",
"cacheVariables": {
"CODES_ENABLE_COVERAGE": "ON"
}
},
{
"name": "asan",
"inherits": "debug",
"displayName": "ASan",
"description": "Debug build with AddressSanitizer (CODES_SANITIZER=address); mirrors the CI asan job. CODES is instrumented; ROSS is not. Run ctest with ASAN_OPTIONS as needed — the CI lane sets detect_leaks=0 initially to skip MPI/teardown leak noise. WIP: builds at -O1 (ASan-recommended) instead of Debug's -O0 to cut the slow ping-pong tests' runtime; remove the CMAKE_*_FLAGS_DEBUG overrides to revert.",
"cacheVariables": {
"CODES_SANITIZER": "address",
"CMAKE_C_FLAGS_DEBUG": "-g -O1",
"CMAKE_CXX_FLAGS_DEBUG": "-g -O1"
}
},
{
"name": "ubsan",
"inherits": "debug",
"displayName": "UBSan",
"description": "Debug build with UndefinedBehaviorSanitizer (CODES_SANITIZER=undefined). -fno-sanitize-recover is baked in so any UB aborts and fails ctest; mirrors the CI ubsan job. CODES is instrumented; ROSS is not.",
"cacheVariables": {
"CODES_SANITIZER": "undefined"
}
},
{
"name": "full-ci",
"inherits": "debug",
"displayName": "Full (all heavy deps, CI image)",
"description": "All optional subsystems forced ON, with dep prefixes matching the ghcr.io/codes-org/codes-ci-full image (/opt/<dep>). SWM/UNION/argobots are located via CMAKE_PREFIX_PATH (pkg_check_modules searches <prefix>/lib/pkgconfig under it). Run inside that image; Torch is found via the Torch_DIR env var (export Torch_DIR=$(python3 -c 'import torch; print(torch.utils.cmake_prefix_path)')/Torch).",
"cacheVariables": {
"CODES_USE_UNION": "ON",
"CODES_USE_DUMPI": "ON",
"CODES_USE_TORCH": "ON",
"CODES_USE_ZEROMQ": "ON",
"CMAKE_PREFIX_PATH": "/opt/swm;/opt/union;/opt/argobots",
"DUMPI_BUILD_PATH": "/opt/dumpi"
}
},
{
"name": "full-local-base",
"hidden": true,
"description": "Heavy-deps flags + env-driven dep prefixes shared by full-local-debug/release. Export each var to the dep's install prefix: CODES_SWM_DIR, CODES_UNION_DIR, CODES_ARGOBOTS_DIR, CODES_DUMPI_DIR; Torch is found via Torch_DIR. SWM/UNION/argobots are located via CMAKE_PREFIX_PATH. Every CODES_USE_<dep> is ON, so a missing/wrong path fails configure with 'CODES_USE_<dep>=ON but <dep> could not be found/enabled.'",
"cacheVariables": {
"CODES_USE_UNION": "ON",
"CODES_USE_DUMPI": "ON",
"CODES_USE_TORCH": "ON",
"CODES_USE_ZEROMQ": "ON",
"CMAKE_PREFIX_PATH": "$env{CODES_SWM_DIR};$env{CODES_UNION_DIR};$env{CODES_ARGOBOTS_DIR}",
"DUMPI_BUILD_PATH": "$env{CODES_DUMPI_DIR}"
}
},
{
"name": "full-local-debug",
"inherits": [
"full-local-base",
"debug"
],
"displayName": "Full (all heavy deps, local paths from env) - Debug",
"description": "Heavy-deps Debug build with dep locations from environment variables (CODES_SWM_DIR, CODES_UNION_DIR, CODES_ARGOBOTS_DIR, CODES_DUMPI_DIR; Torch via Torch_DIR). Use when your heavy deps are not under /opt."
},
{
"name": "full-local-release",
"inherits": [
"full-local-base",
"release"
],
"displayName": "Full (all heavy deps, local paths from env) - Release",
"description": "Heavy-deps Release build with dep locations from environment variables (CODES_SWM_DIR, CODES_UNION_DIR, CODES_ARGOBOTS_DIR, CODES_DUMPI_DIR; Torch via Torch_DIR). Use when your heavy deps are not under /opt."
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug",
"displayName": "Debug"
},
{
"name": "release",
"configurePreset": "release",
"displayName": "Release"
},
{
"name": "relwithdebinfo",
"configurePreset": "relwithdebinfo",
"displayName": "Release + Debug Info"
},
{
"name": "coverage",
"configurePreset": "coverage",
"displayName": "Coverage"
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "ASan"
},
{
"name": "ubsan",
"configurePreset": "ubsan",
"displayName": "UBSan"
},
{
"name": "full-ci",
"configurePreset": "full-ci",
"displayName": "Full (all heavy deps, CI image)"
},
{
"name": "full-local-debug",
"configurePreset": "full-local-debug",
"displayName": "Full (all heavy deps, local paths from env) - Debug"
},
{
"name": "full-local-release",
"configurePreset": "full-local-release",
"displayName": "Full (all heavy deps, local paths from env) - Release"
}
],
"testPresets": [
{
"name": "base",
"hidden": true,
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "debug",
"inherits": "base",
"configurePreset": "debug",
"displayName": "Debug"
},
{
"name": "release",
"inherits": "base",
"configurePreset": "release",
"displayName": "Release"
},
{
"name": "coverage",
"inherits": "base",
"configurePreset": "coverage",
"displayName": "Coverage"
},
{
"name": "asan",
"inherits": "base",
"configurePreset": "asan",
"displayName": "ASan"
},
{
"name": "ubsan",
"inherits": "base",
"configurePreset": "ubsan",
"displayName": "UBSan"
},
{
"name": "full-ci",
"inherits": "base",
"configurePreset": "full-ci",
"displayName": "Full (all heavy deps, CI image)"
},
{
"name": "full-local-debug",
"inherits": "base",
"configurePreset": "full-local-debug",
"displayName": "Full (all heavy deps, local paths from env) - Debug"
},
{
"name": "full-local-release",
"inherits": "base",
"configurePreset": "full-local-release",
"displayName": "Full (all heavy deps, local paths from env) - Release"
}
]
}