Skip to content

Commit c90de3c

Browse files
authored
[CI] Run SYCL-CTS with the latest nightly (#12811)
Add a new workflow to run SYCL-CTS when new nightly build is available. This should help us to handle new failures in advance, monitor new suites and so on. To start with running only reduced scope of tests (cts_exclude_filter is big enough) on unused "debug" runner (linux+cpu).
1 parent e251621 commit c90de3c

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ on:
8181
- '["Linux", "gen12"]'
8282
- '["amdgpu"]'
8383
- '["Linux", "arc"]'
84+
- '["cts-cpu"]'
8485
image:
8586
description: |
8687
Use option ending with ":build" for AMDGPU, ":latest" for the rest.
@@ -286,10 +287,27 @@ jobs:
286287
-DDPCPP_INSTALL_DIR="$$(dirname (which clang++))/.." \
287288
$CMAKE_EXTRA_ARGS
288289
ninja -C build-cts
290+
291+
- name: SYCL CTS List devices
292+
if: inputs.tests_selector == 'cts'
293+
run: |
294+
./build-cts/bin/test_all --list-devices
295+
289296
- name: Run SYCL CTS tests
290297
if: inputs.tests_selector == 'cts'
291298
env:
292299
ONEAPI_DEVICE_SELECTOR: ${{ inputs.target_devices }}
300+
# FIXME: For some reason the "sub_group api" test-case is failing with
301+
# SIGSEGV while running test_all, so running each binary separately.
302+
# BTW test_all requires a lot of resources to build it, so probably it'll
303+
# be better to build each binary also separately.
304+
# run: |
305+
# ./build-cts/bin/test_all $CTS_TEST_ARGS
293306
run: |
294-
./build-cts/bin/test_all --list-devices
295-
./build-cts/bin/test_all $CTS_TEST_ARGS
307+
for i in `ls -1 ./build-cts/bin`; do
308+
if [ "$i" != "test_all" ]; then
309+
echo "::group::Running $i"
310+
build-cts/bin/$i
311+
echo "::endgroup::"
312+
fi
313+
done

.github/workflows/sycl-nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,21 @@ jobs:
7171
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
7272
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN
7373
target_devices: ext_oneapi_cuda:gpu
74+
75+
- name: SYCL-CTS
76+
runner: '["cts-cpu"]'
77+
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
78+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
79+
target_devices: opencl:cpu
80+
tests_selector: cts
7481
uses: ./.github/workflows/sycl-linux-run-tests.yml
7582
with:
7683
name: ${{ matrix.name }}
7784
runner: ${{ matrix.runner }}
7885
image: ${{ matrix.image }}
7986
image_options: ${{ matrix.image_options }}
8087
target_devices: ${{ matrix.target_devices }}
88+
tests_selector: ${{ matrix.tests_selector }}
8189
reset_gpu: ${{ matrix.reset_gpu }}
8290
ref: ${{ github.sha }}
8391
merge_ref: ''

devops/cts_exclude_filter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vector_operators
1818
vector_swizzle_assignment
1919
vector_swizzles
2020
kernel_bundle
21-
specialization_constants
21+
spec_constants
2222
device_selector
2323
math_builtin_api
2424
stream

0 commit comments

Comments
 (0)