File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ using pi_bitfield = pi_uint64;
61
61
//
62
62
typedef enum {
63
63
PI_SUCCESS = CL_SUCCESS,
64
- PI_RESULT_INVALID_KERNEL_NAME = CL_INVALID_KERNEL_NAME,
64
+ PI_INVALID_KERNEL_NAME = CL_INVALID_KERNEL_NAME,
65
65
PI_INVALID_OPERATION = CL_INVALID_OPERATION,
66
66
PI_INVALID_KERNEL = CL_INVALID_KERNEL,
67
67
PI_INVALID_QUEUE_PROPERTIES = CL_INVALID_QUEUE_PROPERTIES,
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ RT::PiKernel program_impl::get_pi_kernel(const string_class &KernelName) const {
380
380
const detail::plugin &Plugin = getPlugin ();
381
381
RT::PiResult Err = Plugin.call_nocheck <PiApiKind::piKernelCreate>(
382
382
MProgram, KernelName.c_str (), &Kernel);
383
- if (Err == PI_RESULT_INVALID_KERNEL_NAME ) {
383
+ if (Err == PI_INVALID_KERNEL_NAME ) {
384
384
throw invalid_object_error (
385
385
" This instance of program does not contain the kernel requested" ,
386
386
Err);
You can’t perform that action at this time.
0 commit comments