Repository navigation
Add optional CMake presets to the repo. - #15581
Merged
Merged
Conversation
Since people have complained about this in the past with respect to IDEs doing weird things, I created these in a sub-directory with the intention to just have a small include file in the root. Leaving that up to the user to do until we can test it more with real dev flows. With this, I was able to get: * Minimal dev down to 3800 ninja actions to build iree-compile. * ~5900 ninja actions for Turbine with a host-only CPU backend. There are on the order of several hundred C++ files that I expect will be eliminated once more of the compiler components are turned into plugins with their dependent pieces contained (i.e. as opposed to having dependencies for all targets implicitly included in top-level registrations). Currently, this includes common code needed for SPIRV, CPU compilation, various GPUs, etc (even when the corresponding target it not enabled). Further, I will do more surgery to make the clang build optional for people who can satisfy the dep with a host clang. This will drop true min-spec CPU builds by ~1000 targets.
ScottTodd
approved these changes
Nov 14, 2023
| @@ -0,0 +1,58 @@ | |||
| # CMake Presets | |||
ramiro050
pushed a commit
to ramiro050/iree
that referenced
this pull request
Dec 19, 2023
Since people have complained about this in the past with respect to IDEs doing weird things, I created these in a sub-directory with the intention to just have a small include file in the root. Leaving that up to the user to do until we can test it more with real dev flows. With this, I was able to get: * Minimal dev down to 3800 ninja actions to build iree-compile. * ~5900 ninja actions for Turbine with a host-only CPU backend. There are on the order of several hundred C++ files that I expect will be eliminated once more of the compiler components are turned into plugins with their dependent pieces contained (i.e. as opposed to having dependencies for all targets implicitly included in top-level registrations). Currently, this includes common code needed for SPIRV, CPU compilation, various GPUs, etc (even when the corresponding target is not enabled). Further, I will do more surgery to make the clang build optional for people who can satisfy the dep with a host clang. This will drop true min-spec CPU builds by ~1000 targets. Progress on iree-org#5804 skip-ci: none
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.
Since people have complained about this in the past with respect to IDEs doing weird things, I created these in a sub-directory with the intention to just have a small include file in the root. Leaving that up to the user to do until we can test it more with real dev flows.
With this, I was able to get:
There are on the order of several hundred C++ files that I expect will be eliminated once more of the compiler components are turned into plugins with their dependent pieces contained (i.e. as opposed to having dependencies for all targets implicitly included in top-level registrations). Currently, this includes common code needed for SPIRV, CPU compilation, various GPUs, etc (even when the corresponding target is not enabled).
Further, I will do more surgery to make the clang build optional for people who can satisfy the dep with a host clang. This will drop true min-spec CPU builds by ~1000 targets.
Progress on #5804
skip-ci: none