Skip to content

Commit 0d34136

Browse files
committed
reuse matrix approach. remove cts testing. fix mistake in lit.cfg.py
1 parent 69e0ad5 commit 0d34136

File tree

2 files changed

+76
-128
lines changed

2 files changed

+76
-128
lines changed

.github/workflows/sycl-nightly.yml

Lines changed: 75 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,66 @@ jobs:
166166
target_devices: level_zero:gpu
167167
extra_lit_opts: --param test-preview-mode=True
168168

169+
- name: AMD/HIP with NewOffloadModel
170+
runner: '["Linux", "amdgpu"]'
171+
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd
172+
target_devices: hip:gpu
173+
extra_lit_opts: --param enable_new_offload_model=True --param enable_new_offload_model=True
174+
175+
- name: NVIDIA/CUDA with NewOffloadModel
176+
runner: '["Linux", "cuda"]'
177+
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN
178+
target_devices: cuda:gpu
179+
extra_lit_opts: --param enable_new_offload_model=True
180+
181+
- name: Intel L0 Gen12 GPU with NewOffloadModel
182+
runner: '["Linux", "gen12"]'
183+
target_devices: level_zero:gpu
184+
extra_lit_opts: --param enable_new_offload_model=True
185+
186+
- name: Intel L0 Ponte Vecchio GPU with NewOffloadModel
187+
runner: '["Linux", "pvc"]'
188+
target_devices: level_zero:gpu
189+
extra_lit_opts: --param enable_new_offload_model=True
190+
191+
- name: Intel L0 Battlemage GPU with NewOffloadModel
192+
runner: '["Linux", "bmg"]'
193+
target_devices: level_zero:gpu
194+
extra_lit_opts: --param enable_new_offload_model=True
195+
196+
- name: Preview mode on Intel L0 Battlemage GPU with NewOffloadModel
197+
runner: '["Linux", "bmg"]'
198+
target_devices: level_zero:gpu
199+
extra_lit_opts: --param test-preview-mode=True
200+
201+
- name: Intel L0 Arc A-Series GPU with NewOffloadModel
202+
runner: '["Linux", "arc"]'
203+
target_devices: level_zero:gpu
204+
extra_lit_opts: --param enable_new_offload_model=True
205+
206+
- name: Intel OCL Gen12 GPU with NewOffloadModel
207+
runner: '["Linux", "gen12"]'
208+
target_devices: opencl:gpu
209+
extra_lit_opts: --param enable_new_offload_model=True
210+
211+
- name: OCL CPU (AMD) with NewOffloadModel
212+
runner: '["Linux", "amdcpu"]'
213+
image_options: -u 1001
214+
target_devices: opencl:cpu
215+
extra_lit_opts: --param enable_new_offload_model=True
216+
217+
- name: OCL CPU (Intel/GEN12) with NewOffloadModel
218+
runner: '["Linux", "gen12"]'
219+
image_options: -u 1001 --privileged --cap-add SYS_ADMIN
220+
target_devices: opencl:cpu
221+
extra_lit_opts: --param enable_new_offload_model=True
222+
223+
- name: OCL CPU (Intel/Arc) with NewOffloadModel
224+
runner: '["Linux", "arc"]'
225+
image_options: -u 1001
226+
target_devices: opencl:cpu
227+
extra_lit_opts: --param enable_new_offload_model=True
228+
169229
uses: ./.github/workflows/sycl-linux-run-tests.yml
170230
with:
171231
name: ${{ matrix.name }}
@@ -197,28 +257,6 @@ jobs:
197257
toolchain_artifact_filename: ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_artifact_filename }}
198258
toolchain_decompress_command: ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_decompress_command }}
199259

200-
e2e-with-new-offload-model:
201-
needs: [ubuntu2204_build]
202-
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
203-
strategy:
204-
fail-fast: false
205-
uses: ./.github/workflows/sycl-linux-run-tests.yml
206-
permissions:
207-
contents: write
208-
packages: read
209-
with:
210-
name: "E2E with enabled NewOffloadModel"
211-
runner: ${{ inputs.runner }}
212-
image_options: ${{ inputs.image_options }}
213-
tests_selector: e2e
214-
testing_mode: ${{ inputs.testing_mode }}
215-
target_devices: ${{ inputs.target_devices }}
216-
extra_lit_opts: "--param enable_new_offload_model=True"
217-
tests_ref: ${{ github.sha }}
218-
toolchain_artifact: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
219-
toolchain_artifact_filename: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
220-
toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
221-
222260
build-win:
223261
needs: get_date
224262
uses: ./.github/workflows/sycl-windows-build.yml
@@ -254,29 +292,28 @@ jobs:
254292
runner: '["Windows", "bmg"]'
255293
target_devices: level_zero:gpu
256294

295+
- name: Intel L0 Gen12 GPU with NewOffloadModel
296+
runner: '["Windows", "gen12"]'
297+
target_devices: level_zero:gpu
298+
extra_lit_opts: --param enable_new_offload_model=True
299+
300+
- name: Intel L0 Arc GPU with NewOffloadModel
301+
runner: '["Windows", "arc"]'
302+
target_devices: level_zero:gpu
303+
extra_lit_opts: --param enable_new_offload_model=True
304+
305+
- name: Intel L0 Battlemage GPU with NewOffloadModel
306+
runner: '["Windows", "bmg"]'
307+
target_devices: level_zero:gpu
308+
extra_lit_opts: --param enable_new_offload_model=True
309+
257310
uses: ./.github/workflows/sycl-windows-run-tests.yml
258311
with:
259312
name: ${{ matrix.name }}
260313
runner: ${{ matrix.runner }}
261314
target_devices: ${{ matrix.target_devices }}
262315
toolchain_artifact_filename: ${{ needs.build-win.outputs.toolchain_artifact_filename }}
263316

264-
e2e-win-with-new-offload-model:
265-
needs: [build-win]
266-
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
267-
strategy:
268-
fail-fast: false
269-
uses: ./.github/workflows/sycl-windows-run-tests.yml
270-
permissions: read-all
271-
with:
272-
name: "E2E Windows with enabled NewOffloadModel"
273-
runner: '["Windows", arc"]'
274-
tests_selector: e2e
275-
testing_mode: ${{ inputs.testing_mode }}
276-
target_devices: level_zero:gpu
277-
extra_lit_opts: "--param enable_new_offload_model=True"
278-
toolchain_artifact_filename: ${{ needs.build-win.outputs.toolchain_artifact_filename }}
279-
280317
cuda-aws-start:
281318
needs: [ubuntu2204_build]
282319
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
@@ -364,60 +401,6 @@ jobs:
364401
toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
365402
binaries_artifact: sycl_cts_bin_linux
366403

367-
build-with-new-offload-sycl-cts-linux:
368-
needs: ubuntu2204_build
369-
permissions:
370-
contents: write
371-
packages: read
372-
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
373-
uses: ./.github/workflows/sycl-linux-run-tests.yml
374-
with:
375-
name: Build SYCL-CTS for Linux
376-
runner: '["Linux", "build"]'
377-
testing_mode: 'build-only'
378-
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
379-
tests_selector: cts
380-
extra_lit_opts: "--param enable_new_offload_model=True"
381-
repo_ref: ${{ github.sha }}
382-
toolchain_artifact: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
383-
toolchain_artifact_filename: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
384-
toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
385-
binaries_artifact: sycl_cts_bin_linux_with_new_offload_model
386-
387-
run-with-new-offload-sycl-cts-linux:
388-
needs: [ubuntu2204_build, build-with-new-offload-sycl-cts-linux]
389-
permissions:
390-
contents: write
391-
packages: read
392-
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
393-
strategy:
394-
fail-fast: false
395-
matrix:
396-
include:
397-
- name: SYCL-CTS on OCL CPU
398-
runner: '["Linux", "gen12"]'
399-
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
400-
target_devices: opencl:cpu
401-
402-
- name: SYCL-CTS on L0 gen12
403-
runner: '["Linux", "gen12"]'
404-
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
405-
target_devices: level_zero:gpu
406-
uses: ./.github/workflows/sycl-linux-run-tests.yml
407-
with:
408-
name: ${{ matrix.name }}
409-
runner: ${{ matrix.runner }}
410-
testing_mode: 'run-only'
411-
image_options: ${{ matrix.image_options }}
412-
target_devices: ${{ matrix.target_devices }}
413-
tests_selector: cts
414-
extra_lit_opts: "--param enable_new_offload_model=True"
415-
repo_ref: ${{ github.sha }}
416-
toolchain_artifact: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
417-
toolchain_artifact_filename: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
418-
toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
419-
binaries_artifact: sycl_cts_bin_linux_with_new_offload_model
420-
421404
build-sycl-cts-win:
422405
needs: build-win
423406
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
@@ -452,41 +435,6 @@ jobs:
452435
toolchain_artifact_filename: ${{ needs.build-win.outputs.toolchain_artifact_filename }}
453436
binaries_artifact: sycl_cts_bin_win
454437

455-
build-with-new-offload-model-sycl-cts-win:
456-
needs: build-win
457-
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
458-
uses: ./.github/workflows/sycl-windows-run-tests.yml
459-
with:
460-
name: Build SYCL-CTS for Windows
461-
runner: '["Windows", "build"]'
462-
testing_mode: 'build-only'
463-
tests_selector: cts
464-
extra_lit_opts: "--param enable_new_offload_model=True"
465-
repo_ref: ${{ github.sha }}
466-
toolchain_artifact_filename: ${{ needs.build-win.outputs.toolchain_artifact_filename }}
467-
binaries_artifact: sycl_cts_bin_win_with_new_offload_model
468-
469-
run-with-new-offload-sycl-cts-win:
470-
needs: [build-win, build-with-new-offload-sycl-cts-win]
471-
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
472-
strategy:
473-
fail-fast: false
474-
matrix:
475-
include:
476-
- name: SYCL-CTS on L0 gen12
477-
runner: '["Windows", "gen12"]'
478-
target_devices: level_zero:gpu
479-
uses: ./.github/workflows/sycl-windows-run-tests.yml
480-
with:
481-
name: ${{ matrix.name }}
482-
runner: ${{ matrix.runner }}
483-
testing_mode: 'run-only'
484-
target_devices: ${{ matrix.target_devices }}
485-
tests_selector: cts
486-
repo_ref: ${{ github.sha }}
487-
toolchain_artifact_filename: ${{ needs.build-win.outputs.toolchain_artifact_filename }}
488-
binaries_artifact: sycl_cts_bin_win_with_new_offload_model
489-
490438
# Verification example:
491439
# cosign-windows-amd64.exe verify-blob sycl_linux.tar.gz \
492440
# --bundle sycl_linux.tar.gz.sigstore.json \

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def get_sycl_ls_verbose(sycl_device, env):
987987
# Check for enabled NewOffloadModel
988988
if lit_config.params.get("enable_new_offload_model", "False") != "False":
989989
config.available_features.add("new-offload-model")
990-
config.cxx_flags += "--offload-new-driver "
990+
config.cxx_flags += " --offload-new-driver "
991991

992992
# That has to be executed last so that all device-independent features have been
993993
# discovered already.

0 commit comments

Comments
 (0)