diff --git a/CMakePresets.json b/CMakePresets.json index 2b1512ac121..4c62c043d6f 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -145,6 +145,17 @@ "CMAKE_INSTALL_PREFIX": "${sourceDir}/cmake-out" } }, + { + "name": "llm-release-logging", + "displayName": "LLM release build with logging enabled", + "inherits": [ + "llm-release" + ], + "cacheVariables": { + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Info" + } + }, { "name": "llm-release-cuda", "displayName": "LLM release build with CUDA", @@ -160,6 +171,17 @@ "list": ["Linux", "Windows"] } }, + { + "name": "llm-release-cuda-logging", + "displayName": "LLM release build with CUDA and logging enabled", + "inherits": [ + "llm-release-cuda" + ], + "cacheVariables": { + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Info" + } + }, { "name": "llm-release-metal", "displayName": "LLM release build with Metal", @@ -175,6 +197,17 @@ "rhs": "Darwin" } }, + { + "name": "llm-release-metal-logging", + "displayName": "LLM release build with Metal and logging enabled", + "inherits": [ + "llm-release-metal" + ], + "cacheVariables": { + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Info" + } + }, { "name": "llm-debug", "displayName": "LLM debug build", @@ -183,7 +216,9 @@ ], "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", - "CMAKE_INSTALL_PREFIX": "${sourceDir}/cmake-out" + "CMAKE_INSTALL_PREFIX": "${sourceDir}/cmake-out", + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Debug" } }, { @@ -193,7 +228,9 @@ "llm-debug" ], "cacheVariables": { - "EXECUTORCH_BUILD_CUDA": "ON" + "EXECUTORCH_BUILD_CUDA": "ON", + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Debug" }, "condition": { "lhs": "${hostSystemName}", @@ -208,7 +245,9 @@ "llm-debug" ], "cacheVariables": { - "EXECUTORCH_BUILD_METAL": "ON" + "EXECUTORCH_BUILD_METAL": "ON", + "EXECUTORCH_ENABLE_LOGGING": "ON", + "ET_MIN_LOG_LEVEL": "Debug" }, "condition": { "lhs": "${hostSystemName}", @@ -294,6 +333,33 @@ ], "jobs": 0 }, + { + "name": "llm-release-logging-install", + "displayName": "Build and install LLM extension release artifacts (with logging)", + "configurePreset": "llm-release-logging", + "targets": [ + "install" + ], + "jobs": 0 + }, + { + "name": "llm-release-cuda-logging-install", + "displayName": "Build and install LLM extension release artifacts (CUDA with logging)", + "configurePreset": "llm-release-cuda-logging", + "targets": [ + "install" + ], + "jobs": 0 + }, + { + "name": "llm-release-metal-logging-install", + "displayName": "Build and install LLM extension release artifacts (Metal with logging)", + "configurePreset": "llm-release-metal-logging", + "targets": [ + "install" + ], + "jobs": 0 + }, { "name": "llm-debug-install", "displayName": "Build and install LLM extension debug artifacts", @@ -365,6 +431,48 @@ } ] }, + { + "name": "llm-release-logging", + "displayName": "Configure, build and install ExecuTorch LLM extension with logging enabled", + "steps": [ + { + "type": "configure", + "name": "llm-release-logging" + }, + { + "type": "build", + "name": "llm-release-logging-install" + } + ] + }, + { + "name": "llm-release-cuda-logging", + "displayName": "Configure, build and install ExecuTorch LLM extension with CUDA and logging enabled", + "steps": [ + { + "type": "configure", + "name": "llm-release-cuda-logging" + }, + { + "type": "build", + "name": "llm-release-cuda-logging-install" + } + ] + }, + { + "name": "llm-release-metal-logging", + "displayName": "Configure, build and install ExecuTorch LLM extension with Metal and logging enabled", + "steps": [ + { + "type": "configure", + "name": "llm-release-metal-logging" + }, + { + "type": "build", + "name": "llm-release-metal-logging-install" + } + ] + }, { "name": "llm-debug", "displayName": "Configure, build and install ExecuTorch LLM extension with default CPU backend (Debug)",