-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLD: Initial linux wheel build setup #5
Conversation
a55c38c
to
83afc69
Compare
@willow-ahrens I did my homework yesterday and building Finch dialect in a standalone mode yields a wheel of size 200MB. The CI run first builds LLVM and then Finch dialect in an out-of-tree mode. Only the Finch part build is placed in a wheel and uploaded as a release artifact: https://github.com/nullplay/Finch-mlir/releases Then the wheel can be directly installed via pip, here are example shell commands: conda create --name temp-env python=3.10 --yes
conda activate temp-env
pip install PyYAML numpy
pip install https://github.com/nullplay/Finch-mlir/releases/download/latest/mlir_finch-0.0.1-cp310-cp310-linux_x86_64.whl
python -c 'from mlir_finch.dialects import finch, arith, func, linalg, sparse_tensor, tensor'
conda env remove --name temp-env --yes I think This build setup will be run periodically. Now it's only python 3.10, linux, x86_64 but target build matrix could be |
It's for a later discussion but I see that |
3059974
to
a81f3e0
Compare
A couple of quick comments:
|
Currently here there are two jobs: one that builds artifact and separate for publishing the wheel
Do you mean a separate job that installs the wheel and imports something? Or a more sophisticated mechanism? |
4343899
to
43c9b92
Compare
7e59f72
to
2697265
Compare
b15779a
to
0501237
Compare
Ok, I think I will go and merge what we have here - I will continue in a follow-up PR. |
Just Windows and 3.13 support but we’re all set. |
@hameerabbasi Sure! Can you approve it? It's needed for merging. The follow-up TODO:
And the rest is lower priority:
|
@hameerabbasi It looks that Numba doesn't support Python 3.13 - I think |
Since we don't use import Numba in the MLIR backend, we can use it, we just need to install |
This PR introduces linux wheel build process. In the CI there are two jobs:
build-wheel
:setuptools
-install dirrelease-wheel
: