-
Notifications
You must be signed in to change notification settings - Fork 72
66 lines (62 loc) · 1.87 KB
/
manual-perf.yml
File metadata and controls
66 lines (62 loc) · 1.87 KB
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
name: Manual Performance Test
on:
workflow_dispatch:
inputs:
configuration:
description: 'Choose Kunminghu configuration'
required: true
type: choice
default: 'idealkmhv3.py'
options:
- 'kmhv2.py'
- 'kmhv3.py'
- 'idealkmhv3.py'
benchmark_type:
description: 'Benchmark coverage type'
required: true
type: choice
default: 'spec06-0.8c'
options:
- spec06-0.3c
- spec06-0.8c
- spec06-1.0c
- spec17-1.0c
- spec06-rvv-1.0c
- spec06int-rvv-0.8c
vector_type:
description: 'Vector decode strategy (only for rvv benchmarks)'
required: false
type: choice
default: 'base'
options:
- base
- simple
branch:
description: 'Branch, tag or SHA to test (leave empty for current branch)'
required: false
type: string
jobs:
setup:
runs-on: ubuntu-latest
outputs:
config_path: ${{ steps.resolve.outputs.config_path }}
pr_sha: ${{ steps.resolve.outputs.pr_sha }}
steps:
- name: Resolve parameters
id: resolve
run: |
echo "config_path=configs/example/${{ github.event.inputs.configuration }}" >> $GITHUB_OUTPUT
if [ -n "${{ github.event.inputs.branch }}" ]; then
echo "pr_sha=${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT
else
echo "pr_sha=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
perf_test:
needs: setup
uses: ./.github/workflows/gem5-perf-template.yml
with:
config_path: ${{ needs.setup.outputs.config_path }}
benchmark_type: ${{ github.event.inputs.benchmark_type }}
vector_type: ${{ github.event.inputs.vector_type }}
pr_sha: ${{ needs.setup.outputs.pr_sha }}
check_result: true