Skip to content

Refine release build CMake options. - #14611

Merged
ScottTodd merged 5 commits into
mainfrom
scotttodd-release-build-options
Aug 11, 2023
Merged

ScottTodd merged 5 commits into
mainfrom
scotttodd-release-build-options

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Aug 9, 2023 •

Copy link
Copy Markdown
Member

(Release builds should match project builds where possible. If it's useful in releases the it should be enabled for development by default too)
@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing hal/cuda Runtime CUDA HAL backend cleanup 🧹 labels Aug 9, 2023
@ScottTodd
ScottTodd marked this pull request as ready for review August 9, 2023 23:18
@ScottTodd
ScottTodd requested a review from powderluv August 9, 2023 23:32
Comment thread compiler/setup.py
Comment on lines +254 to +255
"-DIREE_BUILD_SAMPLES=OFF",
"-DIREE_BUILD_TESTS=OFF",

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.

@stellaraccident do you remember if we had a reason to include tests and samples in the compiler python release build? I wouldn't expect any of those code paths / executables / etc. to end up in the wheels anyways.

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 doubt I had a reason for not including these lines. Probably just forgot.

@stellaraccident stellaraccident left a comment

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.

Thanks.

Comment thread compiler/setup.py
Comment on lines +254 to +255
"-DIREE_BUILD_SAMPLES=OFF",
"-DIREE_BUILD_TESTS=OFF",

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 doubt I had a reason for not including these lines. Probably just forgot.

@ScottTodd
ScottTodd merged commit 57b9239 into main Aug 11, 2023
@ScottTodd
ScottTodd deleted the scotttodd-release-build-options branch August 11, 2023 03:13
nhasabni pushed a commit to plaidml/iree that referenced this pull request Aug 24, 2023
* We now rely on build system logic rather than script overrides for
enabling CUDA (so the CUDA compiler target is now enabled in the Windows
releases).
* Tested at https://github.com/openxla/iree/actions/runs/5813793199 and
verified that the expected runtime HAL drivers and compiler target
backends were enabled for each of the [Linux, macOS, Windows] x
[compiler, runtime] builds.
* Added a section to specify external HAL drivers in runtime/setup.py.
This project leaves the section empty and _unsets_ the variable with
`-UIREE_EXTERNAL_HAL_DRIVERS`, but downstream projects can provide a
list to _set_ the variable if they wish.
* Disabled samples and tests in compiler python package (to work around
path length limits on Windows, see logs at
https://github.com/nod-ai/SHARK-Runtime/actions/runs/5814626661/job/15764674157).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 hal/cuda Runtime CUDA HAL backend infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants