-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename matmul/ to linalg_ops/, rebase IREE, add test workflow. (#21)
Progress on #2. * Renamed top level `matmul/` folder to `linalg_ops/`. We can put `convolution` (linalg) and `attention` (linalg_ext) tests under here too. Maybe other named ops or generics too. * Rebased on the latest IREE code, including flag renames (though we should drop usage of some flags and prefer to test the main user-facing options) * Added a workflow that goes through the instructions in `linalg_ops/README.md` and configured both workflows to run on `push` events in addition to the current triggers.
- Loading branch information
Showing
12 changed files
with
118 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright 2024 The IREE Authors | ||
# | ||
# 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: Test Linalg Ops | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/test_linalg_ops.yml" | ||
- "linalg_ops/**" | ||
pull_request: | ||
paths: | ||
- ".github/workflows/test_linalg_ops.yml" | ||
- "linalg_ops/**" | ||
workflow_dispatch: | ||
schedule: | ||
# Runs at 3:00 PM UTC, which is 8:00 AM PST | ||
- cron: "0 15 * * *" | ||
|
||
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: | ||
test-linalg-ops: | ||
runs-on: ubuntu-24.04 | ||
env: | ||
BUILD_DIR: build | ||
VENV_DIR: ${{ github.workspace }}/.venv | ||
CC: clang | ||
CXX: clang++ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install Python packages. | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Setup Python venv | ||
run: python3 -m venv ${VENV_DIR} | ||
- name: Install IREE nightly release Python packages | ||
run: | | ||
source ${VENV_DIR}/bin/activate | ||
python3 -m pip install -r linalg_ops/requirements-iree.txt | ||
# Build and run tests. | ||
- name: Install build dependencies | ||
run: sudo apt update && sudo apt install -y ninja-build | ||
- name: CMake - Configure | ||
working-directory: linalg_ops | ||
run: | | ||
source ${VENV_DIR}/bin/activate | ||
cmake -G Ninja -B ${BUILD_DIR} . \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DIREE_HOST_BIN_DIR=${VENV_DIR}/bin | ||
- name: CMake - build | ||
working-directory: linalg_ops | ||
run: | | ||
cmake --build ${BUILD_DIR} | ||
cmake --build ${BUILD_DIR} --target iree-test-suites-linalg-ops-deps | ||
- name: CTest | ||
working-directory: linalg_ops | ||
run: | | ||
ctest \ | ||
--test-dir build/ \ | ||
-R iree-test-suites \ | ||
--label-exclude "^driver=vulkan$|^driver=metal$|^driver=cuda$|^driver=hip$" |
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
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
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
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
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
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
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