Skip to content

Commit a938c18

Browse files
authored
[NATIVECPU][UR] fixed return for UR_KERNEL_INFO_FUNCTION_NAME (#19052)
Fixing NativeCPU handling of UR_KERNEL_INFO_FUNCTION_NAME. At least these e2e test will pass on NativeCPU with this patch: ``` SYCL/FreeFunctionKernels/id_as_kernel_parameter.cpp SYCL/FreeFunctionKernels/accessor_as_kernel_parameter.cpp SYCL/FreeFunctionKernels/marray_as_kernel_parameter.cpp SYCL/FreeFunctionKernels/range_as_kernel_parameter.cpp SYCL/FreeFunctionKernels/vec_as_kernel_parameter.cpp ```
1 parent 4b62aea commit a938c18

File tree

1 file changed

+1
-1
lines changed
  • unified-runtime/source/adapters/native_cpu

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/native_cpu/kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel,
9393
// case UR_KERNEL_INFO_PROGRAM:
9494
// return ReturnValue(ur_program_handle_t{ Kernel->Program });
9595
case UR_KERNEL_INFO_FUNCTION_NAME:
96-
return ReturnValue(hKernel->_name);
96+
return ReturnValue(hKernel->_name.c_str());
9797
case UR_KERNEL_INFO_REFERENCE_COUNT:
9898
return ReturnValue(uint32_t{hKernel->getReferenceCount()});
9999
case UR_KERNEL_INFO_ATTRIBUTES:

0 commit comments

Comments
 (0)