Skip to content

Commit

Permalink
Update docs, experimental and samples
Browse files Browse the repository at this point in the history
Updates the documentation, scripts in `experimental` and the samples to
reflect the renaming of the Python packages.
  • Loading branch information
marbre committed Nov 7, 2024
1 parent 98c0aef commit ff0233c
Show file tree
Hide file tree
Showing 24 changed files with 63 additions and 61 deletions.
18 changes: 10 additions & 8 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ A number of packages are produced automatically:
* `iree-dist-*.tar.xz` (manylinux x86_64 and aarch64): Install image of the
binaries and development assets needed to use or depend on the C/C++ parts
of the project.
* `iree-compiler`: Binary Python wheels
* `iree-runtime`: Binary Python wheels
* `iree-base-compiler`: Binary Python wheels
* `iree-base-runtime`: Binary Python wheels
* `iree-tools-tf` and `iree-tools-tflite`: Pure Python wheels

#### Linux Builds
Expand All @@ -52,8 +52,8 @@ Windows builds are built using GitHub-hosted runners. Due to the cost, the
project aims to target the most recent version of Python only while building
version N-1 for the first year of the lifecycle of the next version.

Only the Python `iree-compiler` and `iree-runtime` packages are built for
Windows.
Only the Python `iree-base-compiler` and `iree-base-runtime` packages are
built for Windows.

The release is published even if the Windows build fails. When this happens, it
is fixed forward for the next snapshot.
Expand All @@ -64,8 +64,8 @@ MacOS builds are performed using GitHub-hosted runners. Due to the cost, the
project aims to target the most recent version of Python only while building
version N-1 for the first year of the lifecycle of the next version.

Only the Python `iree-compiler` and `iree-runtime` packages are built for
MacOS.
Only the Python `iree-base-compiler` and `iree-base-runtime` packages are
built for MacOS.

The release is published even if the MacOS build fails. When this happens, it
is fixed forward for the next snapshot.
Expand All @@ -82,14 +82,16 @@ release process:

### PyPI

* https://pypi.org/project/iree-compiler/
* https://pypi.org/project/iree-runtime/
* https://pypi.org/project/iree-base-compiler/
* https://pypi.org/project/iree-base-runtime/
* https://pypi.org/project/iree-turbine/
* https://pypi.org/project/iree-tools-tf/
* https://pypi.org/project/iree-tools-tflite/

Deprecated projects no longer updated:

* https://pypi.org/project/iree-compiler/ (replaced by iree-base-compiler)
* https://pypi.org/project/iree-runtime/ (replaced by iree-base-runtime)
* https://pypi.org/project/iree-runtime-instrumented/ (functionality is
included in the main iree-runtime package)
* https://pypi.org/project/iree-tools-xla/ (functionality is no longer needed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ All steps here assume starting from the IREE root directory.
# Install packages from nightly releases
# This should work for most cases, as the importers change infrequently
python -m pip install \
iree-compiler iree-runtime iree-tools-tf iree-tools-tflite \
iree-base-compiler iree-base-runtime iree-tools-tf iree-tools-tflite \
--find-links https://iree.dev/pip-release-links.html
```
Expand Down
4 changes: 2 additions & 2 deletions docs/website/docs/developers/debugging/sanitizers.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-12/bin/llvm-symbolizer \
`PYTHONPATH` pointing at your build directory:

```shell hl_lines="14-18"
python -m pip uninstall iree-runtime
python -m pip uninstall iree-compiler
python -m pip uninstall iree-base-runtime
python -m pip uninstall iree-base-compiler
source iree-build/.env && export PYTHONPATH

LD_PRELOAD=/usr/lib/llvm-12/lib/clang/12.0.0/lib/linux/libclang_rt.asan-x86_64.so \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ be built from source by using either the upstream CMake build or IREE's

??? tip - "Tip - Instrumented Python packages"

The `iree-runtime` Python package includes prebuilt instrumented tools.
The `iree-base-runtime` Python package includes prebuilt instrumented tools.
Set the `IREE_PY_RUNTIME=tracy` environment variable to use them:

```shell
python -m pip install iree-runtime
python -m pip install iree-base-runtime
IREE_PY_RUNTIME=tracy iree-run-module ...
```

Expand Down
4 changes: 2 additions & 2 deletions docs/website/docs/guides/deployment-configurations/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ At runtime, CPU executables can be loaded using one of IREE's CPU HAL drivers:
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-compiler` package includes the LLVM-based CPU compiler:
The core `iree-base-compiler` package includes the LLVM-based CPU compiler:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-compiler-from-release.md"

Expand Down Expand Up @@ -82,7 +82,7 @@ drivers:
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-runtime` package includes the local CPU HAL drivers:
The core `iree-base-runtime` package includes the local CPU HAL drivers:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-runtime-from-release.md"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If `nvidia-smi` does not exist, you will need to
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-compiler` package includes the CUDA compiler:
The core `iree-base-compiler` package includes the CUDA compiler:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-compiler-from-release.md"

Expand Down Expand Up @@ -69,7 +69,7 @@ $ iree-run-module --list_devices
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-runtime` package includes the CUDA HAL driver:
The core `iree-base-runtime` package includes the CUDA HAL driver:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-runtime-from-release.md"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ or [Linux](https://rocm.docs.amd.com/en/latest/deploy/linux/quick_start.html).
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-compiler` package includes the ROCm compiler:
The core `iree-base-compiler` package includes the ROCm compiler:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-compiler-from-release.md"

Expand Down Expand Up @@ -71,7 +71,7 @@ $ iree-run-module --list_devices
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-runtime` package includes the HIP HAL driver:
The core `iree-base-runtime` package includes the HIP HAL driver:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-runtime-from-release.md"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ the model must be compiled into.
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-compiler` package includes the SPIR-V compiler:
The core `iree-base-compiler` package includes the SPIR-V compiler:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-compiler-from-release.md"

Expand Down Expand Up @@ -125,7 +125,7 @@ $ iree-run-module --list_devices
Python packages are regularly published to
[PyPI](https://pypi.org/user/google-iree-pypi-deploy/). See the
[Python Bindings](../../reference/bindings/python.md) page for more details.
The core `iree-runtime` package includes the Vulkan HAL drivers:
The core `iree-base-runtime` package includes the Vulkan HAL drivers:

--8<-- "docs/website/docs/guides/deployment-configurations/snippets/_iree-runtime-from-release.md"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[published to PyPI](https://pypi.org/user/google-iree-pypi-deploy/).

``` shell
python -m pip install iree-compiler
python -m pip install iree-base-compiler
```

=== ":material-alert: Nightly releases"
Expand All @@ -15,7 +15,7 @@
``` shell
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade iree-compiler
--upgrade iree-base-compiler
```

!!! tip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[published to PyPI](https://pypi.org/user/google-iree-pypi-deploy/).

``` shell
python -m pip install iree-runtime
python -m pip install iree-base-runtime
```

=== ":material-alert: Nightly releases"
Expand All @@ -15,5 +15,5 @@
``` shell
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade iree-runtime
--upgrade iree-base-runtime
```
8 changes: 4 additions & 4 deletions docs/website/docs/guides/ml-frameworks/onnx.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ graph LR

``` shell
python -m pip install \
iree-compiler[onnx] \
iree-runtime
iree-base-compiler[onnx] \
iree-base-runtime
```

=== ":material-alert: Nightly releases"
Expand All @@ -77,8 +77,8 @@ graph LR
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler[onnx] \
iree-runtime
iree-base-compiler[onnx] \
iree-base-runtime
```

## :octicons-rocket-16: Quickstart
Expand Down
8 changes: 4 additions & 4 deletions docs/website/docs/guides/ml-frameworks/tensorflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ graph LR

``` shell
python -m pip install \
iree-compiler \
iree-runtime \
iree-base-compiler \
iree-base-runtime \
iree-tools-tf
```

Expand All @@ -80,8 +80,8 @@ graph LR
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler \
iree-runtime \
iree-base-compiler \
iree-base-runtime \
iree-tools-tf
```

Expand Down
8 changes: 4 additions & 4 deletions docs/website/docs/guides/ml-frameworks/tflite.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ graph LR

``` shell
python -m pip install \
iree-compiler \
iree-runtime \
iree-base-compiler \
iree-base-runtime \
iree-tools-tflite
```

Expand All @@ -75,8 +75,8 @@ graph LR
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler \
iree-runtime \
iree-base-compiler \
iree-base-runtime \
iree-tools-tflite
```

Expand Down
22 changes: 11 additions & 11 deletions docs/website/docs/reference/bindings/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ components:

| PIP package name | Description |
|------------------------------|-----------------------------------------------------------------------------|
| `iree-compiler` | IREE's generic compiler tools and helpers |
| `iree-runtime` | IREE's runtime, including CPU and GPU backends |
| `iree-tools-tf` | Tools for importing from [TensorFlow](https://www.tensorflow.org/) |
| `iree-tools-tflite` | Tools for importing from [TensorFlow Lite](https://www.tensorflow.org/lite) |
| `iree-jax` | Tools for importing from [JAX](https://github.com/google/jax) |
| `iree-base-compiler` | IREE's generic compiler tools and helpers |
| `iree-base-runtime` | IREE's runtime, including CPU and GPU backends |
| `iree-tools-tf` | Tools for importing from [TensorFlow](https://www.tensorflow.org/) |
| `iree-tools-tflite` | Tools for importing from [TensorFlow Lite](https://www.tensorflow.org/lite) |
| `iree-jax` | Tools for importing from [JAX](https://github.com/google/jax) |

Collectively, these packages allow for importing from frontends, compiling
towards various targets, and executing compiled code on IREE's backends.
Expand Down Expand Up @@ -70,8 +70,8 @@ To use IREE's Python bindings, you will first need to install

``` shell
python -m pip install \
iree-compiler \
iree-runtime
iree-base-compiler \
iree-base-runtime
```

=== ":material-alert: Nightly releases"
Expand All @@ -83,8 +83,8 @@ To use IREE's Python bindings, you will first need to install
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler \
iree-runtime
iree-base-compiler \
iree-base-runtime
```

### :material-hammer-wrench: Building from source
Expand Down Expand Up @@ -164,15 +164,15 @@ like `iree-compile` and `iree-run-module`. After installing a package from
pip, these should be added to your path automatically:

```console
$ python -m pip install iree-runtime
$ python -m pip install iree-base-runtime
$ which iree-run-module

/projects/.venv/Scripts/iree-run-module
```

## :material-chart-line: Profiling

The tools in the `iree-runtime` package support variants:
The tools in the `iree-base-runtime` package support variants:

| Variant name | Description |
| ------------ | ----------- |
Expand Down
2 changes: 1 addition & 1 deletion experimental/web/generate_web_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ trap "deactivate 2> /dev/null" EXIT

python -m pip install --upgrade \
--find-links https://iree.dev/pip-release-links.html \
iree-compiler iree-tools-tflite
iree-base-compiler iree-tools-tflite

###############################################################################
# Download program source files #
Expand Down
2 changes: 1 addition & 1 deletion experimental/web/sample_dynamic/build_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Sample usage:
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install iree-compiler iree-runtime
# python -m pip install iree-base-compiler iree-base-runtime
# build_sample.sh .venv/bin && serve_sample.sh
#
# The build directory for the emscripten build is taken from the environment
Expand Down
2 changes: 1 addition & 1 deletion experimental/web/sample_static/build_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Sample usage:
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install iree-compiler iree-runtime
# python -m pip install iree-base-compiler iree-base-runtime
# build_sample.sh .venv/bin && serve_sample.sh
#
# The build directory for the emscripten build is taken from the environment
Expand Down
2 changes: 1 addition & 1 deletion experimental/web/sample_webgpu/build_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Sample usage:
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install iree-compiler iree-runtime
# python -m pip install iree-base-compiler iree-base-runtime
# build_sample.sh .venv/bin && serve_sample.sh
#
# The build directory for the emscripten build is taken from the environment
Expand Down
2 changes: 1 addition & 1 deletion experimental/web/testing/build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Sample usage:
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install iree-compiler iree-runtime
# python -m pip install iree-base-compiler iree-base-runtime
# build_tests.sh .venv/bin && serve_tests.sh

set -e
Expand Down
4 changes: 2 additions & 2 deletions samples/custom_module/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ are implemented using this mechanism.

## Instructions

1. Build or install the `iree-compile` binary:
1. Build or install the `iree-base-compiler` binary:

```
python -m pip install iree-compiler
python -m pip install iree-base-compiler
```
[See here](https://iree.dev/reference/bindings/python/)
Expand Down
4 changes: 2 additions & 2 deletions samples/custom_module/dynamic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ dynamic modules should be carefully considered.

## Instructions

1. Build or install the `iree-compile` binary:
1. Build or install the `iree-base-compiler` binary:

```
python -m pip install iree-compiler
python -m pip install iree-base-compiler
```
[See here](https://iree.dev/reference/bindings/python/)
Expand Down
4 changes: 2 additions & 2 deletions samples/custom_module/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ the same module code between all various modes with minor differences.

## Instructions

1. Build or install the `iree-compile` binary:
1. Build or install the `iree-base-compiler` binary:

```
python -m pip install iree-compiler
python -m pip install iree-base-compiler
```
[See here](https://iree.dev/reference/bindings/python/)
Expand Down
Loading

0 comments on commit ff0233c

Please sign in to comment.