This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
// 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
4
9
5
10
// ==--- build-log.cpp - Test log message from faild build ----------==//
6
11
//
@@ -16,12 +21,8 @@ void test() {
16
21
cl::sycl::queue Queue;
17
22
18
23
// 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 = []() {};
25
26
26
27
std::string Msg;
27
28
int Result;
@@ -34,8 +35,7 @@ void test() {
34
35
} catch (const cl::sycl::compile_program_error &e) {
35
36
std::string Msg (e.what ());
36
37
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);
39
39
} catch (...) {
40
40
assert (false && " There must be cl::sycl::compile_program_error" );
41
41
}
You can’t perform that action at this time.
0 commit comments