-
Notifications
You must be signed in to change notification settings - Fork 35
328 lines (295 loc) · 11.2 KB
/
run_pr_tests.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# Simple workflow for running non-documentation PR testing
name: Run ock tests for PR testing
on:
workflow_call:
inputs:
update_cache:
required: false
type: boolean
default: false
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
update_cache:
required: false
default: false
type: boolean
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# build and run host x86_64, execute UnitCL and lit tests and build and run offline
# run_host_x86_64:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# # installs tools, ninja, installs llvm and sets up sccahe
# - name: setup-ubuntu
# uses: ./.github/actions/setup_build
# with:
# llvm_version: 18
# llvm_build_type: RelAssert
# save: ${{ inputs.update_cache }}
# # These need to match the configurations of build_pr_cache to use the cache effectively
# - name: build host x86_64 online release
# uses: ./.github/actions/do_build_ock
# with:
# build_type: Release
# - name: run just online lit
# run:
# ninja -C build check-ock-all-lit
# - name: run host online check
# run:
# ninja -C build check-ock-UnitCL
# # use the previous build for online to get clc
# - name: build host x86_64 offline release
# uses: ./.github/actions/do_build_ock
# with:
# build_type: Release
# extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc
# build_dir: build_offline
# build_targets: UnitCL
# assemble_spirv_ll_lit_test_offline: ON
# - name: run host x86_64 offline
# run:
# ninja -C build_offline check-ock-UnitCL
# # build and run riscv m1, execute UnitCL and lit tests
# run_riscv_m1:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# # installs tools, ninja, installs llvm and sets up sccahe
# - name: setup-ubuntu
# uses: ./.github/actions/setup_build
# with:
# llvm_version: 18
# llvm_build_type: RelAssert
# save: ${{ inputs.update_cache }}
# - name: build riscv M1
# uses: ./.github/actions/do_build_ock/do_build_m1
# - name: run riscv M1 lit
# run:
# ninja -C build check-ock-all-lit
# - name: run riscv M1 UnitCL tests
# run:
# ninja -C build check-ock-UnitCL
# # run clang-format-diff on the repo
# run_clang_format:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: setup-ubuntu-clang-format
# run:
# pip install clang-format==19.1.0
# - name: run clang-format
# run: |
# # we've installed clang-format-19 in the docker via pip, which just installs it as clang-format,
# # so just use clang-format-diff and -b clang-format directly
# git fetch origin ${{ github.base_ref }}
# git diff --no-color origin/${{ github.base_ref }} | \
# clang-format-diff.py -p1 -regex \
# "^(?!(.+\\/)*(external|cookie)\\/).*\\.(c|cc|cxx|cpp|h|hh|hxx|hpp)$" -b clang-format
# # Based on: mr-windows-msvc-x86_64-llvm-previous-cl3.0-offline
run_windows_msvc_x86_64_llvm_latest_cl3_0_offline:
runs-on: windows-2019
steps:
- name: Setup Windows llvm base
uses: llvm/actions/setup-windows@main
with:
arch: amd64
- name: Checkout repo
uses: actions/[email protected]
# installs tools, ninja, installs llvm and sets up sccache
- name: setup-windows
uses: ./.github/actions/setup_build
with:
llvm_version: 19
llvm_build_type: RelAssert
os: windows
- name: build ock x86_64 relassert
uses: ./.github/actions/do_build_ock
with:
build_targets: all
# check-ock
enable_api: ""
builtin_kernel: ON
shell_to_use: pwsh
gtest_launcher: "python3;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py"
debug_support: ON
c_compiler: 'cl.exe'
cxx_compiler: 'cl.exe'
- name:UnitCargo
run: ninja -C build check-ock-UnitCargo
- name:UnitMD
run: ninja -C build check-ock-UnitMD
- name:UnitCompiler
run: ninja -C build check-ock-UnitCompiler
# - name:TBD
# run: ninja -C build check-ock-utility command for ca-common-lit
- name:TBD
run: ninja -C build check-ock-host-compiler-lit
- name:TBD
run: ninja -C build check-ock-spirv-ll-lit
- name:TBD
run: ninja -C build check-ock-UnitMux
- name:TBD
run: ninja -C build check-ock-clVectorAddition-ComputeAorta_x86_64_Windows
- name:TBD
run: ninja -C build check-ock-clCommandBufferKHR-ComputeAorta_x86_64_Windows
- name:TBD
run: ninja -C build check-ock-clMutableDispathcKHR-ComputeAorta_x86_64_Windows
- name:TBD
run: ninja -C build check-ock-clSubGroups-ComputeAorta_x86_64_Windows
- name:TBD
run: ninja -C build check-ock-host-mux-lit
- name:TBD
run: ninja -C build check-ock-vecz-lit
- name:TBD
run: ninja -C build check-ock-passes-lit
- name:TBD
run: ninja -C build check-ock-MultiDevice
- name:TBD
run: ninja -C build check-ock-UnitCL-opt-disable
- name:TBD
run: ninja -C build check-ock-UnitCL-opt-disable-vecz
- name:TBD
run: ninja -C build check-ock-UnitCL-opt-disable-vecz-boscc
- name:TBD
run: ninja -C build check-ock-UnitCL-prevec
- name:TBD
run: ninja -C build check-ock-UnitCL-debug
- name:TBD
run: ninja -C build check-ock-UnitCL-prevec-opt-disable
- name:TBD
run: ninja -C build check-ock-UnitCL
- name:TBD
run: ninja -C build check-ock-UnitCL-prevec-vecz-full-scalarization
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-never-opt-disable-debug
- name:TBD
run: ninja -C build check-ock-UnitCL-prevec-vecz
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-boscc-debug
- name:TBD
run: ninja -C build check-ock-UnitCL-USM
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-boscc
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-debug
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-never
- name:TBD
run: ninja -C build check-ock-vkVectorAddition
- name:TBD
run: ninja -C build check-ock-UnitVK
- name:TBD
run: ninja -C build check-ock-UnitCL-vecz-everything
# - name: build ock x86_64 offline
# uses: ./.github/actions/do_build_ock
# with:
# build_targets: check-ock
# runtime_compiler_enabled: OFF
# external_clc: "${{ github.workspace }}/build/bin/clc.exe"
# shell_to_use: pwsh
# gtest_launcher: "python3;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py"
# debug_support: ON
# install_dir: ${{ github.workspace }}/install_offline
# build_dir: ${{ github.workspace }}/build_offline
# c_compiler: 'cl.exe'
# cxx_compiler: 'cl.exe'
# Based on: mr-ubuntu-gcc-x86_64-riscv-fp16-cl3.0-unitcl_vecz
run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: setup-ubuntu
uses: ./.github/actions/setup_build
with:
llvm_version: '18'
llvm_build_type: RelAssert
os: ubuntu
- run: echo WORKSPACE is $GITHUB_WORKSPACE && echo PWD is `pwd` && ls -al
- name: build ock
uses: ./.github/actions/do_build_ock
with:
build_targets: all
# check-ock-UnitCL-group-vecz
mux_targets_enable: riscv
mux_compilers_enable: riscv
riscv_enabled: ON
enable_rvv_scalable_vecz_check: ON
enable_rvv_scalable_vp_vecz_check: ON
use_linker: gold
hal_description: RV64GCV_Zfh
hal_refsi_soc: G1
hal_refsi_thread_mode: WG
debug_support: ON
- name run check-ock-UnitCL
run: ninja -C build check-ock-UnitCL
- name run check-ock-UnitCL-vecz-never
run: ninja -C build check-ock-UnitCL-vecz-never
- name run check-ock-UnitCL-prevec-vecz
run: ninja -C check-ock-UnitCL-prevec-vecz
- name run check-ock-UnitCL-vecz-everything
run: ninja -C build check-ock-UnitCL-vecz-everything
- name run check-ock-UnitCL-vecz-never-opt-disable-debug
run: ninja -C build check-ock-UnitCL-vecz-never-opt-disable-debug
- name run check-ock-UnitCL
run: ninja -C build check-ock-UnitCL
- name run check-ock-UnitCL-vecz-boscc
run: ninja -C build check-ock-UnitCL-vecz-boscc
- name run check-ock-UnitCL-vecz-boscc-debug
run: ninja -C build check-ock-UnitCL-vecz-boscc-debug
- name run check-ock-UnitCL-vecz-debug
run: ninja -C build check-ock-UnitCL-vecz-debug
- name run check-ock-UnitCL-riscv-vecz-vf-nxv1-vp
run: ninja -C build check-ock-UnitCL-riscv-vecz-vf-nxv1-vp
- name run check-ock-UnitCL-riscv-vecz-vf-nxv1-vvp
run: ninja -C build check-ock-UnitCL-riscv-vecz-vf-nxv1-vvp
# Based on: mr-ubuntu-clang-x86-llvm-previous-cl3-0-offline
# run-ubuntu-clang-x86-llvm-latest-cl3-0-offline:
# runs-on: ubuntu-22.04
# timeout-minutes: 90 # offline needs longer timeout
# steps:
# - name: Checkout repo
# uses: actions/[email protected]
# - name: setup-ubuntu
# uses: ./.github/actions/setup_build
# with:
# llvm_version: '19'
# llvm_build_type: RelAssert
# arch: x86
# - run: echo WORKSPACE is $GITHUB_WORKSPACE && echo PWD is `pwd` && ls -al
# - name: build ock x86 relassert
# uses: ./.github/actions/do_build_ock
# with:
# build_32_bit: ON
# c_compiler: $GITHUB_WORKSPACE/llvm_install/bin/clang
# cxx_compiler: $GITHUB_WORKSPACE/llvm_install/bin/clang++
# build_targets: check-ock
# enable_api: ""
# builtin_kernel: ON
# use_linker: gold
# debug_support: ON
# - name: build ock x86 offline
# uses: ./.github/actions/do_build_ock
# with:
# build_32_bit: ON
# c_compiler: $GITHUB_WORKSPACE/llvm_install/bin/clang
# cxx_compiler: $GITHUB_WORKSPACE/llvm_install/bin/clang++
# build_targets: check-ock
# runtime_compiler_enabled: OFF
# assemble_spirv_ll_lit_test_offline: ON
# external_clc: ${GITHUB_WORKSPACE}/build/bin/clc
# use_linker: gold
# debug_support: ON
# install_dir: $GITHUB_WORKSPACE/install_offline
# build_dir: $GITHUB_WORKSPACE/build_offline