@@ -481,7 +481,8 @@ typedef enum ur_result_t {
481481 UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 55, ///< [Validation] image format is not supported by the device
482482 UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 56, ///< [Validation] native binary is not supported by the device
483483 UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 57, ///< [Validation] global variable is not found in the program
484- UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 58, ///< [Validation] function name is not found in the program
484+ UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE = 58, ///< [Validation] function name is in the program but its address could not
485+ ///< be determined
485486 UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 59, ///< [Validation] group size dimension is not valid for the kernel or
486487 ///< device
487488 UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 60, ///< [Validation] global width dimension is not valid for the kernel or
@@ -4362,8 +4363,8 @@ urProgramRelease(
43624363/// @details
43634364/// - Retrieves a pointer to the functions with the given name and defined
43644365/// in the given program.
4365- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4366- /// can not be obtained.
4366+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4367+ /// function can not be obtained.
43674368/// - The application may call this function from simultaneous threads for
43684369/// the same device.
43694370/// - The implementation of this function should be thread-safe.
@@ -4383,6 +4384,10 @@ urProgramRelease(
43834384/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
43844385/// + `NULL == pFunctionName`
43854386/// + `NULL == ppFunctionPointer`
4387+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4388+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4389+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4390+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
43864391UR_APIEXPORT ur_result_t UR_APICALL
43874392urProgramGetFunctionPointer(
43884393 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments