Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into emsdk-update
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Dec 16, 2024
2 parents 1b70f6f + 25de549 commit 8997b2b
Show file tree
Hide file tree
Showing 345 changed files with 11,329 additions and 6,286 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,31 +118,31 @@ jobs:
matrix:
include:
# Ubuntu packages.
- runs-on: ubuntu-20.04
- runs-on: ubuntu-24.04
build-family: linux-x86_64
build-package: main-dist-linux
experimental: false
- runs-on: ah-ubuntu_22_04-c7g_4x-50
build-family: linux-aarch64
build-package: main-dist-linux
experimental: true
- runs-on: ubuntu-20.04
- runs-on: ubuntu-24.04
build-family: linux-x86_64
build-package: py-compiler-pkg
experimental: false
- runs-on: ah-ubuntu_22_04-c7g_4x-50
build-family: linux-aarch64
build-package: py-compiler-pkg
experimental: true
- runs-on: ubuntu-20.04
- runs-on: ubuntu-24.04
build-family: linux-x86_64
build-package: py-runtime-pkg
experimental: false
- runs-on: ah-ubuntu_22_04-c7g_4x-50
build-family: linux-aarch64
build-package: py-runtime-pkg
experimental: true
- runs-on: ubuntu-20.04
- runs-on: ubuntu-24.04
build-family: linux-x86_64
build-package: py-tf-compiler-tools-pkg
experimental: false
Expand Down Expand Up @@ -368,7 +368,7 @@ jobs:
name: "Trigger validate and publish release"
needs: build_packages
if: github.event.inputs.release_id != ''
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: "Invoke workflow :: Validate and Publish Release"
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump_torch_mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:

jobs:
bump_submodule:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
44 changes: 10 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
fail-fast: false
matrix:
include:
- name: ubuntu-20.04
runs-on: ubuntu-20.04
- name: ubuntu-24.04
runs-on: ubuntu-24.04
driver-options: -DIREE_HAL_DRIVER_CUDA=ON -DIREE_HAL_DRIVER_HIP=ON -DIREE_HAL_DRIVER_VULKAN=ON
- name: windows-2022
runs-on: windows-2022
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
runtime_small:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'runtime_small')
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
BUILD_DIR: build-runtime
CC: clang
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
needs: setup
name: "runtime_tracing :: ${{ matrix.provider }} provider"
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'runtime_tracing')
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -198,39 +198,15 @@ jobs:

##############################################################################

# Depends on all the other jobs to provide a single anchor that indicates the
# final status. Status reporting will become more sophisticated in the future
# and we can hopefully avoid the need to explicitly list every single job...
summary:
# Even if you have an explicit if condition, you still need to override
# GitHub's default behavior of not running if any dependencies failed.
# Aggregate job status and alerting on failures.
ci_summary:
if: always()
runs-on: ubuntu-20.04
needs:
- setup
- runtime
- runtime_small
- runtime_tracing
steps:
- name: "Checking out repository"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Getting failed jobs
id: failed_jobs
run: |
echo '${{ toJson(needs) }}'
FAILED_JOBS="$(echo '${{ toJson(needs) }}' \
| jq --raw-output \
'map_values(select(.result!="success" and .result!="skipped")) | keys | join(",")' \
)"
echo "failed-jobs=${FAILED_JOBS}" >> $GITHUB_OUTPUT
if [[ "${FAILED_JOBS}" != "" ]]; then
echo "The following jobs failed: ${FAILED_JOBS}"
exit 1
fi
- name: Posting to Discord
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The following jobs failed: ${{ steps.failed_jobs.outputs.failed-jobs }}"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
uses: ./.github/workflows/workflow_summary.yml
secrets: inherit
with:
jobs-json: ${{ toJson(needs) }}
13 changes: 9 additions & 4 deletions .github/workflows/ci_linux_arm64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml

linux_arm64_clang:
needs: setup
if: ${{ github.repository_owner == 'iree-org' }}
# See https://gitlab.arm.com/tooling/gha-runner-docs
runs-on: ah-ubuntu_22_04-c7g_4x-50
container:
Expand Down Expand Up @@ -71,3 +68,11 @@ jobs:
run: ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}"
- name: Test iree-dialects
run: ./build_tools/cmake/test_iree_dialects.sh "${BUILD_DIR}"

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
8 changes: 8 additions & 0 deletions .github/workflows/ci_linux_x64_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ jobs:
cp ./build_tools/scripts/fetch_cuda_deps.sh /usr/local/bin
/usr/local/bin/fetch_cuda_deps.sh ${IREE_CUDA_DEPS_DIR}
./build_tools/bazel/build_test_all.sh
- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
8 changes: 8 additions & 0 deletions .github/workflows/ci_linux_x64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ jobs:
run: ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}"
- name: Test iree-dialects
run: ./build_tools/cmake/test_iree_dialects.sh "${BUILD_DIR}"

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
8 changes: 8 additions & 0 deletions .github/workflows/ci_linux_x64_clang_asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ jobs:
source build_tools/cmake/setup_sccache.sh
./build_tools/cmake/build_and_test_asan.sh
sccache --show-stats
- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
10 changes: 9 additions & 1 deletion .github/workflows/ci_linux_x64_clang_byollvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

jobs:
linux_x64_clang_byollvm:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
defaults:
run:
Expand All @@ -37,3 +37,11 @@ jobs:
submodules: true
- name: "Building and testing with bring-your-own-LLVM"
run: ./build_tools/cmake/build_and_test_byo_llvm.sh

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
15 changes: 10 additions & 5 deletions .github/workflows/ci_linux_x64_clang_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml

# This may run out of memory / disk space on standard GitHub-hosted runners,
# so run on self-hosted CPU build runners instead.
linux_x64_clang_debug:
needs: setup
runs-on: azure-linux-scale
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ${{ github.repository_owner == 'iree-org' && 'azure-linux-scale' || 'ubuntu-24.04' }}
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
defaults:
run:
Expand Down Expand Up @@ -67,3 +64,11 @@ jobs:
# We could build `iree-test-deps` or run some unit tests here, but the
# main thing we want coverage for is the build itself and those steps
# would add 10+ minutes to the job.

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
15 changes: 10 additions & 5 deletions .github/workflows/ci_linux_x64_clang_tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml

linux_x64_clang_tsan:
needs: setup
runs-on: azure-linux-scale
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ${{ github.repository_owner == 'iree-org' && 'azure-linux-scale' || 'ubuntu-24.04' }}
container:
image: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
# TSan in particular needs some settings that this option includes:
Expand Down Expand Up @@ -61,3 +58,11 @@ jobs:
source build_tools/cmake/setup_sccache.sh
./build_tools/cmake/build_and_test_tsan.sh
sccache --show-stats
- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
10 changes: 9 additions & 1 deletion .github/workflows/ci_linux_x64_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

jobs:
linux_x64_gcc:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
defaults:
run:
Expand All @@ -45,3 +45,11 @@ jobs:
IREE_TARGET_BACKEND_WEBGPU_SPIRV: OFF
IREE_BUILD_SETUP_PYTHON_VENV: ${{ env.BUILD_DIR }}/.venv
run: ./build_tools/cmake/build_all.sh "${BUILD_DIR}"

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
8 changes: 8 additions & 0 deletions .github/workflows/ci_macos_x64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@ jobs:
run: bash ./build_tools/cmake/build_all.sh "${BUILD_DIR}"
- name: "Testing IREE"
run: bash ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}"

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
9 changes: 9 additions & 0 deletions .github/workflows/ci_windows_x64_msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ concurrency:

jobs:
windows_x64_msvc:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: azure-windows-scale
env:
BASE_BUILD_DIR_POWERSHELL: C:\mnt\azure\b
Expand Down Expand Up @@ -72,3 +73,11 @@ jobs:
- name: "Clean up build dir"
if: always()
run: if (Test-Path -Path "$Env:BUILD_DIR_POWERSHELL") {Remove-Item -Path "$Env:BUILD_DIR_POWERSHELL" -Recurse -Force}

- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:

jobs:
pre-commit:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checking out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
30 changes: 26 additions & 4 deletions .github/workflows/oneshot_candidate_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,45 @@ name: Oneshot candidate release

on:
workflow_dispatch:
inputs:
build_type:
description: The type of build version to produce ("stable", "rc", or "dev")
type: string
default: "rc"

jobs:
tag_release:
name: "Tag candidate release"
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checking out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.WRITE_ACCESS_TOKEN }}

# Compute version suffix based on inputs (default to 'rc')
- name: Compute stable version suffix
if: ${{ inputs.build_type == 'stable' }}
run: |
version_suffix=""
echo "version_suffix=${version_suffix}" >> $GITHUB_ENV
- name: Compute rc version suffix
if: ${{ inputs.build_type == 'rc' || inputs.build_type == '' }}
run: |
version_suffix="$(printf 'rc%(%Y%m%d)T')"
echo "version_suffix=${version_suffix}" >> $GITHUB_ENV
- name: Compute dev version suffix
if: ${{ inputs.build_type == 'dev' }}
run: |
version_suffix=".dev0+${{ github.sha }}"
echo "version_suffix=${version_suffix}" >> $GITHUB_ENV
- name: Compute version
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# common version + tag
package_version="$(python3 build_tools/python_deploy/compute_common_version.py -rc)"
package_version="$(python3 build_tools/python_deploy/compute_common_version.py --version-suffix=${version_suffix})"
tag_name="iree-${package_version}"
echo "package_version=${package_version}" >> $GITHUB_ENV
echo "tag_name=${tag_name}" >> $GITHUB_ENV
Expand All @@ -28,11 +50,11 @@ jobs:
echo "legacy_package_version=${legacy_package_version}" >> $GITHUB_ENV
# iree-base-compiler version
compiler_package_version="$(python3 build_tools/python_deploy/compute_local_version.py compiler -rc)"
compiler_package_version="$(python3 build_tools/python_deploy/compute_local_version.py compiler --version-suffix=${version_suffix})"
echo "compiler_package_version=${compiler_package_version}" >> $GITHUB_ENV
# iree-base-runtime version
runtime_package_version="$(python3 build_tools/python_deploy/compute_local_version.py runtime -rc)"
runtime_package_version="$(python3 build_tools/python_deploy/compute_local_version.py runtime --version-suffix=${version_suffix})"
echo "runtime_package_version=${runtime_package_version}" >> $GITHUB_ENV
- name: Updating candidate tag
Expand Down
Loading

0 comments on commit 8997b2b

Please sign in to comment.