Skip to content

Commit 4889054

Browse files
[CI] Pre-build E2E tests with SPIR-V backend in precommit (#16820)
1 parent 37ec4c2 commit 4889054

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+58
-40
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,18 @@ jobs:
279279
target_devices: all
280280
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
281281
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
282+
283+
- name: Remove E2E tests before spirv-backend run
284+
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
285+
run: rm -rf build-e2e
286+
287+
- name: Build E2E tests with SPIR-V Backend
288+
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
289+
uses: ./devops/actions/run-tests/e2e
290+
with:
291+
ref: ${{ inputs.ref || github.sha }}
292+
testing_mode: build-only
293+
target_devices: all
294+
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}_spirv_backend
295+
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
296+
extra_lit_opts: --param spirv-backend=True

sycl/test-e2e/AddressSanitizer/out-of-bounds/DeviceGlobal/multi_device_images.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %clangxx -fsycl %device_asan_flags -O2 -g %t1.o %t2.o -o %t.out
55
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
66

7-
// XFAIL: spirv-backend
7+
// XFAIL: spirv-backend && run-mode
88
// XFAIL-TRACKER: CMPLRLLVM-64059
99

1010
#include <sycl/detail/core.hpp>

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/multiple_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %clangxx -fsycl %device_asan_flags -O2 -g %t1.o %t2.o -o %t.out
55
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
66

7-
// XFAIL: spirv-backend
7+
// XFAIL: spirv-backend && run-mode
88
// XFAIL-TRACKER: CMPLRLLVM-64059
99

1010
#include <sycl/usm.hpp>

sycl/test-e2e/Basic/multisource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// RUN: %clangxx -fsycl %{sycl_target_opts} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t2.fat
2020
// RUN: %{run} %t2.fat
2121

22-
// XFAIL: spirv-backend
22+
// XFAIL: spirv-backend && run-mode
2323
// XFAIL-TRACKER: CMPLRLLVM-64059
2424

2525
#include <sycl/detail/core.hpp>

sycl/test-e2e/Basic/multisource_spv_obj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// RUN: %clangxx -fsycl %{sycl_target_opts} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t3.fat
2929
// RUN: %{run} %t3.fat
3030

31-
// XFAIL: spirv-backend
31+
// XFAIL: spirv-backend && run-mode
3232
// XFAIL-TRACKER: CMPLRLLVM-64059
3333

3434
#include <sycl/detail/core.hpp>

sycl/test-e2e/Compression/compression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
// RUN: %{run} %t_compress.out
88
// RUN: not diff %t_not_compress.out %t_compress.out
99

10-
// XFAIL: spirv-backend
10+
// XFAIL: spirv-backend && run-mode
1111
// XFAIL-TRACKER: https://github.com/llvm/llvm-project/issues/122075

sycl/test-e2e/Config/env_vars.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// RUN: %if cpu %{ env SYCL_PROGRAM_COMPILE_OPTIONS="-enable-link-options -cl-denorms-are-zero" SHOULD_CRASH=1 %{run} %t.out %}
1414
// RUN: %if cpu %{ env SYCL_PROGRAM_APPEND_COMPILE_OPTIONS="-enable-link-options -cl-denorms-are-zero" SHOULD_CRASH=1 %{run} %t.out %}
1515

16-
// XFAIL: spirv-backend
16+
// XFAIL: spirv-backend && run-mode
1717
// XFAIL-TRACKER: https://github.com/llvm/llvm-project/issues/122075
1818

1919
#include "../helpers.hpp"

sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/dynamic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
// RUN: %{run} %t.out
2121

22-
// XFAIL: spirv-backend
22+
// XFAIL: spirv-backend && run-mode
2323
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16319
2424

2525
#include "a.hpp"

sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// XFAIL: hip
1212
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/15742
1313

14-
// XFAIL: spirv-backend
14+
// XFAIL: spirv-backend && run-mode
1515
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16319
1616

1717
#include <iostream>

sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/math_device_lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %{build} --offload-new-driver -fsycl-allow-device-image-dependencies -fsycl-device-lib-jit-link %{mathflags} -o %t.out
88
// RUN: %{run} %t.out
99

10-
// XFAIL: spirv-backend
10+
// XFAIL: spirv-backend && run-mode
1111
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16319
1212

1313
#include <cmath>

0 commit comments

Comments
 (0)