Bump IREE to latest commit on main. #645
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Advanced Micro Devices, Inc. | |
# | |
# Licensed under the Apache License v2.0 with LLVM Exceptions. | |
# See https://llvm.org/LICENSE.txt for license information. | |
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
name: CI - shortfin - SDXL | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '.github/workflows/ci-sdxl.yaml' | |
- 'shortfin/**' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/ci-sdxl.yaml' | |
- 'shortfin/**' | |
permissions: | |
contents: read | |
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 | |
env: | |
IREE_REPO_DIR: ${{ github.workspace }}/iree | |
LIBSHORTFIN_DIR: ${{ github.workspace }}/shortfin/ | |
jobs: | |
install-and-test: | |
name: Install and test | |
runs-on: mi300x-4 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install dependencies | |
run: | | |
if dpkg -s cmake &>/dev/null; then | |
echo 'cmake is installed' | |
else | |
sudo apt install cmake -y | |
fi | |
if dpkg -s ninja-build &>/dev/null; then | |
echo 'ninja is installed' | |
else | |
sudo apt install ninja -y | |
fi | |
- name: Setup Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install requirements | |
working-directory: ${{ env.LIBSHORTFIN_DIR }} | |
run: | | |
pip install -r requirements-tests.txt | |
pip install -r requirements-iree-compiler.txt | |
pip freeze | |
- name: Install shortfin | |
working-directory: ${{ env.LIBSHORTFIN_DIR }} | |
run: | | |
pip install --no-compile -e . | |
- name: Test apps/sd/e2e_test | |
working-directory: ${{ env.LIBSHORTFIN_DIR }} | |
env: | |
HIP_VISIBLE_DEVICES: 0 | |
run: | | |
pytest tests/apps/sd/e2e_test.py -v -s --system=amdgpu |