diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 31c7be0c8c..633ca72ba3 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -39,7 +39,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -50,7 +50,7 @@ jobs: - name: Install Python packages run: | - + pip install -r python/requirements.txt - name: Install packages @@ -80,7 +80,7 @@ jobs: - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) pip -q download mlir==$VERSION \ -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro @@ -98,10 +98,10 @@ jobs: - name: Build and test (Assert) if: matrix.build_type == 'Assert' run: | - + mkdir build_assert cd build_assert - + cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=Debug \ @@ -124,7 +124,7 @@ jobs: -DLLVM_USE_LINKER=lld \ -DLLVM_EXTERNAL_LIT=$(which lit) \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - + ninja ninja check-aie ninja check-tutorials @@ -134,10 +134,10 @@ jobs: - name: Build and test (Release) if: matrix.build_type == 'Release' run: | - + mkdir build_release cd build_release - + cmake .. \ -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ @@ -159,7 +159,7 @@ jobs: -DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \ -DLLVM_USE_LINKER=lld \ -DLLVM_EXTERNAL_LIT=$(which lit) - + ninja ninja check-aie ninja check-tutorials diff --git a/.github/workflows/buildAndTestMulti.yml b/.github/workflows/buildAndTestMulti.yml index 706addbb06..8ac8c7d055 100644 --- a/.github/workflows/buildAndTestMulti.yml +++ b/.github/workflows/buildAndTestMulti.yml @@ -68,7 +68,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -79,7 +79,7 @@ jobs: - name: Install Python packages run: | - + pip install -r python/requirements.txt - name: Setup Cpp @@ -103,7 +103,7 @@ jobs: - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) if [ x"${{ matrix.ENABLE_RTTI }}" == x"OFF"]; then WHEEL=mlir_no_rtti @@ -117,16 +117,16 @@ jobs: # Build the repo test target in release mode to build and test. - name: Build and test run: | - + mkdir build_release cd build_release - + if [ x"${{ contains(matrix.OS, 'windows') }}" == x"true" ]; then LLVM_EXTERNAL_LIT="$(where lit)" else LLVM_EXTERNAL_LIT="$(which lit)" fi - + cmake .. \ -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ @@ -145,7 +145,7 @@ jobs: -DMLIR_DIR=$PWD/../mlir/lib/cmake/mlir \ -DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \ -DLLVM_EXTERNAL_LIT="$LLVM_EXTERNAL_LIT" - + ninja # tests hang/fail on windows if [ x"${{ contains(matrix.OS, 'windows') }}" == x"false" ]; then diff --git a/.github/workflows/buildAndTestPythons.yml b/.github/workflows/buildAndTestPythons.yml index 213b9defff..f0634696e2 100644 --- a/.github/workflows/buildAndTestPythons.yml +++ b/.github/workflows/buildAndTestPythons.yml @@ -40,7 +40,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -51,7 +51,7 @@ jobs: - name: Install Python packages run: | - + pip install -r python/requirements.txt - name: Install packages @@ -81,7 +81,7 @@ jobs: - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) pip -q download mlir==$VERSION \ -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro @@ -99,10 +99,10 @@ jobs: - name: Build and test (Assert) if: matrix.build_type == 'Assert' run: | - + mkdir build_assert cd build_assert - + cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=Debug \ @@ -124,7 +124,7 @@ jobs: -DLLVM_USE_LINKER=lld \ -DLLVM_EXTERNAL_LIT=$(which lit) \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - + ninja ninja check-aie ninja check-tutorials @@ -134,10 +134,10 @@ jobs: - name: Build and test (Release) if: matrix.build_type == 'Release' run: | - + mkdir build_release cd build_release - + cmake .. \ -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ @@ -158,7 +158,7 @@ jobs: -DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \ -DLLVM_USE_LINKER=lld \ -DLLVM_EXTERNAL_LIT=$(which lit) - + ninja ninja check-aie ninja check-tutorials diff --git a/.github/workflows/buildAndTestRyzenAI.yml b/.github/workflows/buildAndTestRyzenAI.yml index 79101faa44..9550be36a0 100644 --- a/.github/workflows/buildAndTestRyzenAI.yml +++ b/.github/workflows/buildAndTestRyzenAI.yml @@ -31,15 +31,15 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: "true" - name: Run commands run: | - + pip cache purge - + python -m venv aie-venv source aie-venv/bin/activate pip install -r python/requirements.txt @@ -55,7 +55,7 @@ jobs: # That means wheels have file with time stamps in the future which makes ninja loop # forever when configuring. Set the time to some arbitrary stamp in the past just to be safe. find mlir -exec touch -a -m -t 201108231405.14 {} \; - + mkdir build pushd build diff --git a/.github/workflows/buildRyzenWheels.yml b/.github/workflows/buildRyzenWheels.yml index 6a838010e7..9c93f8b384 100644 --- a/.github/workflows/buildRyzenWheels.yml +++ b/.github/workflows/buildRyzenWheels.yml @@ -7,11 +7,11 @@ on: schedule: # At 04:00. (see https://crontab.guru) - cron: '0 4 * * *' - + defaults: run: shell: bash - + concurrency: # A PR number if a pull request and otherwise the commit hash. This cancels # queued and in-progress runs for the same PR (presubmit) or commit @@ -35,7 +35,7 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: "true" @@ -45,9 +45,9 @@ jobs: - name: Build mlir-aie distro run: | - + pip cache purge - + python -m venv aie-venv source aie-venv/bin/activate pip install -r python/requirements.txt @@ -60,7 +60,7 @@ jobs: # That means wheels have file with time stamps in the future which makes ninja loop # forever when configuring. Set the time to some arbitrary stamp in the past just to be safe. find mlir -exec touch -a -m -t 201108231405.14 {} \; - + export PATH=/opt/Xilinx/Vitis/2023.2/bin:/opt/Xilinx/Vitis/2023.2/aietools/bin:$PATH export MLIR_INSTALL_ABS_PATH=$PWD/mlir export MLIR_AIE_SOURCE_DIR=$PWD @@ -69,14 +69,14 @@ jobs: export XRT_ROOT=/opt/xilinx/xrt export AIE_PROJECT_COMMIT=$(git rev-parse --short HEAD) export DATETIME=$(date +"%Y%m%d%H") - + pushd utils/mlir_aie_wheels - + pip install wheel auditwheel patchelf importlib_metadata CIBW_ARCHS=x86_64 pip wheel . -v -w $WHEELHOUSE_DIR --no-build-isolation - + popd - + auditwheel repair -w $WHEELHOUSE_DIR/repaired_wheel $WHEELHOUSE_DIR/mlir_aie-*.whl --plat manylinux_2_35_x86_64 --exclude libcdo_driver.so --exclude libmlir_float16_utils.so WHL_FN=$(ls $WHEELHOUSE_DIR/repaired_wheel/mlir_aie*whl) mv "$WHL_FN" "`echo $WHL_FN | sed "s/cp310-cp310/py3-none/"`" @@ -120,7 +120,7 @@ jobs: steps: - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -148,15 +148,15 @@ jobs: # That means wheels have file with time stamps in the future which makes ninja loop # forever when configuring. Set the time to some arbitrary stamp in the past just to be safe. find mlir -exec touch -a -m -t 201108231405.14 {} \; - + unzip -q mlir_aie-*.whl find mlir_aie -exec touch -a -m -t 201108231405.14 {} \; - + python -m venv aie-venv source aie-venv/bin/activate pip install -r python/requirements.txt source aie-venv/bin/activate - + export MLIR_INSTALL_ABS_PATH=$PWD/mlir export MLIR_AIE_INSTALL_ABS_PATH=$PWD/mlir_aie export WHEELHOUSE_DIR=$PWD/wheelhouse @@ -165,17 +165,17 @@ jobs: export XRT_ROOT=/opt/xilinx/xrt export AIE_PROJECT_COMMIT=$(git rev-parse --short HEAD) export DATETIME=$(date +"%Y%m%d%H") - + cp python/requirements.txt utils/mlir_aie_wheels/python_bindings cp python/aie-python-extras-req.txt utils/mlir_aie_wheels/python_bindings - + pushd utils/mlir_aie_wheels/python_bindings - + pip install wheel auditwheel patchelf CIBW_ARCHS=x86_64 pip wheel . -v -w $WHEELHOUSE_DIR --no-build-isolation - + popd - + auditwheel repair -w $WHEELHOUSE_DIR/repaired_wheel $WHEELHOUSE_DIR/aie_python_bindings-*whl --plat manylinux_2_35_x86_64 - uses: geekyeggo/delete-artifact@v4 diff --git a/.github/workflows/generateDocs.yml b/.github/workflows/generateDocs.yml index 7a63bce9cd..6b6316b746 100644 --- a/.github/workflows/generateDocs.yml +++ b/.github/workflows/generateDocs.yml @@ -23,7 +23,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -58,7 +58,7 @@ jobs: - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) pip -q download mlir==$VERSION \ -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro @@ -71,10 +71,10 @@ jobs: # Build the repo test target in release mode to build and test. - name: Build Docs run: | - + mkdir build_release pushd build_release - + cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_ASSERTIONS=OFF \ diff --git a/.github/workflows/lintAndFormat.yml b/.github/workflows/lintAndFormat.yml index 90430e8d3f..da7d553504 100644 --- a/.github/workflows/lintAndFormat.yml +++ b/.github/workflows/lintAndFormat.yml @@ -23,7 +23,7 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -39,14 +39,14 @@ jobs: - name: Install Python packages run: | - + pip install cmake==3.27.9 numpy psutil pybind11 rich pkginfo lit PyYAML requests pip install -r python/requirements.txt - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) pip -q download mlir==$VERSION \ -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro @@ -54,10 +54,10 @@ jobs: - name: Prepare compile_commands.json run: | - + mkdir build pushd build - + cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ @@ -79,9 +79,9 @@ jobs: -DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \ -DLLVM_EXTERNAL_LIT=$(which lit) \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - + ninja aie-headers mlir-headers - + popd - name: Analyze @@ -113,7 +113,7 @@ jobs: steps: - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -188,7 +188,7 @@ jobs: steps: - name: Get the project repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: "true" @@ -216,7 +216,7 @@ jobs: - name: Get MLIR id: mlir-wheels run: | - + VERSION=$(utils/clone-llvm.sh --get-wheel-version) pip -q download mlir==$VERSION \ -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro @@ -236,10 +236,10 @@ jobs: - name: Build and generate coverage (Release) if: steps.changed-files.outputs.changed-files != '' run: | - + mkdir build_release cd build_release - + cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ @@ -265,9 +265,9 @@ jobs: -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" \ -DBUILD_INSTRUMENTED_COVERAGE=ON \ -DINSTRUMENTED_COVERAGE_FILES="${{ steps.changed-files.outputs.changed-files }}" - + ninja && ninja generate-aie-coverage-report - + cat /home/runner/work/mlir-aie/mlir-aie/build_release/report/summary.txt - name: Format coverage report @@ -292,4 +292,3 @@ jobs: comment-author: 'github-actions[bot]' body-path: /home/runner/work/mlir-aie/mlir-aie/build_release/report/index.html edit-mode: replace - diff --git a/.github/workflows/mlirAIEDistro.yml b/.github/workflows/mlirAIEDistro.yml index 3937590fd3..4f36f976ba 100644 --- a/.github/workflows/mlirAIEDistro.yml +++ b/.github/workflows/mlirAIEDistro.yml @@ -125,7 +125,7 @@ jobs: - name: set ENV shell: bash run: | - + PIP_FIND_LINKS_URL="https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro" if [ x"${{ github.event_name }}" == x"pull_request" ]; then PIP_FIND_LINKS_URL="$PIP_FIND_LINKS_URL https://github.com/Xilinx/mlir-aie/releases/expanded_assets/dev-wheels" @@ -137,11 +137,11 @@ jobs: if: contains(matrix.OS, 'macos') shell: bash run: | - + echo "OSX_VERSION=$(sw_vers -productVersion)" | tee -a $GITHUB_ENV - name: Checkout actions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # checkout just the actions in order to pick and choose # where the actual repo is checked out manually (see actions/setup_base) @@ -171,15 +171,15 @@ jobs: shell: bash working-directory: ${{ env.TEMP }} run: | - + ls "${{ steps.setup_base.outputs.WORKSPACE_ROOT }}" - + if [ x"${{ matrix.OS }}" == x"windows-2019" ]; then WORKSPACE_ROOT="${{ steps.setup_base.outputs.WORKSPACE_ROOT }}\utils\mlir_aie_wheels" else WORKSPACE_ROOT="${{ steps.setup_base.outputs.WORKSPACE_ROOT }}/utils/mlir_aie_wheels" fi - + echo "WORKSPACE_ROOT=$WORKSPACE_ROOT" | tee -a $GITHUB_OUTPUT - name: Get AIE @@ -187,7 +187,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + git clone --recursive https://github.com/${{ github.repository }}.git pushd mlir-aie git reset --hard ${{ needs.get_aie_project_commit.outputs.AIE_PROJECT_COMMIT }} @@ -201,9 +201,9 @@ jobs: shell: bash working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} run: | - + export PIP_NO_BUILD_ISOLATION=false - + CIBW_ARCHS=${{ matrix.ARCH }} \ CMAKE_GENERATOR=Ninja \ DATETIME=${{ needs.get_aie_project_commit.outputs.DATETIME }} \ @@ -222,13 +222,13 @@ jobs: pushd /usr/include/openssl sudo ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h opensslconf.h popd - + export PIP_NO_BUILD_ISOLATION=false - + pip install -r requirements.txt pip install importlib-metadata CIBW_ARCHS=${{ matrix.ARCH }} MATRIX_OS=${{ matrix.OS }} ./scripts/download_mlir.sh - + CIBW_ARCHS=${{ matrix.ARCH }} \ CMAKE_GENERATOR=Ninja \ DATETIME=${{ needs.get_aie_project_commit.outputs.DATETIME }} \ @@ -241,7 +241,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + rm -rf mlir-aie rm -rf build @@ -249,7 +249,7 @@ jobs: if: contains(inputs.MATRIX_OS, 'ubuntu') shell: bash run: | - + docker system prune -a -f - name: Get wheel version @@ -266,7 +266,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + ccache -s HOST_CCACHE_DIR="$(ccache --get-config cache_dir)" rm -rf $HOST_CCACHE_DIR @@ -282,7 +282,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + ccache --print-stats HOST_CCACHE_DIR="$(ccache --get-config cache_dir)" # Set the timestamp to the beginning of the current hour. @@ -296,9 +296,9 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + rename 's/cp310-cp310/py3-none/' wheelhouse/mlir_aie*whl - + if [ x"${{ matrix.OS }}" == x"ubuntu-20.04" ] && [ x"${{ matrix.ARCH }}" == x"aarch64" ]; then rename 's/x86_64/aarch64/' wheelhouse/mlir_aie*whl fi @@ -352,7 +352,7 @@ jobs: steps: - name: Checkout reqs - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: sparse-checkout: python/requirements.txt @@ -370,13 +370,13 @@ jobs: run: | pip install -r python/requirements.txt unzip -o -q dist/mlir_aie\*.whl - + if [ x"${{ matrix.ENABLE_RTTI }}" == x"ON" ]; then export PYTHONPATH=mlir_aie/python else export PYTHONPATH=mlir_aie_no_rtti/python fi - + python -c 'import aie.ir' upload_wheels: diff --git a/.github/workflows/mlirDistro.yml b/.github/workflows/mlirDistro.yml index 694b2848cb..173dd52389 100644 --- a/.github/workflows/mlirDistro.yml +++ b/.github/workflows/mlirDistro.yml @@ -62,7 +62,7 @@ jobs: - name: Get llvm-project commit id: get_llvm_project_commit run: | - + if [ x"${{ inputs.LLVM_COMMIT }}" == x"" ]; then sudo apt install jq LLVM_PROJECT_COMMIT=$(curl -s https://api.github.com/repos/llvm/llvm-project/commits/main | jq -r '.sha') @@ -133,7 +133,7 @@ jobs: - name: set ENV shell: bash run: | - + PIP_FIND_LINKS_URL="https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro" if [ x"${{ github.event_name }}" == x"pull_request" ]; then PIP_FIND_LINKS_URL="$PIP_FIND_LINKS_URL https://github.com/Xilinx/mlir-aie/releases/expanded_assets/dev-wheels" @@ -145,11 +145,11 @@ jobs: if: contains(matrix.OS, 'macos') shell: bash run: | - + echo "OSX_VERSION=$(sw_vers -productVersion)" | tee -a $GITHUB_ENV - name: Checkout actions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # checkout just the actions in order to pick and choose # where the actual repo is checked out manually (see actions/setup_base) @@ -181,15 +181,15 @@ jobs: shell: bash working-directory: ${{ env.TEMP }} run: | - + ls "${{ steps.setup_base.outputs.WORKSPACE_ROOT }}" - + if [ x"${{ matrix.OS }}" == x"windows-2019" ]; then WORKSPACE_ROOT="${{ steps.setup_base.outputs.WORKSPACE_ROOT }}\utils\mlir_wheels" else WORKSPACE_ROOT="${{ steps.setup_base.outputs.WORKSPACE_ROOT }}/utils/mlir_wheels" fi - + echo "WORKSPACE_ROOT=$WORKSPACE_ROOT" | tee -a $GITHUB_OUTPUT # setup llvm @@ -198,7 +198,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + curl -s https://codeload.github.com/llvm/llvm-project/zip/${{ needs.get_llvm_project_commit.outputs.LLVM_PROJECT_COMMIT }} -o llvm.zip unzip -q llvm.zip rm -rf llvm.zip @@ -212,7 +212,7 @@ jobs: shell: bash working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} run: | - + APPLY_PATCHES=${{ inputs.APPLY_PATCHES == '' && 'true' || inputs.APPLY_PATCHES }} \ CIBW_ARCHS=${{ matrix.ARCH }} \ CMAKE_GENERATOR=Ninja \ @@ -228,10 +228,10 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + export APPLY_PATCHES=${{ inputs.APPLY_PATCHES == '' && 'true' || inputs.APPLY_PATCHES }} ./scripts/apply_patches.sh - + CIBW_ARCHS=${{ matrix.ARCH }} \ CMAKE_GENERATOR=Ninja \ DATETIME=${{ needs.get_llvm_project_commit.outputs.DATETIME }} \ @@ -244,7 +244,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + rm -rf llvm-project rm -rf build @@ -252,7 +252,7 @@ jobs: if: contains(inputs.MATRIX_OS, 'ubuntu') shell: bash run: | - + docker system prune -a -f - name: Get wheel version @@ -269,7 +269,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + ccache -s HOST_CCACHE_DIR="$(ccache --get-config cache_dir)" rm -rf $HOST_CCACHE_DIR @@ -285,7 +285,7 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + ccache --print-stats HOST_CCACHE_DIR="$(ccache --get-config cache_dir)" # Set the timestamp to the beginning of the current hour. @@ -299,9 +299,9 @@ jobs: working-directory: ${{ steps.workspace_root.outputs.WORKSPACE_ROOT }} shell: bash run: | - + rename 's/cp310-cp310/py3-none/' wheelhouse/mlir*whl - + if [ x"${{ matrix.OS }}" == x"ubuntu-20.04" ] && [ x"${{ matrix.ARCH }}" == x"aarch64" ]; then rename 's/x86_64/aarch64/' wheelhouse/mlir*whl fi @@ -322,14 +322,14 @@ jobs: shell: bash id: build_native_tools_wheel run: | - + for TOOL in "llvm-tblgen" "mlir-tblgen" "mlir-linalg-ods-yaml-gen" "mlir-pdll" "llvm-config" "FileCheck"; do if [ x"${{ matrix.OS }}" == x"windows-2019" ]; then TOOL="$TOOL.exe" fi unzip -j wheelhouse/mlir*whl "mlir/bin/$TOOL" -d native_tools/ done - + if [ x"${{ matrix.OS }}" == x"ubuntu-20.04" ]; then PLAT="linux" elif [ x"${{ matrix.OS }}" == x"macos-12" ]; then @@ -339,13 +339,13 @@ jobs: elif [ x"${{ matrix.OS }}" == x"windows-2019" ]; then PLAT="win" fi - + PLAT=${PLAT}_$(echo ${{ matrix.ARCH }} | tr '[:upper:]' '[:lower:]') pushd native_tools MLIR_WHEEL_VERSION=${{ steps.get_wheel_version.outputs.MLIR_WHEEL_VERSION }} \ python setup.py bdist_wheel --dist-dir ../wheelhouse --plat $PLAT - + popd # done @@ -409,7 +409,7 @@ jobs: run: | pip install numpy PyYAML unzip -o -q dist/mlir\*.whl - + PYTHONPATH=$(find . -name mlir_core) python -c 'import mlir.ir' upload_distro_wheels: