@@ -456,7 +456,8 @@ typedef enum ur_result_t {
456456 UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 56, ///< [Validation] image format is not supported by the device
457457 UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 57, ///< [Validation] native binary is not supported by the device
458458 UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 58, ///< [Validation] global variable is not found in the program
459- UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 59, ///< [Validation] function name is not found in the program
459+ UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE = 59, ///< [Validation] function name is in the program but its address could not
460+ ///< be determined
460461 UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 60, ///< [Validation] group size dimension is not valid for the kernel or
461462 ///< device
462463 UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 61, ///< [Validation] global width dimension is not valid for the kernel or
@@ -4132,8 +4133,8 @@ urProgramRelease(
41324133/// @details
41334134/// - Retrieves a pointer to the functions with the given name and defined
41344135/// in the given program.
4135- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4136- /// can not be obtained.
4136+ /// - RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function can not
4137+ /// be obtained.
41374138/// - The application may call this function from simultaneous threads for
41384139/// the same device.
41394140/// - The implementation of this function should be thread-safe.
@@ -4153,6 +4154,10 @@ urProgramRelease(
41534154/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
41544155/// + `NULL == pFunctionName`
41554156/// + `NULL == ppFunctionPointer`
4157+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4158+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4159+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4160+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
41564161UR_APIEXPORT ur_result_t UR_APICALL
41574162urProgramGetFunctionPointer(
41584163 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments