Skip to content

Commit

Permalink
[SYCL] fix post-commit failures (#14752)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cperkinsintel committed Jul 24, 2024
1 parent 450683b commit 95a820d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion sycl/test-e2e/KernelCompiler/kernel_compiler_sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ void test_build_and_run() {
"kernel bundle extension: "
<< q.get_device().get_info<sycl::info::device::name>()
<< std::endl;
assert(ok);
return;
}

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/KernelCompiler/sycl_device_flags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ int main() {

sycl::queue q;
sycl::context ctx = q.get_context();

bool ok =
q.get_device().ext_oneapi_can_compile(syclex::source_language::sycl);
if (!ok) {
std::cout << "compiling from SYCL source not supported" << std::endl;
return 0;
}

source_kb kbSrc = syclex::create_kernel_bundle_from_source(
ctx, syclex::source_language::sycl, SYCLSource);

Expand Down

0 comments on commit 95a820d

Please sign in to comment.