@@ -477,7 +477,8 @@ typedef enum ur_result_t {
477477 UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 56, ///< [Validation] image format is not supported by the device
478478 UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 57, ///< [Validation] native binary is not supported by the device
479479 UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 58, ///< [Validation] global variable is not found in the program
480- UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 59, ///< [Validation] function name is not found in the program
480+ UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE = 59, ///< [Validation] function name is in the program but its address could not
481+ ///< be determined
481482 UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 60, ///< [Validation] group size dimension is not valid for the kernel or
482483 ///< device
483484 UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 61, ///< [Validation] global width dimension is not valid for the kernel or
@@ -4332,8 +4333,8 @@ urProgramRelease(
43324333/// @details
43334334/// - Retrieves a pointer to the functions with the given name and defined
43344335/// in the given program.
4335- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4336- /// can not be obtained.
4336+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4337+ /// function can not be obtained.
43374338/// - The application may call this function from simultaneous threads for
43384339/// the same device.
43394340/// - The implementation of this function should be thread-safe.
@@ -4353,6 +4354,10 @@ urProgramRelease(
43534354/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
43544355/// + `NULL == pFunctionName`
43554356/// + `NULL == ppFunctionPointer`
4357+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4358+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4359+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4360+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
43564361UR_APIEXPORT ur_result_t UR_APICALL
43574362urProgramGetFunctionPointer(
43584363 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments