Head-up display method and device
By predicting the computing power consumption and residual value of the calculation unit, selecting the most suitable calculation unit to handle the head-up display task, solving the problem of unbalanced load of the calculation unit in the prior art, and improving the utilization rate and operating performance of hardware resources.
Patent Information
- Application Number
- CN202310936602.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-02-07
AI Technical Summary
In the existing head-up display technology, computing units are prone to overload or low load when processing tasks, resulting in waste of hardware resources and reduced operating performance.
By predicting the calculation power consumption value and the remaining calculation power value when each computing unit performs the head-up display task, the most suitable computing unit is determined from the multiple computing units to process the head-up display task, ensuring load balancing.
It effectively avoids excessive or low load of a single computing unit, makes full use of hardware resources, and improves the operating performance of head-up display equipment.
Smart Images

Figure CN119396560A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of head-up display, and in particular to a head-up display method and device. Background Art
[0002] AR-HUD (Augmented Reality-Head Up Display) is an augmented reality head-up display technology that reasonably superimposes navigation instructions, lane departure warnings, adaptive cruise control and other information in the driver's field of vision, integrating the HUD virtual image with the real road scene, which not only ensures driving safety, but also enhances the fun and comfort of driving. However, in the process of using AR technology, more computing power and hardware resources are required in software operation.
[0003] In the prior art, specific modules or fixed computing units are used to process specific tasks. Using a single fixed computing unit to process a specific task often consumes the computing power of a certain computing unit and causes anomalies in scenarios with high resource consumption. Even if hardware resources and computing power are sufficient, a computing unit may be overloaded while other computing units may be underloaded, which is a waste of hardware resources. Summary of the invention
[0004] The embodiments of the present application provide a head-up display method and device, which can determine a computing unit that performs a head-up display task from multiple computing units through computing power matching, thereby avoiding a situation where one computing unit among the multiple computing units is overloaded while other computing units are underloaded.
[0005] In a first aspect, an embodiment of the present application provides a head-up display method, the method comprising:
[0006] Get the heads-up display task;
[0007] The head-up display task is processed by a first computing unit among multiple computing units, and the first computing unit is determined from multiple computing units based on a predicted computing power consumption value when each computing unit in the multiple computing units executes the head-up display task and a first remaining computing power value of each computing unit.
[0008] It can be seen that in the embodiment of the present application, the first computing unit is determined from multiple computing units according to the predicted computing power consumption value when each computing unit performs the head-up display task and the first remaining computing power value of each computing unit, and the head-up display task is processed by the first computing unit. In this way, it is possible to avoid the situation where one computing unit among the multiple computing units is overloaded while other computing units are underloaded, thereby giving full play to the hardware resources.
[0009] In a feasible embodiment, the plurality of computing units include at least two different types of computing units. Selecting the first computing unit from the plurality of computing units means selecting the first computing unit from all computing units available in the head-up display device, not just a single type of computing unit, so that the hardware resources of the head-up display device can be fully utilized.
[0010] Furthermore, in a feasible embodiment, the multiple computing units are of different types.
[0011] In a feasible embodiment, the predicted value of computing power consumption when each computing unit performs a head-up display task is determined according to a mapping table of computing power consumption predictions between the task type of the head-up display task and multiple computing units. This facilitates determining the predicted value of computing power consumption when each computing unit performs a head-up display task.
[0012] In a feasible embodiment, the method also includes: determining at least one second computing unit based on the predicted computing power consumption value of the head-up display task and the remaining computing power values corresponding to multiple computing units respectively; determining the first computing unit from at least one second computing unit; wherein the target difference between the remaining computing power value of the second computing unit and the predicted computing power consumption value when the second computing unit performs the head-up display task is greater than a first preset threshold.
[0013] By determining the first computing unit using the method shown in the embodiment of the present application, it is possible to avoid overloading a single computing unit, thereby improving the operating performance of the head-up display device.
[0014] In a feasible embodiment, determining the first computing unit from at least one second computing unit includes: if there is one second computing unit, determining the second computing unit as the first computing unit; if there are multiple second computing units, determining the first computing unit from multiple second computing units according to a selection strategy.
[0015] In an embodiment of the present application, if it is determined that the target difference between the predicted value of the computing power consumption of the second computing unit to perform the head-up display task and the remaining computing power value of the second computing unit is greater than a preset threshold, the second computing unit is determined to be the first computing unit to perform the head-up display task. This can avoid excessive load on a single computing unit, thereby improving the operating performance of the head-up display device.
[0016] In a feasible embodiment, the first computing unit is a computing unit pre-set to perform the head-up display task among the plurality of second computing units; or the first computing unit is a computing unit with the largest target difference among the plurality of second computing units. In this way, the hardware resources of the head-up display device can be fully utilized.
[0017] In a feasible embodiment, when the head-up display task is multiple tasks, the method further includes: determining the first calculation unit from multiple calculation units according to the matching orders corresponding to the multiple head-up display tasks respectively, and the matching order is determined according to the priority of the task categories corresponding to the multiple head-up display tasks respectively.
[0018] In the embodiment of the present application, when there are multiple head-up display tasks, the order in which each head-up display task matches the first computing unit from multiple computing units is determined by the priorities corresponding to the multiple head-up display tasks. This not only allows the head-up display tasks with high priorities to be processed in advance, but also avoids the problem of a single computing unit being overloaded when multiple head-up display tasks simultaneously match the first computing unit from multiple computing units.
[0019] In a feasible embodiment, the corresponding first computing units are matched from the multiple computing units according to the matching orders corresponding to the multiple head-up display tasks, including: for the i-th head-up display task among the multiple head-up display tasks, the second remaining computing power value of each computing unit is obtained, the second remaining computing power value of each computing unit is determined based on the first remaining computing power value and the computing power required for each computing unit to process the first i-1 head-up display tasks among the multiple head-up display tasks, and the matching order of the i-th head-up display task is less than the matching order of the first i-1 head-up display tasks; the first computing unit is determined from the multiple computing units according to the predicted computing power consumption value when each computing unit executes the head-up display task and the second remaining computing power value of each computing unit.
[0020] In the embodiment of the present application, the aforementioned method is used to solve the problem that the remaining computing power values of multiple computing units cannot be accurately determined when the computing power of multiple head-up display tasks are simultaneously matched.
[0021] In a feasible embodiment, when the head-up display task consists of multiple tasks, the method further includes: determining the first computing unit of the head-up display task in the target task set based on a comparison relationship between the first computing power value and the remaining computing power value of the third computing unit; wherein the target task set is one of at least one task set, and at least one task set is obtained by dividing multiple head-up display tasks, and the computing units with the highest priority for executing the head-up display tasks belonging to the same task set are of the same type, the first computing power value is the sum of the predicted computing power consumption values corresponding to the third computing unit executing the head-up display tasks in the target task set, and the third computing unit is the computing unit with the highest priority for executing the head-up display tasks in the target task set among the multiple computing units.
[0022] In the embodiment of the present application, multiple head-up display tasks are divided according to the different priorities of the multiple computing units corresponding to the multiple head-up display tasks to determine at least one task set, and the head-up display tasks in each task set are matched with the computing units corresponding to the task set. In this way, the time for computing power matching of multiple head-up display tasks can be reduced, thereby improving the efficiency of head-up display task processing.
[0023] In a feasible embodiment, the first computing unit of the head-up display task in the target task set is determined based on the comparison relationship between the first computing power value and the remaining computing power value of the third computing unit, including: when the first computing power value is less than the remaining computing power value of the third computing unit, determining the third computing unit as the first computing unit to execute the head-up display task in the target task set; when the first computing power value is not less than the remaining computing power value of the third computing unit, eliminating at least one target head-up display task from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the second computing power value is the sum of the computing power consumption prediction values corresponding to the head-up display tasks in the target task set after eliminating at least one target head-up display task from the target task set.
[0024] By determining the first computing unit corresponding to the head-up display task in the target task set using the method shown in the embodiment of the present application, the time for computing power matching of multiple head-up display tasks can be reduced, thereby improving the efficiency of head-up display task processing.
[0025] In a feasible embodiment, at least one target head-up display task is eliminated from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, including: randomly eliminating a target number of head-up display tasks from the head-up display tasks in the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than a second preset threshold; wherein the target number is determined based on the difference between the first computing power value and the remaining computing power value of the third computing unit and the average computing power value, and the average computing power value is determined based on the first computing power value and the number of head-up display tasks in the target task set.
[0026] In the embodiment of the present application, the above method is adopted to randomly remove the target number of head-up display tasks from the head-up display tasks in the target task set, so that the second computing power value is greater than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than the second preset threshold value. This can not only reduce the time for the head-up display task to perform computing power matching, but also improve the efficiency of the head-up display task processing.
[0027] In a second aspect, an embodiment of the present application provides a head-up display device, the device comprising:
[0028] An acquisition unit, used to acquire a head-up display task;
[0029] A processing unit is used to process a head-up display task through a first computing unit among multiple computing units, where the first computing unit is determined from multiple computing units based on a predicted computing power consumption value when each computing unit performs the head-up display task and a first remaining computing power value of each computing unit.
[0030] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, which is coupled to a memory, and the processor calls executable program code stored in the memory to execute some or all of the steps described in any method of the first aspect.
[0031] In a fourth aspect, an embodiment of the present application provides a vehicle, which includes the electronic device shown in the third aspect of the embodiment.
[0032] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which electronic data is stored. When the electronic data is executed by a processor, it is used to execute the electronic data to implement some or all of the steps described in the first aspect of the embodiment of the present application.
[0033] In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of the structure of a head-up display device provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a head-up display method provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a head-up display task execution process provided in an embodiment of the present application;
[0038] Figure 4aIt is a block diagram of the functional units of a head-up display device provided in an embodiment of the present application;
[0039] Figure 4b is a block diagram of the functional units of another head-up display device provided in an embodiment of the present application;
[0040] Figure 5 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps is not limited to the listed steps, but optionally includes steps that are not listed, or optionally includes other steps inherent to these processes, methods, products or devices.
[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0044] See also Figure 1 , Figure 1 A schematic diagram of the structure of a head-up display device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the head-up display device 100 includes a data processing unit 101 and a plurality of computing units 102 .
[0045] Among them, the data processing unit 101 can be one of the multiple computing units 102, but the data processing unit 101 does not participate in the processing of the head-up display task. The multiple computing units 102 may include at least two types of computing units. In addition, the types of the multiple computing units 102 may also be different. The types of the computing units include but are not limited to central processing units (CPU), graphics processing units (GPU), micro controller units (MCU) or other special computing units, such as network processing units (NPU), video processing units (VPU), digital signal processing chips (DSP), field programmable gate array chips (FPGA).
[0046] In addition, the data processing unit 101 and the plurality of computing units 102 together constitute a controller, which may also be a domain controller independent of the head-up display device, in which some of the plurality of computing units 102 may constitute a plurality of system-on-chips (SoCs), and each SoC includes a plurality of computing units 102 of different types, such as CPUs and GPUs. The domain controller is used to drive the head-up display device, and a head-up display task in the head-up display device may be processed by a plurality of SoCs or other computing units in the domain controller.
[0047] The head-up display device 100 receives head-up display related data and head-up display tasks from the device bus, wherein the bus may be a CAN bus or an ETH bus in a car, and the head-up display related data may be ADAS data, DMS data, navigation data, etc. in the car. The head-up display tasks include data processing tasks, image processing tasks, rendering tasks, display tasks, etc. When processing some head-up display tasks, corresponding algorithms need to be called, such as image quality optimization algorithms, AR fusion algorithms, and distortion correction algorithms.
[0048] In a specific application, after obtaining a head-up display task, the data processing unit 101 in the head-up display device 100 determines a corresponding first computing unit from the multiple computing units 102 to process the head-up display task based on the predicted computing power consumption of the multiple computing units 102 for executing the head-up display task and the remaining computing power values of the multiple computing units 102. This can avoid the situation where one of the multiple computing units 102 is overloaded while other computing units are underloaded, thereby giving full play to the hardware resources of the head-up display device 100.
[0049] Based on this, an embodiment of the present application provides a head-up display method, and the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0050] See also Figure 2 , Figure 2 A schematic diagram of a head-up display method provided in an embodiment of the present application, wherein the head-up display method is applied to Figure 1 The data processing unit 101 shown in FIG. Figure 2 As shown, the method comprises the following steps:
[0051] Step 201, obtaining a head-up display task.
[0052] Among them, the head-up display task may include rendering tasks, image processing tasks, display tasks, etc. Refers to the related tasks that need to be completed before the head-up display related information is projected.
[0053] Step 202 : Processing a head-up display task by a first computing unit among a plurality of computing units.
[0054] Among them, the first computing unit is determined from multiple computing units based on the predicted computing power consumption value of each computing unit when performing the head-up display task and the first remaining computing power value of each computing unit. And the predicted computing power consumption value of each computing unit when performing the head-up display task shown in this embodiment can be determined according to the task type of the head-up display task and the computing power consumption prediction mapping table between multiple computing units. This makes it easy to determine the predicted computing power consumption value of each computing unit when performing the head-up display task.
[0055] For example, please refer to Table 1, which is a computing power consumption prediction mapping table. The computing power consumption prediction value of each computing unit when executing the head-up display task can be obtained based on experience or after deep learning based on historical computing power consumption values.
[0056] Table 1
[0057] Heads-up display tasks The first type of computing unit computing power consumption The second type of computing unit computing power consumption …… Heads-up display task 1 1.5K DMIPS 1.2G Flops …… Heads-up display task 2 2.5K DMIPS 2.2G Flops …… Heads-up display task 3 5.6K DMIPS 5.2G Flops …… …… …… …… ……
[0058] According to the predicted value of computing power consumption when each computing unit executes the head-up display task and the remaining computing power value of each computing unit, the computing unit that is easiest to process the head-up display task among multiple computing units can be determined, thereby improving the operating performance of the entire head-up display device.
[0059] The multiple computing units include at least two different types of computing units, and different types of computing units have different computing methods for the same head-up display task. For example, when the GPU and the CPU process and calculate the same head-up display task, the GPU's computing method is to split the required operations into small, simple operations, and then process them in parallel; while the CPU directly processes the required operations. In other words, the number of computing units of a single type in the multiple computing units may be multiple.
[0060] In addition, the types of the multiple computing units may be different. Selecting the first computing unit from the multiple computing units means selecting a computing unit from multiple different types of computing units as the first computing unit. For example, selecting a computing unit from a CPU and a GPU as the first computing unit.
[0061] In a feasible embodiment, the method also includes: determining at least one second computing unit based on the predicted computing power consumption value of the head-up display task and the remaining computing power values corresponding to multiple computing units respectively; determining the first computing unit from at least one second computing unit; wherein the target difference between the remaining computing power value of the second computing unit and the predicted computing power consumption value when the second computing unit performs the head-up display task is greater than a first preset threshold.
[0062] Among them, in order to give full play to hardware resources and balance the load of hardware resources, this embodiment determines the first computing unit from multiple computing units through the predicted value of computing power consumption when each computing unit executes the head-up display task and the first remaining computing power value of each computing unit. Specifically, the target difference between the predicted value of computing power consumption when the second computing unit executes the head-up display task and the remaining computing power value of the second computing unit in each computing unit is determined. If the target difference is greater than the first preset threshold, it can be determined that the second computing unit is relatively idle, and processing the head-up display task by the second computing unit will not cause the second computing unit to be overloaded, and the first preset threshold can be determined separately according to different computing units. Determining the first computing unit by the method shown in the embodiment of the present application can avoid overloading a single computing unit, thereby improving the operating performance of the head-up display device.
[0063] Furthermore, in a feasible embodiment, determining the first computing unit from at least one second computing unit includes: if there is one second computing unit, determining the second computing unit as the first computing unit; if there are multiple second computing units, determining the first computing unit from multiple second computing units according to a selection strategy.
[0064] Among them, a second computing unit whose target difference is greater than a first preset threshold is selected from multiple computing units. There may be multiple second computing units. At this time, it is necessary to select one second computing unit from the multiple second computing units as the first computing unit according to the selection strategy.
[0065] In an embodiment of the present application, if it is determined that the target difference between the predicted value of the computing power consumption of the second computing unit to perform the head-up display task and the remaining computing power value of the second computing unit is greater than a preset threshold, the second computing unit is determined to be the first computing unit to perform the head-up display task. This can avoid excessive load on a single computing unit, thereby improving the operating performance of the head-up display device.
[0066] In a feasible embodiment, the first computing unit is a computing unit pre-set to perform the head-up display task among the plurality of second computing units; or, the first computing unit is a computing unit with the largest target difference among the plurality of second computing units.
[0067] Each of the plurality of computing units has a pre-set category of a head-up display task for execution, and the pre-set computing units for executing the head-up display task are all computing units that are most suitable for the head-up display task category.
[0068] In addition, if there is no computing unit pre-set to perform the head-up display task among the multiple second computing units, the computing unit with the highest priority for performing the head-up display task among the multiple second computing units can be determined as the first computing unit. The priority of performing the head-up display task among the multiple computing units can be determined by the historical number of times the head-up display task of this type is performed among the multiple computing units. The more historical numbers of times the target computing unit among the multiple computing units performs the head-up display task of this type, the higher the priority of the target computing unit for performing the head-up display task. The reason why the first computing unit is determined according to the priority of performing the head-up display task is that after the processor processes a task, the residual information of the task will be retained in the state of the processor (i.e., the processor cache). If the same type of task is handed over to the processor for processing next time, the processor will process the task more efficiently. Therefore, determining the computing unit with the highest priority for performing the head-up display task from the multiple second computing units as the first computing unit can make the processing of the head-up display task more efficient.
[0069] In addition, the priority of executing the head-up display task among multiple computing units can also be determined according to the processing characteristics of each computing unit among the multiple computing units. For example, the GPU's ability to process image data is stronger than the CPU's ability to process image data. Therefore, for image data processing tasks, the GPU's priority is higher than the CPU.
[0070] In addition, the calculation unit with the largest corresponding target difference in the second calculation unit may be selected as the first calculation unit, so that the hardware resources of the head-up display device can be fully utilized.
[0071] In a feasible embodiment, when the head-up display task is multiple tasks, the method further includes: determining the first calculation unit from multiple calculation units according to the matching orders corresponding to the multiple head-up display tasks respectively, and the matching order is determined according to the priority of the task categories corresponding to the multiple head-up display tasks respectively.
[0072] Among them, when the head-up display task consists of multiple tasks, since the first computing unit selected from multiple computing units to execute the head-up display task is determined based on the predicted computing power consumption value when each computing unit executes the head-up display task and the first remaining computing power value of each computing unit, if the first computing units corresponding to the multiple head-up display tasks are selected from multiple computing units at the same time, there may be multiple head-up display tasks that select the same computing unit at the same time, and the remaining computing power value of the computing unit is less than the sum of the predicted computing power consumption values corresponding to the multiple head-up display tasks. Therefore, this embodiment determines the matching order corresponding to the multiple head-up display tasks respectively by the priorities corresponding to the multiple head-up display tasks respectively. Avoid the above situation caused by the simultaneous computing power matching of multiple head-up display tasks.
[0073] The priorities corresponding to the multiple head-up display tasks are determined according to the priorities of the task categories corresponding to the multiple head-up display tasks, wherein the priorities of the task categories corresponding to the head-up display tasks can be determined according to the size of the average computing power consumption prediction value of the head-up display tasks under the task category, that is, if the average computing power consumption prediction value of the head-up display tasks under the first task category is larger, the priority corresponding to the first task category is higher. In addition, the priorities corresponding to the task categories can also be set by the user.
[0074] This embodiment can classify the two conditions of the priority of the character categories corresponding to the multiple head-up display tasks and the size of the predicted computing power consumption corresponding to the multiple head-up display tasks into primary and secondary categories. Exemplarily, when the priority of the character categories corresponding to the multiple head-up display tasks is the main condition for evaluating the priority of the multiple head-up display tasks, after the first sorting according to the priority of the task categories corresponding to the multiple head-up display tasks, there will be multiple head-up display tasks of the same task category corresponding to the same priority. At this time, the priority between the multiple head-up display tasks of the same task category is determined according to the predicted computing power consumption value of each head-up display task in the multiple head-up display tasks of the same task category. At this time, the larger the predicted computing power consumption value of the target head-up display task among the multiple head-up display tasks of the same task category, the higher the priority of the target head-up display task.
[0075] In the embodiment of the present application, when there are multiple head-up display tasks, the order in which each head-up display task matches the first computing unit from multiple computing units is determined by the priorities corresponding to the multiple head-up display tasks. This not only allows the head-up display tasks with high priorities to be processed in advance, but also avoids the problem of a single computing unit being overloaded when multiple head-up display tasks simultaneously match the first computing unit from multiple computing units.
[0076] In a feasible embodiment, the corresponding first computing units are matched from the multiple computing units according to the matching orders corresponding to the multiple head-up display tasks, including: for the i-th head-up display task among the multiple head-up display tasks, the second remaining computing power value of each computing unit is obtained, the second remaining computing power value of each computing unit is determined based on the first remaining computing power value and the computing power required for each computing unit to process the first i-1 head-up display tasks among the multiple head-up display tasks, and the matching order of the i-th head-up display task is less than the matching order of the first i-1 head-up display tasks; the first computing unit is determined from the multiple computing units according to the predicted computing power consumption value when each computing unit executes the head-up display task and the second remaining computing power value of each computing unit.
[0077] Among them, when multiple head-up display tasks match the first computing unit from multiple computing units according to their corresponding matching order, if the first head-up display task successfully matches the first computing unit, then when the subsequent head-up display tasks are matched, the remaining computing power value of the first computing unit needs to be the initial remaining computing power value minus the predicted computing power consumption value of the first computing unit when executing the first head-up display task. This can solve the problem that the remaining computing power values of multiple computing units cannot be accurately determined when multiple head-up display tasks are performing computing power matching at the same time.
[0078] In addition, in a feasible embodiment, when the head-up display task consists of multiple tasks, the method further includes: determining a first computing unit of the head-up display task in the target task set based on a comparison relationship between the first computing power value and the remaining computing power value of the third computing unit; wherein the target task set is one of at least one task set, and at least one task set is obtained by dividing multiple head-up display tasks, and the computing units with the highest priority for executing the head-up display tasks belonging to the same task set are of the same type, the first computing power value is the sum of the predicted computing power consumption values corresponding to the third computing unit executing the head-up display tasks in the target task set, and the third computing unit is the computing unit with the highest priority for executing the head-up display tasks in the target task set among the multiple computing units.
[0079] Furthermore, in a feasible embodiment, the first computing unit of the head-up display task in the target task set is determined based on the comparison relationship between the first computing power value and the remaining computing power value of the third computing unit, including: when the first computing power value is less than the remaining computing power value of the third computing unit, determining the third computing unit as the first computing unit to execute the head-up display task in the target task set; when the first computing power value is not less than the remaining computing power value of the third computing unit, eliminating at least one target head-up display task from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the second computing power value is the sum of the computing power consumption prediction values corresponding to the head-up display tasks in the target task set after eliminating at least one target head-up display task from the target task set.
[0080] Among them, when the number of head-up display tasks is too large, it will waste too much time to match the first computing unit from multiple computing units according to the matching order corresponding to each head-up display task in the multiple head-up display tasks. Therefore, this embodiment divides the multiple head-up display tasks according to the different priorities of the multiple computing units corresponding to the multiple head-up display tasks to obtain at least one task set, wherein the computing units with the highest priority for executing the head-up display tasks belonging to the same task set are of the same type. Therefore, each task set corresponds to a different computing unit, and at this time, the head-up display tasks in each task set can be matched with the computing units corresponding to the task set at the same time.
[0081] For example, if the multiple head-up display tasks include task A, task B, task C and task D, where the computing unit with the highest priority for executing tasks A and task C is the GPU, and the computing unit with the highest priority for executing tasks B and task D is the CPU, then the multiple head-up display tasks are divided to obtain two task sets, where the first task set includes tasks A and task C, and the second task set includes tasks B and task D.
[0082] Specifically, for the target task set in at least one task set, it is necessary to determine the sum of the predicted computing power consumption values corresponding to the head-up display tasks in the target task set executed by the third computing unit corresponding to the target task set, and determine whether to use the third computing unit as the first computing unit to execute the head-up display tasks in the target task set based on the size relationship between the sum of the predicted computing power consumption values and the remaining computing power value of the third computing unit. If the sum of the predicted computing power consumption values is less than the remaining computing power value of the third computing unit, the third computing unit can be used as the first computing unit to execute the head-up display tasks in the target task set. If the sum of the predicted computing power consumption values is not less than the remaining computing power value of the third computing unit, it is necessary to consider eliminating some of the head-up display tasks in the target task set so that the sum of the predicted computing power consumption values corresponding to the eliminated target task set is less than the remaining computing power value of the third computing unit.
[0083] As for the eliminated head-up display tasks, computing power matching can be directly performed through other computing units that do not correspond to at least one task set to determine the first computing unit used to execute the eliminated head-up display tasks; the remaining computing power of the third computing unit can also be detected in real time. When there are completed tasks in the target task set, the remaining computing power value of the third computing unit will increase. When the remaining computing power of the third computing unit can meet the requirements of executing the eliminated head-up display tasks, the eliminated head-up display tasks are processed by the third computing unit.
[0084] In the embodiment of the present application, multiple head-up display tasks are divided according to the different priorities of the multiple computing units corresponding to the multiple head-up display tasks to determine at least one task set, and the head-up display tasks in each task set are matched with the computing units corresponding to the task set. In this way, the time for computing power matching of multiple head-up display tasks can be reduced, thereby improving the efficiency of head-up display task processing.
[0085] Specifically, in a feasible embodiment, at least one target head-up display task is eliminated from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, including: randomly eliminating a target number of head-up display tasks from the head-up display tasks in the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than a second preset threshold; wherein the target number is determined based on the difference between the first computing power value and the remaining computing power value of the third computing unit and the average computing power value, and the average computing power value is determined based on the first computing power value and the number of head-up display tasks in the target task set.
[0086] Among them, if it is necessary to propose at least one target head-up display task from the target task set, it is necessary to first determine the number of target head-up display tasks and eliminate them according to the corresponding data. If the number of target head-up display tasks is not determined and then eliminated, a lot of trial and error time will be wasted. In this embodiment, the average computing power value is determined according to the first computing power value and the number of head-up display tasks in the target task set, and the target number of target head-up display tasks is determined according to the difference between the first computing power value and the remaining computing power value of the third computing unit and the average computing power value. After the target number of target head-up display tasks is determined, the target number of head-up display tasks are randomly eliminated from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than the second preset threshold.
[0087] Exemplarily, if the head-up display tasks in the target task set include task 1, task 2, task 3 and task 4, the predicted computing power consumption values corresponding to the execution of the head-up display tasks by the third computing unit are task 1 (30), task 2 (40), task 3 (36) and task 4 (30), respectively. If the remaining computing power value of the third computing unit is 80 at this time, then the remaining computing power value of the third computing unit 80 is less than the first computing power value 136. At this time, at least one head-up display task needs to be removed from the target task set so that the second computing power value is greater than the remaining computing power value of the third computing unit. If the removal is performed directly, it is necessary to continuously try and error, that is, first continuously remove one of the head-up display tasks. If it is found that removing one head-up display task cannot achieve a second computing power value greater than the remaining computing power value of the third computing unit, then remove two of the head-up display tasks. However, after this embodiment determines that the target number is 2 through the difference 56 between the first computing power value 136 and the remaining computing power value 80 of the third computing unit and the average computing power value 36, it can be directly determined that two head-up display tasks need to be removed from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit.
[0088] In the embodiment of the present application, the above method is adopted to randomly remove the target number of head-up display tasks from the head-up display tasks in the target task set, so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than the second preset threshold value. This can not only reduce the time for the head-up display task to perform computing power matching, but also improve the efficiency of the head-up display task processing.
[0089] Among them, after the first computing unit is determined from multiple computing units, the head-up display task is processed by the first computing unit, which can avoid excessive load on a single computing unit, thereby improving the operating efficiency of the head-up display device. The head-up display task is processed by the first computing unit, often by calling the driver of the first computing unit or by calling the API provided by the first computing unit to receive the head-up display task. Exemplarily, in the drawing and rendering task, calling the OpenGL interface can select the computing unit GPU to complete the drawing and rendering task, calling the GDI graphics interface can select the computing unit CPU to complete the drawing and rendering task, and calling the driver of the graphics dedicated circuit can select the computing unit IPU to complete the drawing and rendering task.
[0090] For example, see Figure 3 , Figure 3 A schematic diagram of a head-up display task execution process provided in an embodiment of the present application is as follows: Figure 3 As shown, first start the bus data reading task, determine the computing unit that successfully matches the bus data reading task among multiple computing units according to the computing power matching, and execute the bus data reading task according to the successfully matched computing unit; then start the rendering task, determine the computing unit that successfully matches the rendering task among multiple computing units according to the computing power matching, and execute the rendering task according to the successfully matched computing unit; then start the image processing task, at this time, you can first load the image processing algorithm corresponding to the image processing task, determine the computing unit that successfully matches the image processing algorithm among multiple computing units according to the computing power matching, and execute the image processing algorithm according to the successfully matched computing unit. In addition, the head-up display task also includes many other tasks, such as display tasks, etc., which will not be elaborated this time.
[0091] It can be seen that in the embodiment of the present application, the first computing unit is determined from multiple computing units according to the predicted computing power consumption value when each computing unit performs the head-up display task and the first remaining computing power value of each computing unit, and the head-up display task is processed by the first computing unit. In this way, it is possible to avoid the situation where one computing unit among the multiple computing units is overloaded while other computing units are underloaded, thereby giving full play to the hardware resources.
[0092] In another feasible embodiment, the plurality of computing units include a plurality of computing units of different types, and the head-up display method includes:
[0093] Step 301, obtaining a heads-up display task.
[0094] Step 302, processing the head-up display task by a first computing unit among multiple types of computing units, where the first computing unit is determined from multiple types of computing units based on a predicted value of computing power consumption when each computing unit performs the head-up display task and a first remaining computing power value of each computing unit.
[0095] Among them, for a first computing unit among multiple types of computing units, the first computing unit may include multiple ones, and the first remaining computing power value of the first computing unit is the sum of the remaining computing power values of the multiple first computing units.
[0096] Specifically, in the case where there are multiple first computing units, the head-up display task is processed by a first computing unit among multiple types of computing units, including: processing the head-up display task by multiple first computing units at the same time, or processing the head-up display task by a target computing unit, the target computing unit is one of the multiple first computing units, and the difference between the remaining computing power value of the target computing unit and the predicted computing power consumption value when the target computing unit performs the head-up display task is greater than a first preset threshold.
[0097] It can be understood that determining the first computing unit from multiple types of computing units can be performed according to the method for determining the first computing unit from multiple computing units shown in the above embodiment.
[0098] In this embodiment, a suitable computing unit is selected according to the computing capabilities of multiple types of computing units, which can avoid the situation where one computing unit among the multiple computing units is overloaded while other computing units are underloaded, thereby fully utilizing hardware resources.
[0099] In accordance with the above-mentioned embodiments, please refer to Figure 4a , Figure 4a is a functional unit block diagram of a head-up display device provided in an embodiment of the present application, and the device is applied to Figure 1 The data processing unit 101 shown in FIG. Figure 4a As shown, the head-up display device 40 includes:
[0100] An acquisition unit 401 is used to acquire a head-up display task;
[0101] Processing unit 402 is used to process the head-up display task through a first computing unit among multiple computing units, where the first computing unit is determined from multiple computing units based on a predicted computing power consumption value when each computing unit performs the head-up display task and a first remaining computing power value of each computing unit.
[0102] The plurality of computing units include at least two different types of computing units. In addition, the types of the plurality of computing units may be different.
[0103] The predicted value of computing power consumption when each computing unit performs a head-up display task is determined according to a computing power consumption prediction mapping table between the task type of the head-up display task and multiple computing units.
[0104] In a feasible embodiment, the device also includes: a determination unit 403, which is used to determine at least one second computing unit based on the predicted computing power consumption value of the head-up display task and the remaining computing power values corresponding to multiple computing units respectively; determine the first computing unit from at least one second computing unit; wherein the target difference between the remaining computing power value of the second computing unit and the predicted computing power consumption value when the second computing unit performs the head-up display task is greater than a first preset threshold.
[0105] In a feasible embodiment, the determination unit 403 is used to determine the first computing unit from at least one second computing unit, including: if there is one second computing unit, determining the second computing unit as the first computing unit; if there are multiple second computing units, determining the first computing unit from multiple second computing units according to a selection strategy.
[0106] In a feasible embodiment, the first computing unit is a computing unit with the highest priority for executing the head-up display task among the plurality of second computing units; or, the first computing unit is a computing unit with the largest target difference among the plurality of second computing units.
[0107] In a feasible embodiment, when the head-up display task is multiple tasks, the device is also used for: determining unit 403, used to determine the first calculation unit from multiple calculation units according to the matching orders corresponding to the multiple head-up display tasks, and the matching order is determined according to the priority of the task categories corresponding to the multiple head-up display tasks.
[0108] In a feasible embodiment, the determination unit 403 is used to match the corresponding first computing unit from the multiple computing units according to the matching orders corresponding to the multiple head-up display tasks, including: for the i-th head-up display task among the multiple head-up display tasks, obtain the second remaining computing power value of each computing unit, the second remaining computing power value of each computing unit is determined based on the first remaining computing power value and the computing power required for each computing unit to process the first i-1 head-up display tasks among the multiple head-up display tasks, and the matching order of the i-th head-up display task is less than the matching order of the first i-1 head-up display tasks; determine the first computing unit from the multiple computing units according to the predicted computing power consumption value when each computing unit executes the head-up display task and the second remaining computing power value of each computing unit.
[0109] In a feasible embodiment, when the head-up display task consists of multiple tasks, the device is also used for: determining unit 403, which is used to determine the first computing unit of the head-up display task in the target task set based on the comparison relationship between the first computing power value and the remaining computing power value of the third computing unit; wherein the target task set is one of at least one task set, and at least one task set is obtained by dividing multiple head-up display tasks, and the computing units with the highest priority for executing the head-up display tasks belonging to the same task set are of the same type, and the first computing power value is the sum of the predicted computing power consumption values corresponding to the third computing unit executing the head-up display tasks in the target task set, and the third computing unit is the computing unit with the highest priority for executing the head-up display tasks in the target task set among the multiple computing units.
[0110] In a feasible embodiment, a determination unit 403 is used to determine the first computing unit of the head-up display task in the target task set based on a comparison relationship between the first computing power value and the remaining computing power value of the third computing unit, including: when the first computing power value is less than the remaining computing power value of the third computing unit, determining the third computing unit as the first computing unit to execute the head-up display task in the target task set; a processing unit 402 is used to eliminate at least one target head-up display task from the target task set when the first computing power value is not less than the remaining computing power value of the third computing unit, so that the second computing power value is less than the remaining computing power value of the third computing unit, and the second computing power value is the sum of the computing power consumption prediction values corresponding to the head-up display tasks in the target task set after eliminating at least one target head-up display task in the target task set.
[0111] In a feasible embodiment, the processing unit 402 is used to eliminate at least one target head-up display task from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, including: randomly eliminating a target number of head-up display tasks from the head-up display tasks in the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than a second preset threshold; wherein the target number is determined based on the difference between the first computing power value and the remaining computing power value of the third computing unit and the average computing power value, and the average computing power value is determined based on the first computing power value and the number of head-up display tasks in the target task set.
[0112] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0113] In the case of integrated units, such as Figure 4b As shown, Figure 4b1 is a block diagram of the functional units of another head-up display device provided in an embodiment of the present application. Figure 4b In the embodiment, the head-up display device 41 includes: a processing module 412 and a communication module 411. The processing module 412 is used to control and manage the actions of the head-up display device, for example, the steps of the acquisition unit 401, the processing unit 402 and the determination unit 403, and / or other processes for executing the technology described herein. The communication module 411 is used to support the interaction between the head-up display device and other devices. Figure 4b As shown, the head-up display device 41 may further include a storage module 413, and the storage module 413 is used to store program codes and data of the head-up display device.
[0114] Among them, the processing module 412 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 411 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 413 can be a memory.
[0115] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above head-up display device 41 can execute the above Figure 2 The head-up display method shown.
[0116] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center containing one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0117] Figure 5 is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 500 may include one or more of the following components: a processor 501, a memory 502 coupled to the processor 501, wherein the memory 502 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 501. The electronic device 500 may be the above-mentioned head-up display device.
[0118] The processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect the various parts of the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 502, and calling data stored in the memory 502. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. It is understandable that the above-mentioned modem may not be integrated into the processor 501, and may be implemented separately through a communication chip.
[0119] The memory 502 may include a random access memory (RAM) or a read-only memory (ROM). The memory 502 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 500 during use, etc.
[0120] It is understandable that the electronic device 500 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.
[0121] An embodiment of the present application provides a vehicle, which includes the electronic device shown in the above embodiment or the head-up display device of the above embodiment.
[0122] An embodiment of the present application provides a computer-readable storage medium, wherein program data is stored in the computer-readable storage medium, and when the program data is executed by a processor, it is used to execute part or all of the steps of any head-up display method recorded in the above method embodiments.
[0123] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any head-up display method described in the above method embodiment. The computer program product may be a software installation package.
[0124] It should be noted that, for the sake of simplicity, the method embodiments of any of the aforementioned head-up display methods are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present application.
[0125] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude multiple situations. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0126] A person skilled in the art can understand that all or part of the steps in the various methods of the method embodiments of any of the above-mentioned head-up display methods can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a disk or an optical disk, etc.
[0127] The embodiments of the present application are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation method of a head-up display method and device of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of a head-up display method and device of the present application, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0128] The present application is described with reference to the flowcharts and / or block diagrams of the methods, hardware products, and computer program products of the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0131] It can be understood that any product that is controlled or configured to execute the processing method of the flowchart described in the method embodiment of a head-up display method of the present application, such as the terminal and computer program product in the above flowchart, belongs to the category of related products described in the present application.
[0132] Obviously, those skilled in the art can make various changes and modifications to the head-up display method and device provided by the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A head-up display method, characterized in that: The method comprises: Get the heads-up display task; The head-up display task is processed by a first computing unit among the multiple computing units, and the first computing unit is determined from the multiple computing units based on a predicted computing power consumption value when each computing unit among the multiple computing units executes the head-up display task and a first remaining computing power value of each computing unit.
2. The method according to claim 1, characterized in that The method further comprises: Determine at least one second computing unit according to the predicted computing power consumption value of the head-up display task and the remaining computing power values respectively corresponding to the plurality of computing units; determining a first computing unit from among the at least one second computing unit; Among them, a target difference between the remaining computing power value of the second computing unit and the predicted computing power consumption value when the second computing unit performs the head-up display task is greater than a first preset threshold.
3. The method according to claim 2, characterized in that The determining of the first computing unit from the at least one second computing unit comprises: If there is one second computing unit, determining that the second computing unit is the first computing unit; If there are multiple second computing units, the first computing unit is determined from the multiple second computing units according to a selection strategy.
4. The method according to claim 3, characterized in that The first computing unit is a computing unit pre-set to perform the head-up display task among the plurality of second computing units; or, The first calculation unit is a calculation unit having the largest target difference among the plurality of second calculation units.
5. The method according to any one of claims 1 to 4, characterized in that: The plurality of computing units include at least two types of computing units.
6. The method according to any one of claim 5, characterized in that: The multiple computing units are of different types.
7. The method according to any one of claims 1 to 6, characterized in that: The predicted value of computing power consumption when each computing unit executes the head-up display task is determined according to a computing power consumption prediction mapping table between the task type of the head-up display task and the plurality of computing units.
8. The method according to any one of claims 1 to 7, characterized in that: When the head-up display task is a plurality of tasks, the method further includes: The first calculation unit is determined from the plurality of calculation units according to the matching orders respectively corresponding to the plurality of head-up display tasks, wherein the matching order is determined according to the priorities of the task categories respectively corresponding to the plurality of head-up display tasks.
9. The method according to claim 8, characterized in that The matching of the first computing units from the plurality of computing units according to the matching orders respectively corresponding to the plurality of head-up display tasks includes: For an i-th head-up display task among the multiple head-up display tasks, obtaining a second remaining computing power value of each computing unit, wherein the second remaining computing power value of each computing unit is determined based on the first remaining computing power value and computing power required for processing by each computing unit in first i-1 head-up display tasks among the multiple head-up display tasks, and a matching order of the i-th head-up display task is less than a matching order of the first i-1 head-up display tasks; The first computing unit is determined from the multiple computing units according to the predicted computing power consumption value when each computing unit performs the head-up display task and the second remaining computing power value of each computing unit.
10. The method according to any one of claims 1 to 7, characterized in that: When the head-up display task is a plurality of tasks, the method further includes: Determine a first computing unit of a head-up display task in the target task set according to a comparison relationship between the first computing power value and a remaining computing power value of the third computing unit; Among them, the target task set is one of the at least one task set, the at least one task set is obtained after dividing multiple head-up display tasks, and the type of the computing unit with the highest priority for executing the head-up display tasks belonging to the same task set is the same, the first computing power value is the sum of the predicted computing power consumption values corresponding to the head-up display tasks in the target task set executed by the third computing unit, and the third computing unit is the computing unit with the highest priority for executing the head-up display tasks in the target task set among the multiple computing units.
11. The method according to claim 10, characterized in that Determining a first computing unit of a head-up display task in a target task set according to a comparison relationship between the first computing power value and a remaining computing power value of the third computing unit includes: When the first computing power value is less than the remaining computing power value of the third computing unit, determining the third computing unit as the first computing unit that executes the head-up display task in the target task set; When the first computing power value is not less than the remaining computing power value of the third computing unit, at least one target head-up display task is eliminated from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit, and the second computing power value is the sum of the computing power consumption prediction values corresponding to the head-up display tasks in the target task set after eliminating the at least one target head-up display task from the target task set.
12. The method according to claim 11, characterized in that The removing at least one target head-up display task from the target task set so that the second computing power value is less than the remaining computing power value of the third computing unit includes: Randomly remove a target number of head-up display tasks from the head-up display tasks in the target task set, so that the second computing power value is less than the remaining computing power value of the third computing unit, and the difference between the remaining computing power value of the third computing unit and the second computing power value is less than a second preset threshold; Among them, the target number is determined based on the difference between the first computing power value and the remaining computing power value of the third computing unit and the average computing power value, and the average computing power value is determined based on the first computing power value and the number of head-up display tasks in the target task set.
13. An electronic device, characterized in that: include: A processor, wherein the processor is coupled to a memory, and the processor calls an executable program code stored in the memory to execute the method according to any one of claims 1 to 12.
14. A vehicle, characterized in that: Includes the electronic device as claimed in claim 13.
15. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Calculation terminal determination method and device for driving task and computer equipment
CN112882809A
Data transmission method and related equipment
CN115988571A