Skip to content

Commit

Permalink
Try new method of installing mlir-python-extras
Browse files Browse the repository at this point in the history
  • Loading branch information
hunhoffe committed Oct 11, 2024
1 parent 2623961 commit f68d6e8
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:

- name: Install Python packages
run: |
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Install packages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buildAndTestAieTools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buildAndTestAieToolsHsaBuildOnly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildAndTestMulti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:

- name: Install Python packages
run: |
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Setup Cpp
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buildAndTestPythons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
run: |
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Install packages
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/buildAndTestRyzenAI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_ml.txt
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
pip install jupyter
Expand Down Expand Up @@ -137,6 +138,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_ml.txt
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
pip install jupyter
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/buildRyzenWheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
python -m venv aie-venv
source aie-venv/bin/activate
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
source aie-venv/bin/activate
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lintAndFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
pip install cmake==3.27.9 numpy psutil pybind11 rich pkginfo lit PyYAML requests
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Get MLIR
Expand Down Expand Up @@ -205,6 +206,7 @@ jobs:
run: |
pip install cmake numpy psutil pybind11 rich lit
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Install packages
Expand Down Expand Up @@ -238,6 +240,7 @@ jobs:
if: steps.changed-files.outputs.changed-files != ''
run: |
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
- name: Build and generate coverage (Release)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mlirAIEDistro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ jobs:
export PIP_NO_BUILD_ISOLATION=false
pip install -r requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
pip install importlib-metadata
CIBW_ARCHS=${{ matrix.ARCH }} MATRIX_OS=${{ matrix.OS }} ./scripts/download_mlir.sh
Expand Down Expand Up @@ -361,7 +362,7 @@ jobs:
with:
sparse-checkout: |
python/requirements.txt
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
python/requirements_bfloat16.txt
- uses: actions/download-artifact@v3
with:
Expand All @@ -376,6 +377,7 @@ jobs:
shell: bash
run: |
pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"
unzip -o -q dist/mlir_aie\*.whl
Expand Down
3 changes: 1 addition & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ psutil
pybind11>=2.9.0, <=2.10.3
rich
setuptools
wheel
git+https://github.com/hunhoffe/mlir-python-extras.git@4743810 # TODO(erika): temporary, until can upstream
wheel
3 changes: 3 additions & 0 deletions utils/mlir_aie_wheels/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ environment = { PATH = "/usr/lib/ccache:/usr/lib64/ccache:/usr/lib/ccache/bin:$P
before-build = [
"{project}/scripts/docker_prepare_ccache.sh",
"pip install -r requirements.txt",
"HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650",
"{project}/scripts/download_mlir.sh",
]
environment-pass = [
Expand All @@ -33,6 +34,7 @@ repair-wheel-command = [
environment = { PATH = "/usr/local/opt/ccache/libexec:$PATH", PIP_NO_BUILD_ISOLATION = "false" }
before-build = [
"pip install -r requirements.txt",
"HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650",
"{project}/scripts/download_mlir.sh",
]
repair-wheel-command = [
Expand All @@ -44,5 +46,6 @@ environment = { PIP_NO_BUILD_ISOLATION = "false" }
before-build = [
"pip install delvewheel",
"pip install -r requirements.txt",
"HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650",
"bash {project}\\scripts\\download_mlir.sh",
]
1 change: 1 addition & 0 deletions utils/quick_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ if test -f "$VPP"; then
export PEANO_DIR=`realpath llvm-aie`
popd
python3 -m pip install --upgrade --force-reinstall --no-cache-dir -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
python3 -m pip install --upgrade --force-reinstall --no-cache-dir -r python/requirements_ml.txt
python3 -m pip install --upgrade --force-reinstall --no-cache-dir -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16, that's ok!"
pushd programming_examples
Expand Down
1 change: 1 addition & 0 deletions utils/setup_python_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ else
fi
python3 -m pip install --upgrade pip
python3 -m pip install -r python/requirements.txt
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install git+https://github.com/hunhoffe/mlir-python-extras@09f0650
python3 -m pip install -r python/requirements_bfloat16.txt || echo "Failed to install bfloat16; this is ok!"

0 comments on commit f68d6e8

Please sign in to comment.