@@ -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
@@ -4247,8 +4248,8 @@ urProgramRelease(
42474248/// @details
42484249/// - Retrieves a pointer to the functions with the given name and defined
42494250/// in the given program.
4250- /// - ::UR_RESULT_ERROR_INVALID_FUNCTION_NAME is returned if the function
4251- /// can not be obtained.
4251+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE is returned if the
4252+ /// function can not be obtained.
42524253/// - The application may call this function from simultaneous threads for
42534254/// the same device.
42544255/// - The implementation of this function should be thread-safe.
@@ -4268,6 +4269,10 @@ urProgramRelease(
42684269/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
42694270/// + `NULL == pFunctionName`
42704271/// + `NULL == ppFunctionPointer`
4272+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL_NAME
4273+ /// + If `pFunctionName` couldn't be found in `hProgram`.
4274+ /// - ::UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE
4275+ /// + If `pFunctionName` could be located, but its address couldn't be retrieved.
42714276UR_APIEXPORT ur_result_t UR_APICALL
42724277urProgramGetFunctionPointer(
42734278 ur_device_handle_t hDevice, ///< [in] handle of the device to retrieve pointer for.
0 commit comments