-
Notifications
You must be signed in to change notification settings - Fork 39
67 lines (59 loc) · 2.23 KB
/
perf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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: PERF
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
- cron: "30 5 * * *"
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:
name: "Unit Tests and Type Checking"
strategy:
fail-fast: false
matrix:
version: [3.11]
os: [nodai-amdgpu-mi300-x86-64]
runs-on: ${{matrix.os}}
env:
VENV_DIR: ${{ github.workspace }}/.turbine-venv
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Setting up Python"
id: setup_python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{matrix.version}}
- name: Create Python venv
run: |
python -m venv ${VENV_DIR}
source ${VENV_DIR}/bin/activate
echo VIRTUAL_ENV=$VIRTUAL_ENV >> "$GITHUB_ENV"
echo "$VENV_DIR/bin" >> "$GITHUB_PATH"
- name: Install pip deps
run: |
python -m pip install --no-compile --upgrade pip
# Note: We install in three steps in order to satisfy requirements
# from non default locations first. Installing the PyTorch CPU
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
pip install --no-compile -r pytorch-rocm-requirements.txt
pip install --no-cache-dir -r requirements-iree-pinned.txt --upgrade
pip install -r requirements.txt -e .
- name: Run e2e tests on MI300
if: "contains(matrix.os, 'mi300') && !cancelled()"
run: |
export TEST_PARAMS_PATH="tests/kernel/wave/test_param.json"
pytest -n 1 --capture=tee-sys -vv --run-e2e ./tests/kernel/wave/