Skip to content

Commit a2468dc

Browse files
committed
[CI] Add L0 v2 build to CI
1 parent 4078649 commit a2468dc

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

.github/workflows/build-hw-reusable.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ name: Build - Adapters on HW - Reusable
44
on:
55
workflow_call:
66
inputs:
7-
name:
7+
adapter_name:
8+
required: true
9+
type: string
10+
runner_name:
811
required: true
912
type: string
1013
platform:
@@ -33,7 +36,7 @@ jobs:
3336
strategy:
3437
matrix:
3538
adapter: [
36-
{name: "${{inputs.name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}"},
39+
{name: "${{inputs.adapter_name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}"},
3740
]
3841
build_type: [Debug, Release]
3942
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
@@ -47,7 +50,7 @@ jobs:
4750
- adapter: {static_Loader: ON}
4851
compiler: {c: clang, cxx: clang++}
4952

50-
runs-on: ${{matrix.adapter.name}}
53+
runs-on: ${{inputs.runner_name}}
5154

5255
steps:
5356
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/cmake.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,39 +138,52 @@ jobs:
138138
name: Level Zero
139139
uses: ./.github/workflows/build-hw-reusable.yml
140140
with:
141-
name: L0
141+
adapter_name: L0
142+
runner_name: L0
143+
144+
level-zero-v2:
145+
name: Level Zero V2
146+
uses: ./.github/workflows/build-hw-reusable.yml
147+
with:
148+
adapter_name: L0_V2
149+
runner_name: L0
142150

143151
level-zero-static:
144152
name: Level Zero static
145153
uses: ./.github/workflows/build-hw-reusable.yml
146154
with:
147-
name: L0
155+
adapter_name: L0
156+
runner_name: L0
148157
static_loader: ON
149158

150159
opencl:
151160
name: OpenCL
152161
uses: ./.github/workflows/build-hw-reusable.yml
153162
with:
154-
name: OPENCL
163+
adapter_name: OPENCL
164+
runner_name: OPENCL
155165
platform: "Intel(R) OpenCL"
156166

157167
cuda:
158168
name: CUDA
159169
uses: ./.github/workflows/build-hw-reusable.yml
160170
with:
161-
name: CUDA
171+
adapter_name: CUDA
172+
runner_name: CUDA
162173

163174
hip:
164175
name: HIP
165176
uses: ./.github/workflows/build-hw-reusable.yml
166177
with:
167-
name: HIP
178+
adapter_name: HIP
179+
runner_name: HIP
168180

169181
native-cpu:
170182
name: Native CPU
171183
uses: ./.github/workflows/build-hw-reusable.yml
172184
with:
173-
name: NATIVE_CPU
185+
adapter_name: NATIVE_CPU
186+
runner_name: NATIVE_CPU
174187

175188
e2e-level-zero:
176189
name: E2E L0
@@ -202,15 +215,20 @@ jobs:
202215
matrix:
203216
os: ['windows-2019', 'windows-2022']
204217
adapter: [
205-
{name: None, var: ''}, {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'}
218+
{name: None, var: ''}, {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'},
219+
{name: None, var: ''}, {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
206220
]
207221

208222
# TODO: building level zero loader on windows-2019 and clang-cl is currently broken
209223
exclude:
210224
- os: 'windows-2019'
211225
adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'}
226+
- os: 'windows-2019'
227+
adapter: {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
212228
- adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'}
213229
compiler: {c: clang-cl, cxx: clang-cl}
230+
- adapter: {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
231+
compiler: {c: clang-cl, cxx: clang-cl}
214232

215233
build_type: [Debug, Release]
216234
compiler: [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}]

0 commit comments

Comments
 (0)