@@ -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
@@ -4240,8 +4241,8 @@ urProgramRelease(
42404241/// @details
42414242/// - Retrieves a pointer to the functions with the given name and defined
42424243/// in the given program.
4243- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4244- /// can not be obtained.
4244+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4245+ /// function can not be obtained.
42454246/// - The application may call this function from simultaneous threads for
42464247/// the same device.
42474248/// - The implementation of this function should be thread-safe.
@@ -4261,6 +4262,10 @@ urProgramRelease(
42614262/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
42624263/// + `NULL == pFunctionName`
42634264/// + `NULL == ppFunctionPointer`
4265+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4266+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4267+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4268+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
42644269UR_APIEXPORT ur_result_t UR_APICALL
42654270urProgramGetFunctionPointer(
42664271 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments