Skip to content

Commit 95a820d

Browse files
[SYCL] fix post-commit failures (#14752)
simply asserting that sycl kernel_compilation MUST be available is leading to post commit failures. Better solution needs to be found. Restoring early exit in the interim.
1 parent 450683b commit 95a820d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ void test_build_and_run() {
130130
"kernel bundle extension: "
131131
<< q.get_device().get_info<sycl::info::device::name>()
132132
<< std::endl;
133-
assert(ok);
134133
return;
135134
}
136135

sycl/test-e2e/KernelCompiler/sycl_device_flags.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ int main() {
8080

8181
sycl::queue q;
8282
sycl::context ctx = q.get_context();
83+
84+
bool ok =
85+
q.get_device().ext_oneapi_can_compile(syclex::source_language::sycl);
86+
if (!ok) {
87+
std::cout << "compiling from SYCL source not supported" << std::endl;
88+
return 0;
89+
}
90+
8391
source_kb kbSrc = syclex::create_kernel_bundle_from_source(
8492
ctx, syclex::source_language::sycl, SYCLSource);
8593

0 commit comments

Comments
 (0)