@@ -465,7 +465,8 @@ typedef enum ur_result_t {
465465 UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 56, ///< [Validation] image format is not supported by the device
466466 UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 57, ///< [Validation] native binary is not supported by the device
467467 UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 58, ///< [Validation] global variable is not found in the program
468- UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 59, ///< [Validation] function name is not found in the program
468+ UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE = 59, ///< [Validation] function name is in the program but its address could not
469+ ///< be determined
469470 UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 60, ///< [Validation] group size dimension is not valid for the kernel or
470471 ///< device
471472 UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 61, ///< [Validation] global width dimension is not valid for the kernel or
@@ -4233,8 +4234,8 @@ urProgramRelease(
42334234/// @details
42344235/// - Retrieves a pointer to the functions with the given name and defined
42354236/// in the given program.
4236- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4237- /// can not be obtained.
4237+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4238+ /// function can not be obtained.
42384239/// - The application may call this function from simultaneous threads for
42394240/// the same device.
42404241/// - The implementation of this function should be thread-safe.
@@ -4254,6 +4255,10 @@ urProgramRelease(
42544255/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
42554256/// + `NULL == pFunctionName`
42564257/// + `NULL == ppFunctionPointer`
4258+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4259+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4260+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4261+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
42574262UR_APIEXPORT ur_result_t UR_APICALL
42584263urProgramGetFunctionPointer(
42594264 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments