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

Commit 3a26e3a

Browse files
committed
Fix test
1 parent f00ef74 commit 3a26e3a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

SYCL/KernelAndProgram/build-log.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3-
// REQUIRES: gpu
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 compiler. The issue is under
7+
// investigation.
8+
// XFAIL: (opencl || level_zero) && gpu
49

510
//==--- build-log.cpp - Test log message from faild build ----------==//
611
//
@@ -16,12 +21,8 @@ void test() {
1621
cl::sycl::queue Queue;
1722

1823
// Submitting this kernel should result in a compile_program_error exception
19-
// with a message indicating that "parsing vISA inline assembly failed".
20-
auto Kernel = []() {
21-
#ifdef __SYCL_DEVICE_ONLY__
22-
asm volatile("unexpected code");
23-
#endif
24-
};
24+
// with a message indicating "Unrecognized build options".
25+
auto Kernel = []() {};
2526

2627
std::string Msg;
2728
int Result;
@@ -34,8 +35,7 @@ void test() {
3435
} catch (const cl::sycl::compile_program_error &e) {
3536
std::string Msg(e.what());
3637
std::cerr << Msg << std::endl;
37-
assert(Msg.find("parsing vISA inline assembly failed") !=
38-
std::string::npos);
38+
assert(Msg.find("unknown-option") != std::string::npos);
3939
} catch (...) {
4040
assert(false && "There must be cl::sycl::compile_program_error");
4141
}

0 commit comments

Comments
 (0)