Skip to content

Commit 96464da

Browse files
committed
fixed error message.
Signed-off-by: rbegam <[email protected]>
1 parent 2ff4db5 commit 96464da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,9 @@ void program_impl::create_cl_program_with_source(const string_class &Source) {
363363
MContext->getHandleRef(), 1, &Src, &Size, &MProgram);
364364

365365
if (Err == PI_INVALID_OPERATION) {
366-
throw feature_not_supported("program::compile_with_source is not supported",
367-
PI_INVALID_OPERATION);
366+
throw feature_not_supported(
367+
"program::compile_with_source is not supported by the selected backend",
368+
PI_INVALID_OPERATION);
368369
}
369370
}
370371

0 commit comments

Comments
 (0)