@@ -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
@@ -4228,8 +4229,8 @@ urProgramRelease(
42284229/// @details
42294230/// - Retrieves a pointer to the functions with the given name and defined
42304231/// in the given program.
4231- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4232- /// can not be obtained.
4232+ /// - RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function can not
4233+ /// be obtained.
42334234/// - The application may call this function from simultaneous threads for
42344235/// the same device.
42354236/// - The implementation of this function should be thread-safe.
@@ -4249,6 +4250,10 @@ urProgramRelease(
42494250/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
42504251/// + `NULL == pFunctionName`
42514252/// + `NULL == ppFunctionPointer`
4253+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4254+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4255+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4256+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
42524257UR_APIEXPORT ur_result_t UR_APICALL
42534258urProgramGetFunctionPointer(
42544259 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments