Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 79b1841

Browse files
authored
[SYCL] Align tests with the driver (#411)
1 parent ab77356 commit 79b1841

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

SYCL/ESIMD/ext_math.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// UNSUPPORTED: cuda || rocm
1010
// RUN: %clangxx -fsycl %s -o %t.out
1111
// RUN: %GPU_RUN_PLACEHOLDER %t.out
12-
// Enable when driver fixes will be propagated into the official release
13-
// XFAIL: windows
1412

1513
// This test checks extended math operations.
1614

SYCL/ESIMD/regression/store_zero_const.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// UNSUPPORTED: cuda || rocm
1010
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_kernel -I%S/.. %s -o %t.out
1111
// RUN: %GPU_RUN_PLACEHOLDER %t.out
12-
// XFAIL: windows
1312

1413
// This is a regression for vector BE bug:
1514
// storing a constant zero through an USM pointer causes BE crash with

SYCL/KernelAndProgram/build-log.cpp

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
// XFAIL: cuda
21
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
2+
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PROGRAM_COMPILE_OPTIONS="--unknown-option" %t.out
3+
// RUN: %GPU_RUN_PLACEHOLDER SYCL_PROGRAM_COMPILE_OPTIONS="--unknown-option" %t.out
4+
// RUN: %ACC_RUN_PLACEHOLDER SYCL_PROGRAM_COMPILE_OPTIONS="--unknown-option" %t.out
5+
//
6+
// Unknown options are silently ignored by IGC and CUDA JIT compilers. The issue
7+
// is under investigation.
8+
// XFAIL: (opencl || level_zero || cuda) && gpu
69

710
//==--- build-log.cpp - Test log message from faild build ----------==//
811
//
@@ -14,19 +17,12 @@
1417

1518
#include <CL/sycl.hpp>
1619

17-
SYCL_EXTERNAL
18-
void symbol_that_does_not_exist();
19-
2020
void test() {
2121
cl::sycl::queue Queue;
2222

2323
// Submitting this kernel should result in a compile_program_error exception
24-
// with a message indicating that "symbol_that_does_not_exist" is undefined.
25-
auto Kernel = []() {
26-
#ifdef __SYCL_DEVICE_ONLY__
27-
symbol_that_does_not_exist();
28-
#endif
29-
};
24+
// with a message indicating "Unrecognized build options".
25+
auto Kernel = []() {};
3026

3127
std::string Msg;
3228
int Result;
@@ -38,7 +34,8 @@ void test() {
3834
assert(false && "There must be compilation error");
3935
} catch (const cl::sycl::compile_program_error &e) {
4036
std::string Msg(e.what());
41-
assert(Msg.find("symbol_that_does_not_exist") != std::string::npos);
37+
std::cerr << Msg << std::endl;
38+
assert(Msg.find("unknown-option") != std::string::npos);
4239
} catch (...) {
4340
assert(false && "There must be cl::sycl::compile_program_error");
4441
}

0 commit comments

Comments
 (0)