@@ -5276,6 +5276,8 @@ typedef struct ur_kernel_native_properties_t {
52765276/// - The application may call this function from simultaneous threads for
52775277/// the same context.
52785278/// - The implementation of this function should be thread-safe.
5279+ /// - The implementation may require a valid program handle to return the
5280+ /// native kernel handle
52795281///
52805282/// @returns
52815283/// - ::UR_RESULT_SUCCESS
@@ -5284,7 +5286,7 @@ typedef struct ur_kernel_native_properties_t {
52845286/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
52855287/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
52865288/// + `NULL == hContext`
5287- /// + `NULL == hProgram`
5289+ /// + If `hProgram == NULL` and the implementation requires a valid program.
52885290/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
52895291/// + `NULL == phKernel`
52905292/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
@@ -5293,7 +5295,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
52935295urKernelCreateWithNativeHandle(
52945296 ur_native_handle_t hNativeKernel, ///< [in][nocheck] the native handle of the kernel.
52955297 ur_context_handle_t hContext, ///< [in] handle of the context object
5296- ur_program_handle_t hProgram, ///< [in] handle of the program associated with the kernel
5298+ ur_program_handle_t hProgram, ///< [in][optional] handle of the program associated with the kernel
52975299 const ur_kernel_native_properties_t *pProperties, ///< [in][optional] pointer to native kernel properties struct
52985300 ur_kernel_handle_t *phKernel ///< [out] pointer to the handle of the kernel object created.
52995301);
0 commit comments