diff --git a/sycl/source/detail/kernel_bundle_impl.hpp b/sycl/source/detail/kernel_bundle_impl.hpp index 109e08695c80b..d1e688e3e63ca 100644 --- a/sycl/source/detail/kernel_bundle_impl.hpp +++ b/sycl/source/detail/kernel_bundle_impl.hpp @@ -352,6 +352,10 @@ class kernel_bundle_impl { "bundle_state::ext_oneapi_source required"); assert(Language == syclex::source_language::opencl && "TODO: add other Languages. Must be OpenCL"); + if (Language != syclex::source_language::opencl) + throw sycl::exception( + make_error_code(errc::invalid), + "OpenCL C is the only supported language at this time"); // if successful, the log is empty. if failed, throws an error with the // compilation log. diff --git a/sycl/test-e2e/KernelCompiler/kernel_compiler.cpp b/sycl/test-e2e/KernelCompiler/kernel_compiler.cpp index 9bfce76e06eb9..0f1cdf4eb44e4 100644 --- a/sycl/test-e2e/KernelCompiler/kernel_compiler.cpp +++ b/sycl/test-e2e/KernelCompiler/kernel_compiler.cpp @@ -8,6 +8,10 @@ // REQUIRES: ocloc +// UNSUPPORTED: (gpu-intel-dg2 && level_zero) || (gpu-intel-pvc && level_zero) +// Seems to be an incompatibility with the KernelCompiler on L0 with DG2 and +// PVC. + // RUN: %{build} -o %t.out // RUN: %{run} %t.out diff --git a/sycl/test-e2e/KernelCompiler/opencl_capabilities.cpp b/sycl/test-e2e/KernelCompiler/opencl_capabilities.cpp index 65dcbe6eddb0a..8cd8e0aa6c0fb 100644 --- a/sycl/test-e2e/KernelCompiler/opencl_capabilities.cpp +++ b/sycl/test-e2e/KernelCompiler/opencl_capabilities.cpp @@ -8,6 +8,10 @@ // REQUIRES: ocloc +// UNSUPPORTED: (gpu-intel-dg2 && level_zero) || (gpu-intel-pvc && level_zero) +// Seems to be an incompatibility with the KernelCompiler on L0 with DG2 and +// PVC. + // RUN: %{build} -o %t.out // RUN: %{run} %t.out