Skip to content

Add optional CMake presets to the repo. - #15581

Merged
stellaraccident merged 2 commits into
mainfrom
presets
Nov 14, 2023
Merged

stellaraccident merged 2 commits into
mainfrom
presets

Conversation

@stellaraccident

@stellaraccident stellaraccident commented Nov 14, 2023 •

Copy link
Copy Markdown
Collaborator

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 #5804

skip-ci: none

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 ScottTodd added the infrastructure Relating to build systems, CI, or testing label Nov 14, 2023
@@ -0,0 +1,58 @@
# CMake Presets

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagging #5804 on this

Comment thread build_tools/cmake/presets/options.json Resolved
@stellaraccident
stellaraccident merged commit 8ee423c into main Nov 14, 2023
@stellaraccident
stellaraccident deleted the presets branch November 14, 2023 19:29
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants