@@ -479,7 +479,8 @@ typedef enum ur_result_t {
479479 UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 55, ///< [Validation] image format is not supported by the device
480480 UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 56, ///< [Validation] native binary is not supported by the device
481481 UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 57, ///< [Validation] global variable is not found in the program
482- UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 58, ///< [Validation] function name is not found in the program
482+ UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE = 58, ///< [Validation] function name is in the program but its address could not
483+ ///< be determined
483484 UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 59, ///< [Validation] group size dimension is not valid for the kernel or
484485 ///< device
485486 UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 60, ///< [Validation] global width dimension is not valid for the kernel or
@@ -4354,8 +4355,8 @@ urProgramRelease(
43544355/// @details
43554356/// - Retrieves a pointer to the functions with the given name and defined
43564357/// in the given program.
4357- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4358- /// can not be obtained.
4358+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4359+ /// function can not be obtained.
43594360/// - The application may call this function from simultaneous threads for
43604361/// the same device.
43614362/// - The implementation of this function should be thread-safe.
@@ -4375,6 +4376,10 @@ urProgramRelease(
43754376/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
43764377/// + `NULL == pFunctionName`
43774378/// + `NULL == ppFunctionPointer`
4379+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4380+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4381+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4382+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
43784383UR_APIEXPORT ur_result_t UR_APICALL
43794384urProgramGetFunctionPointer(
43804385 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments