Skip to content

Commit 6fe87bb

Browse files
Use mlir-python-extras as a dependency (#1828)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6e0aaa9 commit 6fe87bb

File tree

112 files changed

+347
-6745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+347
-6745
lines changed

.github/workflows/buildAndTest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
- name: Install Python packages
5353
run: |
5454
pip install -r python/requirements.txt
55+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
5556
5657
- name: Install packages
5758
run: |

.github/workflows/buildAndTestAieTools.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
python -m venv aie-venv
8787
source aie-venv/bin/activate
8888
pip install -r python/requirements.txt
89+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
8990
9091
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
9192
pip -q download mlir==$VERSION \

.github/workflows/buildAndTestAieToolsHsaBuildOnly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
python -m venv aie-venv
112112
source aie-venv/bin/activate
113113
pip install -r python/requirements.txt
114+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
114115
115116
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
116117
pip -q download mlir==$VERSION \

.github/workflows/buildAndTestMulti.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
- name: Install Python packages
9595
run: |
9696
pip install -r python/requirements.txt
97+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
9798
9899
- name: Setup Cpp
99100
uses: aminya/setup-cpp@v1

.github/workflows/buildAndTestPythons.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
- name: Install Python packages
5454
run: |
5555
pip install -r python/requirements.txt
56+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
5657
5758
- name: Install packages
5859
run: |

.github/workflows/buildAndTestRyzenAI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
python -m venv aie-venv
8080
source aie-venv/bin/activate
8181
pip install -r python/requirements.txt
82+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
8283
pip install -r python/requirements_ml.txt
8384
pip install jupyter
8485
sed -i.bak 's/OUTPUT_TIMEOUT = 10/OUTPUT_TIMEOUT = 100/g' \
@@ -136,6 +137,7 @@ jobs:
136137
python -m venv aie-venv
137138
source aie-venv/bin/activate
138139
pip install -r python/requirements.txt
140+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
139141
pip install -r python/requirements_ml.txt
140142
pip install jupyter
141143
sed -i.bak 's/OUTPUT_TIMEOUT = 10/OUTPUT_TIMEOUT = 100/g' \

.github/workflows/buildRyzenWheels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
python -m venv aie-venv
5353
source aie-venv/bin/activate
5454
pip install -r python/requirements.txt
55+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
5556
5657
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
5758
pip -q download mlir==$VERSION \
@@ -158,6 +159,7 @@ jobs:
158159
python -m venv aie-venv
159160
source aie-venv/bin/activate
160161
pip install -r python/requirements.txt
162+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
161163
source aie-venv/bin/activate
162164
163165
export MLIR_INSTALL_ABS_PATH=$PWD/mlir

.github/workflows/lintAndFormat.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
4444
pip install cmake==3.27.9 numpy psutil pybind11 rich pkginfo lit PyYAML requests
4545
pip install -r python/requirements.txt
46+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
4647
4748
- name: Get MLIR
4849
id: mlir-wheels
@@ -204,6 +205,7 @@ jobs:
204205
run: |
205206
pip install cmake numpy psutil pybind11 rich lit
206207
pip install -r python/requirements.txt
208+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
207209
208210
- name: Install packages
209211
run: sudo apt-get install -y ninja-build clang lld llvm libelf-dev
@@ -236,6 +238,7 @@ jobs:
236238
if: steps.changed-files.outputs.changed-files != ''
237239
run: |
238240
pip install -r python/requirements.txt
241+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
239242
240243
- name: Build and generate coverage (Release)
241244
if: steps.changed-files.outputs.changed-files != ''

.github/workflows/mlirAIEDistro.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ jobs:
228228
export PIP_NO_BUILD_ISOLATION=false
229229
230230
pip install -r requirements.txt
231+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
231232
pip install importlib-metadata
232233
CIBW_ARCHS=${{ matrix.ARCH }} MATRIX_OS=${{ matrix.OS }} ./scripts/download_mlir.sh
233234
@@ -360,6 +361,7 @@ jobs:
360361
with:
361362
sparse-checkout: |
362363
python/requirements.txt
364+
python/requirements_extras.txt
363365
364366
- uses: actions/download-artifact@v3
365367
with:
@@ -374,6 +376,7 @@ jobs:
374376
shell: bash
375377
run: |
376378
pip install -r python/requirements.txt
379+
HOST_MLIR_PYTHON_PACKAGE_PREFIX=aie pip install -r python/requirements_extras.txt
377380
unzip -o -q dist/mlir_aie\*.whl
378381
379382
if [ x"${{ matrix.ENABLE_RTTI }}" == x"ON" ]; then
@@ -383,6 +386,8 @@ jobs:
383386
fi
384387
385388
python -c 'import aie.ir'
389+
python -c 'import aie.extras'
390+
python -c 'import aie.helpers'
386391
387392
upload_wheels:
388393

programming_examples/basic/dma_transpose/aie2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from aie.dialects.aie import *
1212
from aie.dialects.aiex import *
1313
from aie.extras.context import mlir_mod_ctx
14-
from aie.extras.dialects.ext.scf import _for as range_
14+
from aie.helpers.dialects.ext.scf import _for as range_
1515

1616
N = 4096
1717
M = 64

0 commit comments

Comments
 (0)