Skip to content

Commit 1bd15f0

Browse files
[E2E] Introduce SPIR-V Backend support in SYCL tests and end-to-end tests (#16317)
Introduce SPIR-V Backend support in SYCL tests and end-to-end tests by adding XFAIL & UNSUPPORTED to tests that are not passed at the moment when Khronos Translator is substituted by SPIR-V Backend. Three syntax-only tests are moved from e2e to tests. --------- Co-authored-by: Nick Sarnie <nick.sarnie@intel.com>
1 parent 73e8a02 commit 1bd15f0

File tree

68 files changed

+218
-7
lines changed

Some content is hidden

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

68 files changed

+218
-7
lines changed

sycl/test-e2e/AddressCast/dynamic_address_cast.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
// RUN: %{build} -o %t.out
1313
// RUN: %{run} %t.out
1414

15+
// Depends on SPIR-V Backend & run-time drivers version.
16+
// XFAIL: spirv-backend && gpu
17+
// XFAIL-TRACKER: CMPLRLLVM-64705
18+
1519
#include <sycl/detail/core.hpp>
1620

1721
#include <sycl/ext/oneapi/experimental/address_cast.hpp>

sycl/test-e2e/AddressSanitizer/lit.local.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ if "-fsanitize=memory" in config.cxx_flags:
1313

1414
# https://github.com/intel/llvm/issues/15953
1515
config.unsupported_features += ['gpu-intel-gen12']
16+
17+
# CMPLRLLVM-64052
18+
config.unsupported_features += ['spirv-backend']

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
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
8+
// XFAIL-TRACKER: CMPLRLLVM-64059
9+
710
#include <sycl/detail/core.hpp>
811

912
#include <sycl/ext/oneapi/device_global/device_global.hpp>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// RUN: %{build} %device_asan_flags -O2 -g -DUSER_CODE_2 -c -o %t2.o
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
6+
7+
// XFAIL: spirv-backend
8+
// XFAIL-TRACKER: CMPLRLLVM-64059
9+
610
#include <sycl/usm.hpp>
711

812
constexpr std::size_t N = 4;

sycl/test-e2e/BFloat16/bfloat16_builtins.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %{sycl_target_opts} %if any-device-is-cuda %{ -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_80 %} %s -o %t2.out %{mathflags} %}
1313
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
1414

15+
// Flaky timeout on CPU. Enable when fixed.
16+
// Depends on SPIR-V Backend & run-time drivers version.
17+
// UNSUPPORTED: spirv-backend && cpu
18+
// UNSUPPORTED-TRACKER: CMPLRLLVM-64705
19+
1520
#include "bfloat16_builtins.hpp"
1621

1722
int main() {

sycl/test-e2e/Basic/backend_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33
//
4-
// RUN: %{build} -DTEST_ERRORS -D_GLIBCXX_USE_CXX11_ABI=0 -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note
4+
// RUN: %{build} -DTEST_ERRORS -D_GLIBCXX_USE_CXX11_ABI=0 -fsyntax-only -Wno-error=unused-command-line-argument -Xclang -verify -Xclang -verify-ignore-unexpected=note
55

66
//==--- backend_info.cpp - SYCL backend info test---------------------------==//
77
//

sycl/test-e2e/Basic/multisource.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
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
23+
// XFAIL-TRACKER: CMPLRLLVM-64059
24+
2225
#include <sycl/detail/core.hpp>
2326

2427
#include <iostream>

sycl/test-e2e/Basic/multisource_spv_obj.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
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
32+
// XFAIL-TRACKER: CMPLRLLVM-64059
33+
3134
#include <sycl/detail/core.hpp>
3235

3336
#include <iostream>

sycl/test-e2e/Compression/compression.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
// RUN: %{run} %t_not_compress.out
77
// RUN: %{run} %t_compress.out
88
// RUN: not diff %t_not_compress.out %t_compress.out
9+
10+
// XFAIL: spirv-backend
11+
// XFAIL-TRACKER: https://github.com/llvm/llvm-project/issues/122075

sycl/test-e2e/Config/env_vars.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
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
17+
// XFAIL-TRACKER: https://github.com/llvm/llvm-project/issues/122075
18+
1619
#include "../helpers.hpp"
1720
#include <cassert>
1821
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)