Skip to content

Commit 111a93f

Browse files
authored
Update plugin.hpp
1 parent 9bc7fea commit 111a93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/plugin.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ class plugin {
5656
__SYCL_CHECK_OCL_CODE_THROW(pi_result, Exception);
5757
}
5858

59-
void reportPiError(RT::PiResult pi_result, string_class api_name) const {
59+
void reportPiError(RT::PiResult pi_result, std::string &context) const {
6060
if (pi_result != PI_SUCCESS) {
6161
throw cl::sycl::runtime_error(
62-
api_name + " API failed with error: " +
62+
context + " API failed with error: " +
6363
cl::sycl::detail::codeToString(pi_result),
6464
pi_result);
6565
}

0 commit comments

Comments
 (0)