Skip to content

Restructure building-from-source/getting-started page. - #13006

Merged
ScottTodd merged 3 commits into
iree-org:mainfrom
ScottTodd:docs-building
Apr 11, 2023
Merged

ScottTodd merged 3 commits into
iree-org:mainfrom
ScottTodd:docs-building

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

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
* Discuss optional components (to convey "CUDA is enabled by default")
* Add section on running samples like `hello_world_embedded`
* Refine language throughout
@ScottTodd ScottTodd added the documentation ✏️ Improvements or additions to documentation label Apr 10, 2023
@ScottTodd
ScottTodd requested a review from GMNGeoffrey April 10, 2023 23:04

@pcoet pcoet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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`
@ScottTodd
ScottTodd merged commit 9e91d4e into iree-org:main Apr 11, 2023
@ScottTodd
ScottTodd deleted the docs-building branch April 11, 2023 20:44
jpienaar pushed a commit that referenced this pull request May 1, 2023
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
NatashaKnk pushed a commit to NatashaKnk/iree that referenced this pull request Jul 6, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation ✏️ Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants