-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
192 lines (175 loc) · 5.94 KB
/
Copy pathCMakePresets.json
File metadata and controls
192 lines (175 loc) · 5.94 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
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 24, "patch": 0 },
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release",
"description": "Optimized build, no sanitizers. Default for running tests.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "debug",
"inherits": "base",
"displayName": "Debug",
"description": "Debug build with -Wall, no optimizations.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "asan",
"inherits": "base",
"displayName": "ASan + UBSan",
"description": "Debug build with AddressSanitizer and UndefinedBehaviorSanitizer compiled in.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_SANITIZER": "ASanUbsan"
}
},
{
"name": "hip",
"inherits": "base",
"displayName": "HIP (AMD ROCm, experimental)",
"description": "Experimental release build against the HIP backend. Defaults to gfx908 (MI100); override with -DCMAKE_HIP_ARCHITECTURES=. Requires the ROCm root on CMAKE_PREFIX_PATH, e.g. export CMAKE_PREFIX_PATH=/opt/rocm:$CMAKE_PREFIX_PATH",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"FZGMOD_BACKEND": "HIP"
}
},
{
"name": "cuda-h200",
"inherits": "base",
"displayName": "CUDA (H200 / Hopper, sm_90)",
"description": "Release build against the CUDA backend for compute capability 9.0 (H100/H200). The project default (86, A100) does not cover Hopper, so this preset overrides CMAKE_CUDA_ARCHITECTURES explicitly.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"FZGMOD_BACKEND": "CUDA",
"CMAKE_CUDA_ARCHITECTURES": "90"
}
},
{
"name": "compute-san",
"inherits": "base",
"displayName": "Compute Sanitizer",
"description": "Release build with -lineinfo; ctest wraps every test executable with compute-sanitizer --tool memcheck.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"USE_SANITIZER": "Compute",
"FZGMOD_COMPUTE_SANITIZER_WRAPPER": "ON"
}
}
],
"buildPresets": [
{
"name": "release",
"configurePreset": "release",
"displayName": "Build Release"
},
{
"name": "debug",
"configurePreset": "debug",
"displayName": "Build Debug"
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "Build ASan + UBSan"
},
{
"name": "hip",
"configurePreset": "hip",
"displayName": "Build HIP (AMD ROCm, experimental)"
},
{
"name": "cuda-h200",
"configurePreset": "cuda-h200",
"displayName": "Build CUDA (H200 / Hopper)"
},
{
"name": "compute-san",
"configurePreset": "compute-san",
"displayName": "Build Compute Sanitizer"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "release",
"displayName": "All tests (Release)",
"description": "Run the full test suite against the Release build.",
"output": { "outputOnFailure": true }
},
{
"name": "stages",
"configurePreset": "release",
"displayName": "Stage unit tests",
"description": "Run only tests labelled 'stages'.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "stages" } }
},
{
"name": "pipeline",
"configurePreset": "release",
"displayName": "Pipeline integration tests",
"description": "Run only tests labelled 'pipeline'.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "pipeline" } }
},
{
"name": "hip",
"configurePreset": "hip",
"displayName": "All tests (HIP, experimental)",
"description": "Run the full test suite against the experimental HIP build. ANSStage is excluded on HIP (see Stage::isSupportedOnBackend).",
"output": { "outputOnFailure": true }
},
{
"name": "cuda-h200",
"configurePreset": "cuda-h200",
"displayName": "All tests (CUDA H200)",
"description": "Run the full test suite against the CUDA sm_90 (H200/Hopper) build.",
"output": { "outputOnFailure": true }
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "All tests (ASan + UBSan)",
"description": "Run the full test suite against the ASan+UBSan build. Requires LD_PRELOAD=$(gcc -print-file-name=libasan.so) and ASAN_OPTIONS=protect_shadow_gap=0:detect_leaks=0 to run correctly with CUDA without false positives.",
"output": { "outputOnFailure": true }
},
{
"name": "compute-san",
"configurePreset": "compute-san",
"displayName": "All tests (Compute Sanitizer)",
"description": "Run the full test suite under 'compute-sanitizer --tool memcheck'. Requires compute-sanitizer on PATH. Each test executable is prefixed via CROSSCOMPILING_EMULATOR.",
"output": { "outputOnFailure": true }
},
{
"name": "compute-san-stages",
"configurePreset": "compute-san",
"displayName": "Stage tests (Compute Sanitizer)",
"description": "Stage unit tests only, under compute-sanitizer memcheck.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "stages" } }
},
{
"name": "compute-san-pipeline",
"configurePreset": "compute-san",
"displayName": "Pipeline tests (Compute Sanitizer)",
"description": "Pipeline integration tests only, under compute-sanitizer memcheck.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "pipeline" } }
}
]
}