Repository navigation
Restructure building-from-source/getting-started page. - #13006
Conversation
* Add basic configure -> build _then_ explain settings * Add TODOs for Docker / dev containers and CMake presets * Discuss optional components (to convey "CUDA is enabled by default") * Add section on running samples like `hello_world_embedded` * Refine language throughout
pcoet
left a comment
There was a problem hiding this comment.
LGTM. These changes make the doc clearer, more prescriptive, and more usable.
| <!-- TODO(scotttodd): "at this point you can..." --> | ||
| The default build does _not_ include: | ||
|
|
||
| * Compiler or runtime bindings (Python, TFLite, etc.) |
There was a problem hiding this comment.
I think that (perhaps in a followup), we should move the Python configuration to this page as an optional component. We can leave the other random integrations on an aux page, but Python support is a core supported features and should be here.
There was a problem hiding this comment.
I'd be curious how many developers/contributors actually need to build and edit the Python bindings from source. Probably more over time as JAX / PJRT integration picks up speed.
The environment setup steps on https://openxla.github.io/iree/building-from-source/python-bindings-and-importers/ are fairly complicated for casual users that want to follow quickstart instructions. Maybe the dev container can help there (configure the right version of Python by default).
There was a problem hiding this comment.
I don't know/care - I just know that I am tired of flipping to another page for a perfectly supported/normal part of the build. Most of our current users do in fact use it through the Python bindings, afaik.
There was a problem hiding this comment.
Okay, follow-up SGTM. I want to see how the dev container lands to see if we can recommend that for Python instead of having the notes about checking for python2/python3 and installing the extra prerequisites. Another (less-invasive) idea is to make the "Environment setup" section collapsible
`install` defaults to a system-wide install on Linux, which is not what most users will want for IREE samples, and I don't want to include `-DCMAKE_INSTALL_PREFIX` in all the sample commands
* Trim MSVC note * Link to issues/PRs in TODOs * Add data point for "slow builds" * Recommend `IREE_ENABLE_SPLIT_DWARF` and `IREE_ENABLE_THIN_ARCHIVES`
This restructures the main "how to build from source" page that we have, highlighting how simple "configure, build, test" _can_ be then going into what settings/scripts we recommend and why. ### Hosted pages | | | | --- | --- | | Current page | https://openxla.github.io/iree/building-from-source/getting-started/ | | Preview this PR | https://scotttodd.github.io/iree/building-from-source/getting-started/ | ### Summary of changes: * Add basic configure -> build _then_ explain settings * Add TODOs for Docker / dev containers and CMake presets * #12921 * #5804 * Discuss optional components (to convey "CUDA is enabled by default") * Add section on running samples like `hello_world_embedded` * Refine language throughout
This restructures the main "how to build from source" page that we have, highlighting how simple "configure, build, test" _can_ be then going into what settings/scripts we recommend and why. ### Hosted pages | | | | --- | --- | | Current page | https://openxla.github.io/iree/building-from-source/getting-started/ | | Preview this PR | https://scotttodd.github.io/iree/building-from-source/getting-started/ | ### Summary of changes: * Add basic configure -> build _then_ explain settings * Add TODOs for Docker / dev containers and CMake presets * iree-org#12921 * iree-org#5804 * Discuss optional components (to convey "CUDA is enabled by default") * Add section on running samples like `hello_world_embedded` * Refine language throughout
This restructures the main "how to build from source" page that we have, highlighting how simple "configure, build, test" can be then going into what settings/scripts we recommend and why.
Hosted pages
Summary of changes:
hello_world_embedded