Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tuner] Add candidate generator script #141

Merged
merged 24 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci-tuner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI - Tuner

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

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pre-commit-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.12'

- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -r sharktank/sharktank/tools/tuner/requirements-dev.txt

- name: Run pre-commit test
run: pre-commit run --all-files --show-diff-on-failure --color=always
RattataKing marked this conversation as resolved.
Show resolved Hide resolved

- name: Install tuner dependencies
run: |
pip install -r sharktank/sharktank/tools/tuner/requirements-tuner.txt
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler iree-runtime

- name: Run pytest
working-directory: sharktank/tests/tuner
run: |
python -m pytest
RattataKing marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading