|
119 | 119 | } |
120 | 120 | }, |
121 | 121 | { |
122 | | - "name": "llm", |
123 | | - "displayName": "Build LLM libraries", |
124 | | - "inherits": ["common"], |
125 | | - "cacheVariables": { |
126 | | - "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/llm.cmake", |
127 | | - "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" |
128 | | - }, |
129 | | - "condition": { |
130 | | - "type": "inList", |
131 | | - "string": "${hostSystemName}", |
132 | | - "list": ["Darwin", "Linux", "Windows"] |
133 | | - } |
| 122 | + "name": "llm", |
| 123 | + "displayName": "Build LLM libraries", |
| 124 | + "inherits": [ |
| 125 | + "common" |
| 126 | + ], |
| 127 | + "cacheVariables": { |
| 128 | + "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/llm.cmake", |
| 129 | + "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" |
| 130 | + }, |
| 131 | + "condition": { |
| 132 | + "type": "inList", |
| 133 | + "string": "${hostSystemName}", |
| 134 | + "list": ["Darwin", "Linux", "Windows"] |
| 135 | + } |
134 | 136 | }, |
135 | 137 | { |
136 | | - "name": "profiling", |
137 | | - "displayName": "Build ExecuTorch with Profiling Enabled", |
138 | | - "inherits": [ |
139 | | - "common" |
140 | | - ], |
141 | | - "cacheVariables": { |
142 | | - "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/profiling.cmake", |
143 | | - "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" |
144 | | - }, |
145 | | - "condition": { |
146 | | - "type": "inList", |
147 | | - "string": "${hostSystemName}", |
148 | | - "list": [ |
149 | | - "Darwin", |
150 | | - "Linux", |
151 | | - "Windows" |
152 | | - ] |
153 | | - } |
| 138 | + "name": "llm-release", |
| 139 | + "displayName": "LLM release build", |
| 140 | + "inherits": [ |
| 141 | + "llm" |
| 142 | + ], |
| 143 | + "cacheVariables": { |
| 144 | + "CMAKE_BUILD_TYPE": "Release", |
| 145 | + "CMAKE_INSTALL_PREFIX": "${sourceDir}/cmake-out" |
| 146 | + } |
| 147 | + }, |
| 148 | + { |
| 149 | + "name": "llm-release-cuda", |
| 150 | + "displayName": "LLM release build with CUDA", |
| 151 | + "inherits": [ |
| 152 | + "llm-release" |
| 153 | + ], |
| 154 | + "cacheVariables": { |
| 155 | + "EXECUTORCH_BUILD_CUDA": "ON" |
| 156 | + }, |
| 157 | + "condition": { |
| 158 | + "lhs": "${hostSystemName}", |
| 159 | + "type": "equals", |
| 160 | + "rhs": "Linux" |
| 161 | + } |
| 162 | + }, |
| 163 | + { |
| 164 | + "name": "llm-release-metal", |
| 165 | + "displayName": "LLM release build with Metal", |
| 166 | + "inherits": [ |
| 167 | + "llm-release" |
| 168 | + ], |
| 169 | + "cacheVariables": { |
| 170 | + "EXECUTORCH_BUILD_METAL": "ON" |
| 171 | + }, |
| 172 | + "condition": { |
| 173 | + "lhs": "${hostSystemName}", |
| 174 | + "type": "equals", |
| 175 | + "rhs": "Darwin" |
| 176 | + } |
| 177 | + }, |
| 178 | + { |
| 179 | + "name": "llm-debug", |
| 180 | + "displayName": "LLM debug build", |
| 181 | + "inherits": [ |
| 182 | + "llm" |
| 183 | + ], |
| 184 | + "cacheVariables": { |
| 185 | + "CMAKE_BUILD_TYPE": "Debug", |
| 186 | + "CMAKE_INSTALL_PREFIX": "${sourceDir}/cmake-out" |
| 187 | + } |
| 188 | + }, |
| 189 | + { |
| 190 | + "name": "llm-debug-cuda", |
| 191 | + "displayName": "LLM debug build with CUDA", |
| 192 | + "inherits": [ |
| 193 | + "llm-debug" |
| 194 | + ], |
| 195 | + "cacheVariables": { |
| 196 | + "EXECUTORCH_BUILD_CUDA": "ON" |
| 197 | + }, |
| 198 | + "condition": { |
| 199 | + "lhs": "${hostSystemName}", |
| 200 | + "type": "equals", |
| 201 | + "rhs": "Linux" |
| 202 | + } |
| 203 | + }, |
| 204 | + { |
| 205 | + "name": "llm-debug-metal", |
| 206 | + "displayName": "LLM debug build with Metal", |
| 207 | + "inherits": [ |
| 208 | + "llm-debug" |
| 209 | + ], |
| 210 | + "cacheVariables": { |
| 211 | + "EXECUTORCH_BUILD_METAL": "ON" |
| 212 | + }, |
| 213 | + "condition": { |
| 214 | + "lhs": "${hostSystemName}", |
| 215 | + "type": "equals", |
| 216 | + "rhs": "Darwin" |
| 217 | + } |
| 218 | + }, |
| 219 | + { |
| 220 | + "name": "profiling", |
| 221 | + "displayName": "Build ExecuTorch with Profiling Enabled", |
| 222 | + "inherits": [ |
| 223 | + "common" |
| 224 | + ], |
| 225 | + "cacheVariables": { |
| 226 | + "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/profiling.cmake", |
| 227 | + "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" |
| 228 | + }, |
| 229 | + "condition": { |
| 230 | + "type": "inList", |
| 231 | + "string": "${hostSystemName}", |
| 232 | + "list": ["Darwin", "Linux", "Windows"] |
| 233 | + } |
154 | 234 | }, |
155 | 235 | { |
156 | 236 | "name": "windows", |
|
177 | 257 | } |
178 | 258 | }, |
179 | 259 | { |
180 | | - "name": "arm-baremetal", |
181 | | - "displayName": "Build ExecuTorch for Arm baremetal", |
182 | | - "inherits": ["common"], |
183 | | - "cacheVariables": { |
184 | | - "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/arm_baremetal.cmake", |
185 | | - "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake" |
186 | | - } |
| 260 | + "name": "arm-baremetal", |
| 261 | + "displayName": "Build ExecuTorch for Arm baremetal", |
| 262 | + "inherits": ["common"], |
| 263 | + "cacheVariables": { |
| 264 | + "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/arm_baremetal.cmake", |
| 265 | + "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake" |
| 266 | + } |
| 267 | + } |
| 268 | + ], |
| 269 | + "buildPresets": [ |
| 270 | + { |
| 271 | + "name": "llm-release-install", |
| 272 | + "displayName": "Build and install LLM extension release artifacts", |
| 273 | + "configurePreset": "llm-release", |
| 274 | + "targets": [ |
| 275 | + "install" |
| 276 | + ], |
| 277 | + "jobs": 0 |
| 278 | + }, |
| 279 | + { |
| 280 | + "name": "llm-release-cuda-install", |
| 281 | + "displayName": "Build and install LLM extension release artifacts (CUDA)", |
| 282 | + "configurePreset": "llm-release-cuda", |
| 283 | + "targets": [ |
| 284 | + "install" |
| 285 | + ], |
| 286 | + "jobs": 0 |
| 287 | + }, |
| 288 | + { |
| 289 | + "name": "llm-release-metal-install", |
| 290 | + "displayName": "Build and install LLM extension release artifacts (Metal)", |
| 291 | + "configurePreset": "llm-release-metal", |
| 292 | + "targets": [ |
| 293 | + "install" |
| 294 | + ], |
| 295 | + "jobs": 0 |
| 296 | + }, |
| 297 | + { |
| 298 | + "name": "llm-debug-install", |
| 299 | + "displayName": "Build and install LLM extension debug artifacts", |
| 300 | + "configurePreset": "llm-debug", |
| 301 | + "targets": [ |
| 302 | + "install" |
| 303 | + ], |
| 304 | + "jobs": 0 |
| 305 | + }, |
| 306 | + { |
| 307 | + "name": "llm-debug-cuda-install", |
| 308 | + "displayName": "Build and install LLM extension debug artifacts (CUDA)", |
| 309 | + "configurePreset": "llm-debug-cuda", |
| 310 | + "targets": [ |
| 311 | + "install" |
| 312 | + ], |
| 313 | + "jobs": 0 |
| 314 | + }, |
| 315 | + { |
| 316 | + "name": "llm-debug-metal-install", |
| 317 | + "displayName": "Build and install LLM extension debug artifacts (Metal)", |
| 318 | + "configurePreset": "llm-debug-metal", |
| 319 | + "targets": [ |
| 320 | + "install" |
| 321 | + ], |
| 322 | + "jobs": 0 |
| 323 | + } |
| 324 | + ], |
| 325 | + "workflowPresets": [ |
| 326 | + { |
| 327 | + "name": "llm-release", |
| 328 | + "displayName": "Configure, build and install ExecuTorch LLM extension with default CPU backend", |
| 329 | + "steps": [ |
| 330 | + { |
| 331 | + "type": "configure", |
| 332 | + "name": "llm-release" |
| 333 | + }, |
| 334 | + { |
| 335 | + "type": "build", |
| 336 | + "name": "llm-release-install" |
| 337 | + } |
| 338 | + ] |
| 339 | + }, |
| 340 | + { |
| 341 | + "name": "llm-release-cuda", |
| 342 | + "displayName": "Configure, build and install ExecuTorch LLM extension with CUDA enabled", |
| 343 | + "steps": [ |
| 344 | + { |
| 345 | + "type": "configure", |
| 346 | + "name": "llm-release-cuda" |
| 347 | + }, |
| 348 | + { |
| 349 | + "type": "build", |
| 350 | + "name": "llm-release-cuda-install" |
| 351 | + } |
| 352 | + ] |
| 353 | + }, |
| 354 | + { |
| 355 | + "name": "llm-release-metal", |
| 356 | + "displayName": "Configure, build and install ExecuTorch LLM extension with Metal enabled", |
| 357 | + "steps": [ |
| 358 | + { |
| 359 | + "type": "configure", |
| 360 | + "name": "llm-release-metal" |
| 361 | + }, |
| 362 | + { |
| 363 | + "type": "build", |
| 364 | + "name": "llm-release-metal-install" |
| 365 | + } |
| 366 | + ] |
| 367 | + }, |
| 368 | + { |
| 369 | + "name": "llm-debug", |
| 370 | + "displayName": "Configure, build and install ExecuTorch LLM extension with default CPU backend (Debug)", |
| 371 | + "steps": [ |
| 372 | + { |
| 373 | + "type": "configure", |
| 374 | + "name": "llm-debug" |
| 375 | + }, |
| 376 | + { |
| 377 | + "type": "build", |
| 378 | + "name": "llm-debug-install" |
| 379 | + } |
| 380 | + ] |
| 381 | + }, |
| 382 | + { |
| 383 | + "name": "llm-debug-cuda", |
| 384 | + "displayName": "Configure, build and install ExecuTorch LLM extension with CUDA enabled (Debug)", |
| 385 | + "steps": [ |
| 386 | + { |
| 387 | + "type": "configure", |
| 388 | + "name": "llm-debug-cuda" |
| 389 | + }, |
| 390 | + { |
| 391 | + "type": "build", |
| 392 | + "name": "llm-debug-cuda-install" |
| 393 | + } |
| 394 | + ] |
| 395 | + }, |
| 396 | + { |
| 397 | + "name": "llm-debug-metal", |
| 398 | + "displayName": "Configure, build and install ExecuTorch LLM extension with Metal enabled (Debug)", |
| 399 | + "steps": [ |
| 400 | + { |
| 401 | + "type": "configure", |
| 402 | + "name": "llm-debug-metal" |
| 403 | + }, |
| 404 | + { |
| 405 | + "type": "build", |
| 406 | + "name": "llm-debug-metal-install" |
| 407 | + } |
| 408 | + ] |
187 | 409 | } |
188 | 410 | ] |
189 | 411 | } |
0 commit comments