Repository navigation
Introduce CMake workflow - #15804
Merged
Merged
Introduce CMake workflow#15804
Conversation
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15804
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 8 Pending, 6 Unrelated FailuresAs of commit 8dd6a3c with merge base 6de1f4e ( NEW FAILURE - The following job has failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
larryliu0820
added a commit
that referenced
this pull request
Nov 13, 2025
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
ghstack-source-id: d86adc5
Pull Request resolved: #15804
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
[ghstack-poisoned]
larryliu0820
requested review from
jackzhxng,
kirklandsign and
lucylq
as code owners
November 13, 2025 19:04
larryliu0820
added a commit
that referenced
this pull request
Nov 13, 2025
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
ghstack-source-id: fec7b9f
Pull Request resolved: #15804
lucylq
reviewed
Nov 13, 2025
| - Uses `llm-release` configure preset (sets `CMAKE_BUILD_TYPE=Release`) | ||
| - Uses `llm-release-install` build preset (builds the `install` target with parallel jobs) | ||
| - Installs artifacts to `cmake-out/` directory | ||
|
|
Contributor
There was a problem hiding this comment.
We can add some instruction on how to add a new worfklow. Is this correct?
To add a new workflow:
1. Add a configure preset, e.g. new-workflow
2. Add a build preset that depends on (1), e.g. new-workflow-install
3. You should be able to run cmake --workflow new-workflow-install
Contributor
Author
There was a problem hiding this comment.
Yeah. Let me add your words into README.md
lucylq
approved these changes
Nov 13, 2025
lucylq
left a comment
Contributor
There was a problem hiding this comment.
This is a great change, thank you!
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
[ghstack-poisoned]
larryliu0820
added a commit
that referenced
this pull request
Nov 13, 2025
CMake workflow combines configure and build into 1 command. Instead of
doing:
```
cmake --preset llm \
-DEXECUTORCH_BUILD_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_BUILD_TYPE=Release \
-Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```
We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command
ghstack-source-id: 21411ca
Pull Request resolved: #15804
larryliu0820
temporarily deployed
to
cherry-pick-bot
November 13, 2025 23:36 — with
GitHub Actions
Inactive
larryliu0820
added a commit
that referenced
this pull request
Nov 14, 2025
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #15804 by @larryliu0820 ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/orig @diff-train-skip-merge Co-authored-by: Mengwei Liu <[email protected]>
jirioc
pushed a commit
to nxp-upstream/executorch
that referenced
this pull request
Dec 19, 2025
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: pytorch#15804 by @larryliu0820 ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/larryliu0820/81/orig @diff-train-skip-merge Co-authored-by: Mengwei Liu <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
CMake workflow combines configure and build into 1 command. Instead of
doing:
We can simply do
cmake --workflow llm-release-cuda. This largelyreduces the burden of running these cmake commands.
Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command