Skip to content

Commit

Permalink
Merge branch 'main' into reland_prop_through_reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWood1 authored Dec 27, 2024
2 parents feb954f + a43d893 commit c15af81
Show file tree
Hide file tree
Showing 263 changed files with 6,344 additions and 3,712 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
setup:
uses: ./.github/workflows/setup.yml

##############################################################################
# Runtime builds

runtime:
needs: setup
name: "runtime :: ${{ matrix.name }}"
Expand Down Expand Up @@ -196,16 +199,44 @@ jobs:
- name: CMake - build
run: cmake --build ${BUILD_DIR} -- -k 0

##############################################################################
# Full project builds

linux_x64_bazel:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_bazel')
uses: ./.github/workflows/ci_linux_x64_bazel.yml
secrets: inherit

linux_x64_clang:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang')
uses: ./.github/workflows/ci_linux_x64_clang.yml
secrets: inherit

linux_x64_clang_asan:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_asan')
uses: ./.github/workflows/ci_linux_x64_clang_asan.yml
secrets: inherit

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

# Aggregate job status and alerting on failures.
ci_summary:
if: always()
needs:
- setup

# Runtime builds.
- runtime
- runtime_small
- runtime_tracing

# Full project builds.
- linux_x64_bazel
- linux_x64_clang
- linux_x64_clang_asan
uses: ./.github/workflows/workflow_summary.yml
secrets: inherit
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_linux_arm64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ concurrency:

jobs:
linux_arm64_clang:
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
26 changes: 2 additions & 24 deletions .github/workflows/ci_linux_x64_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,11 @@
name: CI - Linux x64 bazel

on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main

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
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

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

linux_x64_bazel:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_bazel')
runs-on: azure-linux-scale
container:
image: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
Expand All @@ -54,10 +38,4 @@ jobs:
/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 }}"
# Alerting on failure is the responsibility of the calling job.
26 changes: 2 additions & 24 deletions .github/workflows/ci_linux_x64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,11 @@
name: CI - Linux x64 clang

on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main

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
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

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

linux_x64_clang:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang')
runs-on: azure-linux-scale
container:
image: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
Expand Down Expand Up @@ -71,10 +55,4 @@ jobs:
- 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 }}"
# Alerting on failure is the responsibility of the calling job.
26 changes: 2 additions & 24 deletions .github/workflows/ci_linux_x64_clang_asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,11 @@
name: CI - Linux x64 clang ASan

on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main

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
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

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

linux_x64_clang_asan:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_asan')
runs-on: azure-linux-scale
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
defaults:
Expand All @@ -54,10 +38,4 @@ jobs:
./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 }}"
# Alerting on failure is the responsibility of the calling job.
3 changes: 2 additions & 1 deletion .github/workflows/ci_linux_x64_clang_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
# 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:
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
7 changes: 2 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
1 change: 1 addition & 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
3 changes: 1 addition & 2 deletions .github/workflows/pkgci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ jobs:
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_onnx')
uses: ./.github/workflows/pkgci_test_onnx.yml

# TODO(https://github.com/iree-org/iree-test-suites/issues/56): re-enable when git LFS quota is available
test_sharktank:
name: Test Sharktank
needs: [setup, build_packages]
if: false && contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_sharktank')
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_sharktank')
uses: ./.github/workflows/pkgci_test_sharktank.yml

test_tensorflow:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pkgci_regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: nod-ai/SHARK-TestSuite
ref: f5615ab29da491c0047146258dfa3a0c40c735e5
ref: 601db0e472600a94ddb69b37d05cd7d4a17f89b2
path: SHARK-TestSuite
submodules: false
lfs: true
Expand All @@ -112,7 +112,7 @@ jobs:
--no-skip-tests-missing-files \
--capture=no \
--log-cli-level=info \
--timeout=240 \
--timeout=600 \
--durations=0 \
--config-files=${MODELS_CONFIG_FILE_PATH}
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
-rpfE \
--capture=no \
--log-cli-level=info \
--timeout=240 \
--timeout=600 \
--durations=0
env:
ROCM_CHIP: ${{ matrix.rocm-chip }}
Expand All @@ -203,7 +203,7 @@ jobs:
-rpfE \
--capture=no \
--log-cli-level=info \
--timeout=240 \
--timeout=600 \
--durations=0
env:
ROCM_CHIP: ${{ matrix.rocm-chip }}
Expand All @@ -227,7 +227,7 @@ jobs:
--goldensize-rocm-clip-bytes 860000 \
--goldensize-rocm-vae-bytes 840000 \
--rocm-chip gfx90a \
--timeout=240 \
--timeout=600 \
--log-cli-level=info \
--retries 7
echo "$(<job_summary.md )" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -256,6 +256,6 @@ jobs:
--goldensize-rocm-punet-int8-fp8-bytes 2800000 \
--rocm-chip gfx942 \
--log-cli-level=info \
--timeout=240 \
--timeout=600 \
--retries 7
echo "$(<job_summary.md )" >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .github/workflows/pkgci_test_sharktank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: iree-org/iree-test-suites
ref: c644a9dfc3e5e1a9d071d5e786b79cf612e9b1d3
ref: fece13306aff1d8ef33858dccfdb10eaf8b036c2
path: iree-test-suites
lfs: true
- name: Install Sharktank models test suite requirements
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ concurrency:

jobs:
colab:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
steps:
- name: "Checking out repository"
Expand All @@ -40,6 +41,7 @@ jobs:
run: ./samples/colab/test_notebooks.py

samples:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
CC: clang
Expand All @@ -59,6 +61,7 @@ jobs:
run: ./build_tools/testing/test_samples.sh

web:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
VENV_DIR: ${{ github.workspace }}/.venv
Expand Down Expand Up @@ -92,7 +95,7 @@ jobs:
- name: "Setup emsdk"
uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
with:
version: 3.1.44
version: 3.1.74
- name: "Test experimental web samples"
env:
HOST_TOOLS_BINARY_DIR: ${{ env.VENV_DIR }}/bin
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/schedule_candidate_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

jobs:
tag_release:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
name: "Tag candidate release"
runs-on: ubuntu-24.04
steps:
Expand Down
Loading

0 comments on commit c15af81

Please sign in to comment.