Skip to content

Commit ae72a62

Browse files
committed
Apply comment
Signed-off-by: amochalo <[email protected]>
1 parent fea2cf9 commit ae72a62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/include/CL/sycl/detail/pi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ using pi_bitfield = pi_uint64;
6161
//
6262
typedef enum {
6363
PI_SUCCESS = CL_SUCCESS,
64-
PI_RESULT_INVALID_KERNEL_NAME = CL_INVALID_KERNEL_NAME,
64+
PI_INVALID_KERNEL_NAME = CL_INVALID_KERNEL_NAME,
6565
PI_INVALID_OPERATION = CL_INVALID_OPERATION,
6666
PI_INVALID_KERNEL = CL_INVALID_KERNEL,
6767
PI_INVALID_QUEUE_PROPERTIES = CL_INVALID_QUEUE_PROPERTIES,

sycl/source/detail/program_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ RT::PiKernel program_impl::get_pi_kernel(const string_class &KernelName) const {
380380
const detail::plugin &Plugin = getPlugin();
381381
RT::PiResult Err = Plugin.call_nocheck<PiApiKind::piKernelCreate>(
382382
MProgram, KernelName.c_str(), &Kernel);
383-
if (Err == PI_RESULT_INVALID_KERNEL_NAME) {
383+
if (Err == PI_INVALID_KERNEL_NAME) {
384384
throw invalid_object_error(
385385
"This instance of program does not contain the kernel requested",
386386
Err);

0 commit comments

Comments
 (0)