-
Notifications
You must be signed in to change notification settings - Fork 31
80 lines (73 loc) · 2.68 KB
/
tpp-benchmark.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
name: TPP-MLIR Benchmarks
on:
workflow_dispatch:
inputs:
RUN_EMR_BENCH:
description: "Run on Emerald Rapids"
default: "1"
RUN_ZEN_BENCH:
description: "Run on Zen5"
default: "0"
push:
branches:
- 'main'
pull_request:
types: [ labeled ]
env:
NPROCS_LIMIT_LINK: 8
SRUN: ${HOME}/srun.sh
NUM_ITER: 100
jobs:
Check_LLVM:
if: ${{ github.event_name }} == "push" || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
uses: ./.github/workflows/tpp-llvm.yml
secrets: inherit
TPP-MLIR-EMR-BASE:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Emerald Rapids Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-EMR-OMP:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Emerald Rapids OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Zen5 Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=zen5 --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Zen5 OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=zen5 --time=0:30:00 --constraint=\"notrb\" -- $CMD