-
Notifications
You must be signed in to change notification settings - Fork 13
240 lines (202 loc) · 6.18 KB
/
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
name: 'benchmark (pull request)'
on:
pull_request:
branches: [ main ]
jobs:
fetch-branch:
name: 'Fetch branch'
runs-on: ubuntu-latest
steps:
- id: identify
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
outputs:
branch: ${{ steps.identify.outputs.branch }}
fetch-remote:
name: 'Fetch remote'
runs-on: ubuntu-latest
steps:
- id: identify
run: echo "remote=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
outputs:
remote: ${{ steps.identify.outputs.remote }}
skip_duplicate:
name: 'Skip Job?'
continue-on-error: true
runs-on: ubuntu-latest
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
paths: '["src/adiar/**"]'
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
run_picotrav:
name: 'Performance Regression: Picotrav ${{ matrix.circuit }}'
runs-on: ubuntu-latest
needs: [fetch-branch, fetch-remote, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
strategy:
fail-fast: false
matrix:
include:
- { circuit: adder }
- { circuit: arbiter }
- { circuit: mem_ctrl }
steps:
- uses: actions/checkout@v2
with:
repository: 'ssoelvsten/bdd-benchmark'
submodules: 'recursive'
fetch-depth: '0'
- name: 'apt install'
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: 'pip install'
run: |
sudo pip install wget
- name: 'python3 regression.py'
run: |
python3 ./regression.py <<< "picotrav
yes
${{ matrix.circuit }}
adiar
8192
origin
main
${{ needs.fetch-remote.outputs.remote }}
${{ needs.fetch-branch.outputs.branch }}
no
no
3
10
"
- name: 'post regression_adiar.out'
if: always()
uses: mshick/add-pr-comment@main
with:
message-path: ./regression_adiar.out
message-id: 'benchmark_picotrav_${{ matrix.circuit }}'
run_qbf:
name: 'Performance Regression: QBF ${{ matrix.category }}/${{ matrix.circuit }}'
runs-on: ubuntu-latest
needs: [fetch-branch, fetch-remote, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
strategy:
fail-fast: false
matrix:
include:
- { category: breakthrough, circuit: 3x4_19_bwnib }
- { category: breakthrough_dual, circuit: 3x6_10_bwnib }
- { category: connect4, circuit: 6x6_11_connect4_bwnib }
- { category: domineering, circuit: 5x5_13_bwnib }
- { category: ep, circuit: 8x8_7_e-8-1_p-3-4_bwnib }
- { category: ep_dual, circuit: 8x8_6_e-8-1_p-2-3_bwnib }
- { category: hex, circuit: hein_08_5x5-11_bwnib }
- { category: httt, circuit: 4x4_9_tippy_bwnib }
steps:
- uses: actions/checkout@v2
with:
repository: 'ssoelvsten/bdd-benchmark'
submodules: 'recursive'
fetch-depth: '0'
- name: 'apt install'
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: 'pip install'
run: |
sudo pip install wget
- name: 'python3 regression.py'
run: |
python3 ./regression.py <<< "qbf
yes
${{ matrix.category }}
${{ matrix.circuit }}
adiar
8192
origin
main
${{ needs.fetch-remote.outputs.remote }}
${{ needs.fetch-branch.outputs.branch }}
no
no
3
10
"
- name: 'post regression_adiar.out'
if: always()
uses: mshick/add-pr-comment@main
with:
message-path: ./regression_adiar.out
message-id: 'benchmark_qbf_${{ matrix.circuit }}'
run_queens:
name: 'Performance Regression: ${{ matrix.N }}-Queens'
runs-on: ubuntu-latest
needs: [fetch-branch, fetch-remote, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
strategy:
fail-fast: false
matrix:
include:
- { N: 12 }
- { N: 14 }
steps:
- uses: actions/checkout@v2
with:
repository: 'ssoelvsten/bdd-benchmark'
submodules: 'recursive'
fetch-depth: '0'
- name: 'apt install'
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: 'pip install'
run: |
sudo pip install wget
- name: 'python3 regression.py'
run: |
python3 ./regression.py <<< "queens
${{ matrix.N }}
adiar
8192
origin
main
${{ needs.fetch-remote.outputs.remote }}
${{ needs.fetch-branch.outputs.branch }}
no
no
3
10
"
- name: 'post regression_adiar.out'
if: always()
uses: mshick/add-pr-comment@main
with:
message-path: ./regression_adiar.out
message-id: 'benchmark_queens_${{ matrix.N }}'
run_dummy:
name: 'Performance Regression: ${{ matrix.title }}'
runs-on: ubuntu-latest
needs: [skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip == 'true' }}
strategy:
matrix:
include:
- title: 'Picotrav adder'
- title: 'Picotrav arbiter'
- title: 'Picotrav mem_ctrl'
- title: '12-Queens'
- title: '14-Queens'
- title: 'QBF breakthrough/3x4_19_bwnib'
- title: 'QBF breakthrough_dual/3x6_10_bwnib'
- title: 'QBF connect4/6x6_11_connect4_bwnib'
- title: 'QBF domineering/5x5_13_bwnib'
- title: 'QBF ep/8x8_7_e-8-1_p-3-4_bwnib'
- title: 'QBF ep_dual/8x8_6_e-8-1_p-2-3_bwnib'
- title: 'QBF hex/hein_08_5x5-11_bwnib'
- title: 'QBF httt/4x4_9_tippy_bwnib'
steps:
- name: Echo skip
run: |
echo "Running benchmarks is skipped"