1- # mlir-utils
1+ # mlir-python- utils
22
33The missing pieces (as far as boilerplate reduction goes) of the upstream MLIR python bindings.
44
@@ -8,15 +8,16 @@ The missing pieces (as far as boilerplate reduction goes) of the upstream MLIR p
88
99``` shell
1010$ pip install .[mlir] -f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
11- $ configure-mlir-utils mlir
11+ $ configure-mlir-python-utils mlir
12+ ```
1213
1314or for maximum convenience
1415
1516``` shell
1617$ pip install mlir-python-utils[mlir] \
1718 -f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
18- -f https://github.com/makslevental/mlir-wheels /releases/expanded_assets/latest
19- $ configure-mlir-utils mlir
19+ -f https://github.com/makslevental/mlir-python-utils /releases/expanded_assets/latest
20+ $ configure-mlir-python- utils mlir
2021```
2122
2223### Details
@@ -25,9 +26,9 @@ This package is meant to work in concert with the upstream bindings.
2526Practically speaking that means you need to have * some* package installed that includes mlir python bindings.
2627In addition, you have to do one of two things to ** configure this package** (after installing it):
2728
28- 1. ` $ configure-mlir-utils -y < MLIR_PYTHON_PACKAGE_PREFIX> ` , where ` MLIR_PYTHON_PACKAGE_PREFIX` is (as it says) the
29+ 1 . ` $ configure-mlir-python- utils -y <MLIR_PYTHON_PACKAGE_PREFIX> ` , where ` MLIR_PYTHON_PACKAGE_PREFIX ` is (as it says) the
2930 package prefix for your chosen upstream bindings. So for example, for ` torch-mlir ` , you would
30- execute ` configure-mlir-utils torch_mlir` , since ` torch-mlir` ' s bindings are the root of the `torch-mlir` python
31+ execute ` configure-mlir-python- utils torch_mlir ` , since ` torch-mlir ` 's bindings are the root of the ` torch-mlir ` python
3132 package. ** When in doubt about this prefix** , it is everything up until ` ir ` (e.g., as
3233 in ` from torch_mlir import ir ` ).
33342 . ` $ export MLIR_PYTHON_PACKAGE_PREFIX=<MLIR_PYTHON_PACKAGE_PREFIX> ` , i.e., you can set this string as an environment
0 commit comments