Vehicle end computing resource allocation method and vehicle
By dynamically predicting the allocable computing resources of domain controllers and allocating target domain controllers, the problem of unreasonable allocation of computing resources on the vehicle side in the existing technology is solved, and the computing power and resource utilization of the entire vehicle are improved.
Patent Information
- Application Number
- CN202410633078.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
The existing vehicle-side computing resource allocation method only allocates based on the static remaining computing resources of the domain controller, resulting in unreasonable allocation of vehicle computing resources, resulting in reduced computing capabilities and waste of resources.
By obtaining the initial computing data and the operating data of the domain controller, and inputting it into the trained resource prediction model, the allocable computing resources of each domain controller are dynamically predicted, and the target domain control is determined based on the estimated computing resources and allocable computing resources. processor to perform computing task requests.
It realizes the maximum utilization of the vehicle's computing resources, improves the vehicle's computing power, avoids the waste of computing resources, and improves the accuracy and rationality of computing resource allocation.
Smart Images

Figure CN118585318A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computing resource allocation, and in particular to a method for allocating vehicle-side computing resources and a vehicle. Background Art
[0002] The vehicle domain controller is a new type of vehicle electronic controller that divides the functions of various parts of the vehicle electronics into several areas, such as the power domain, body domain, cockpit domain, intelligent driving domain, etc., and then uses the relatively concentrated control domain of the multi-core central processing unit (CPU) / graphics processing unit (GPU) chips with powerful processing capabilities to handle most of the functions that originally belonged to each electronic control unit (ECU) to meet the growing development needs of vehicle-mounted electronics. Each domain controller has certain computing resources, and the reasonable allocation of computing resources of each domain controller can improve the overall computing power of the vehicle. However, currently, resource allocation is only based on the static remaining computing resources of each domain controller, resulting in unreasonable allocation of computing resources for the entire vehicle. Summary of the invention
[0003] In view of this, the purpose of this application is to propose a method and vehicle for allocating vehicle-side computing resources to solve the problem of unreasonable allocation of existing vehicle-side computing resources.
[0004] Based on the above purpose, the first aspect of the present application provides a method for allocating vehicle-side computing resources, including:
[0005] In response to receiving a computing task request, determining initial computing data required for the computing task request;
[0006] Acquiring the initial calculation data and operation data of multiple domain controllers in the vehicle;
[0007] Determine the estimated computing resources required for the computing task request according to the preset mapping rules;
[0008] Inputting the initial computing data and the operating data into a trained resource prediction model, and outputting the allocatable computing resources of each domain controller through the resource prediction model;
[0009] At least one target domain controller corresponding to the computing task request is determined according to the estimated computing resources and the allocatable computing resources, so that the target domain controller executes the computing task request.
[0010] Optionally, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources includes:
[0011] Determine the initial domain controller corresponding to the computing task request according to a preset matching rule;
[0012] In response to the estimated computing resources being less than or equal to the allocatable computing resources corresponding to the initial domain controller, the initial domain controller is used as the target domain controller.
[0013] Optionally, the method further includes:
[0014] In response to the estimated computing resources being greater than the allocatable computing resources corresponding to the initial domain controller, respectively comparing the estimated computing resources with the allocatable computing resources corresponding to each other domain controller except the initial domain controller;
[0015] In response to the estimated computing resources being greater than the allocatable computing resources corresponding to each other domain controller, the estimated computing resources are divided according to the allocatable computing resources of each domain controller, and multiple domain controllers corresponding to the divided estimated computing resources are determined as multiple target domain controllers.
[0016] Optionally, the method further includes:
[0017] In response to the existence of at least one other domain controller corresponding to an allocatable computing resource that is greater than the estimated computing resource, the domain controller corresponding to the maximum allocatable computing resource is used as the target domain controller.
[0018] Optionally, the method further includes:
[0019] The preset calculation rules and the initial calculation data corresponding to the calculation task request are sent to the target domain controller, so that the target domain controller executes the calculation task request according to the preset calculation rules and the initial calculation data.
[0020] Optionally, before determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources, the method further includes:
[0021] Get the current running data of the vehicle;
[0022] determining a driving mode of the vehicle according to the current operating data;
[0023] The determining, according to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request comprises:
[0024] In response to the driving mode being a stationary mode, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources according to a first preset allocation rule;
[0025] In response to the driving mode being a dynamic mode, at least one target domain controller corresponding to the computing task request is determined according to a second preset allocation rule and based on the estimated computing resources and the allocatable computing resources.
[0026] Optionally, the multiple domain controllers include at least a body domain controller, a power domain controller, and an intelligent driving domain controller; and determining, according to the first preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocatable computing resources, includes:
[0027] In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the first domain controller, taking the first domain controller as the target domain controller; wherein the first domain controller includes a body domain controller, a power domain controller, or an intelligent driving domain controller;
[0028] In response to determining that the estimated computing resources are greater than the allocatable computing resources corresponding to the first domain controller, the estimated computing resources are divided, and multiple domain controllers corresponding to the divided estimated computing resources determined in the first domain controller set are used as multiple target domain controllers; wherein the first domain controller set includes a body domain controller, a power domain controller, and an intelligent driving domain controller.
[0029] Optionally, the multiple domain controllers include at least a cockpit domain controller; and determining, according to the second preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocatable computing resources, comprises:
[0030] In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the cockpit domain controller, the cockpit domain controller is used as the target domain controller.
[0031] Optionally, the method further includes:
[0032] In response to receiving a message indicating that the computing task request has been completed, a computing resource recovery instruction is sent to the target domain controller so that the target domain controller releases the computing resources occupied when executing the computing task request.
[0033] A second aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.
[0034] A third aspect of the present application provides a vehicle, comprising the electronic device as described in the second aspect.
[0035] As can be seen from the above, the vehicle-side computing resource allocation method and vehicle provided in the present application include, in response to receiving a computing task request, determining the initial computing data required for the computing task request, the initial computing data being the data required to execute the computing task request. Obtain the initial computing data for use in subsequent execution of the computing task request. Obtain the operation data of multiple domain controllers in the vehicle, the operation data not only includes the remaining computing resources of the domain controller, but also includes the program or thread information currently running and about to run by the domain controller. In the remaining computing resources, some computing resources need to be reserved for the program or thread to be run, and the reserved part cannot be used as allocable computing resources. Therefore, obtaining the operation data of the domain controller helps to accurately predict the allocable computing resources of each domain controller in the future, avoiding errors in the estimation of allocable computing resources. According to the preset mapping rules, determine the estimated computing resources required for the computing task request, the estimated computing resources are the computing resources required to execute the computing task request. Input the initial computing data and the operation data into the trained resource prediction model, and output the allocable computing resources of each domain controller through the resource prediction model. The trained resource prediction model can accurately predict the current allocatable computing resources of each domain controller based on the initial computing data and operating data, that is, dynamically predict the allocatable computing resources of each domain controller, and the prediction result is more reasonable. According to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request is determined so that the target domain controller executes the computing task request. Since the prediction of the allocatable computing resources of each domain controller is relatively accurate, the target domain controller allocated according to the allocatable computing resources is also relatively accurate and reasonable. Through the reasonable allocation of computing resources for each domain controller in this embodiment, the maximum utilization of the computing resources of the entire vehicle is achieved, which can improve the computing power of the entire vehicle and avoid the waste of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A schematic diagram of the interaction between the application algorithm data center and each domain controller in an embodiment of the present application;
[0038] Figure 2 A flowchart of a method for allocating vehicle-side computing resources according to an embodiment of the present application;
[0039] Figure 3 A schematic diagram of the structure of a device for allocating vehicle-side computing resources according to an embodiment of the present application;
[0040] Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0042] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0043] As described in the background technology, the vehicle includes multiple domain controllers. The computing resources of each domain controller mainly refer to: the processor resources of the domain controller, the memory resources of the domain controller, and the storage space of the domain controller. The processor is responsible for executing computing tasks. The processor can be a single-core or multi-core CPU, or an application-specific integrated circuit ASIC (Application-Specific Integrated Circuit) or a field-programmable gate array FPGA (Field-Programmable Gate Array). The memory is used to store program codes that are running or about to run and related data. The type of memory can be random access memory RAM (Random Access Memory), read-only memory ROM (Read-Only Memory), flash memory, etc. The storage space is used to store large amounts of data, such as maps, multimedia files, system software, etc.
[0044] The multiple domain controllers in the vehicle mainly include power domain controller, body domain controller, intelligent driving domain controller and cockpit domain controller. The power domain controller is an intelligent powertrain management unit, which uses the vehicle-side bus to realize transmission management, engine management, battery monitoring, alternator regulation, etc. Its advantages are to calculate and distribute torque for various power system units (internal combustion engine, motor\generator, battery, gearbox), realize CO2 emission reduction through predictive driving strategy, communication gateway, etc. It is mainly used for powertrain optimization and control, and also has functions such as electrical intelligent fault diagnosis, intelligent power saving, and bus communication. The body domain controller gradually transitions from a decentralized functional combination to a controller that integrates all body electronics basic drive, key functions, lights, doors, windows, etc. The intelligent driving domain controller has the capabilities of multi-sensor fusion, positioning, path planning, decision control, wireless communication, and high-speed communication. The cockpit domain controller supports cockpit domain applications such as voice recognition and gesture recognition. It can also provide excellent display performance support and external and internal communication capabilities, and provide a stable and high-speed communication network.
[0045] At present, when allocating computing resources in a vehicle, it is usually allocated according to the remaining computing resources of each domain controller. However, the computing resources of each domain controller are dynamically changing, and each domain controller has programs or threads that are running and to be run. In addition to the computing resources occupied by the running programs or threads, part of the remaining computing resources of the domain controller are reserved for allocation to tasks or threads to be executed, and the rest can be used as allocable computing resources. Therefore, directly allocating resources on the vehicle side according to the remaining computing resources has the problem of unreasonable or inaccurate computing resource allocation, resulting in a decrease in the overall computing power of the vehicle side or a waste of computing resources. In view of this, the present application proposes a method for allocating computing resources on the vehicle side, in which the allocable computing resources of each domain controller are predicted by a resource prediction model, and the available computing resources of each domain controller can be dynamically evaluated to achieve the purpose of reasonably allocating the computing resources of the entire vehicle, so as to maximize the utilization of the computing resources of the entire vehicle and improve the computing power of the entire vehicle.
[0046] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0047] The present application proposes a method for allocating vehicle-side computing resources, which is applied to an application algorithm data center in a vehicle. The application algorithm data center can be deployed in any domain controller or master controller in the vehicle, and the application algorithm data center can interact with any domain controller. Figure 1 The diagram shows the interaction between the application algorithm data center and each domain controller. Figure 1In the vehicle, the domain controllers include the power domain controller, body domain controller, intelligent driving domain controller and cockpit domain controller. The application algorithm data center interacts with each domain controller. Each domain controller sends domain control resource data to the application data center, and the application data center synchronously sends computing resource allocation results to each domain controller. The computing resource allocation results include the target domain controller and the computing resources to be occupied corresponding to the target domain controller.
[0048] A resource prediction model is pre-set in the application algorithm data center to provide computing resource prediction services for the whole. Figure 2 The method for allocating vehicle-side computing resources in an embodiment of the present application is shown, referring to Figure 2 , including the following steps:
[0049] Step 102: In response to receiving a computing task request, determine initial computing data required for the computing task request.
[0050] Usually, some smart scenes are pre-set in the vehicle. When the operation of the vehicle meets the smart scene, the computing task under the smart scene will be triggered. A computing task request is generated based on the computing task of the smart scene, and the computing task request will be sent to the application algorithm data center. After receiving the computing task request, the application algorithm data center determines the initial computing data required for the computing task request. The initial computing data contains all the data needed to execute the computing task request, such as vehicle driving data, driver feature data, or related feature data of the smart scene. The vehicle driving data includes vehicle speed, gear position, and temperature, etc. The driver feature data includes driver image, driving behavior data, etc. The related feature data of the smart scene includes vehicle congestion, congestion duration, etc.
[0051] Alternatively, when the domain controller executes a computing task, if the computing resources of the current domain controller cannot meet the computing resources required for the computing task, the current domain controller can send a computing task request to the application algorithm data center so that the application algorithm data center coordinates the computing resources on the vehicle side to help the current domain controller complete the computing task.
[0052] Step 104: Acquire the initial calculation data and operation data of multiple domain controllers in the vehicle.
[0053] After the initial calculation data is determined through step 102, that is, the data type to be collected is determined, then the data is directly collected through the associated sensor or obtained from other processors through the vehicle-side bus to complete the collection of the initial calculation data. At the same time, it is also necessary to obtain the operation data of multiple domain controllers, including the current usage data of each domain controller, such as CPU resource occupancy, memory occupancy, executing programs, programs to be scheduled for execution, etc., as well as bus load, communication bandwidth between different domain controllers, and the main frequency of the domain controller chip. The computing resources in the domain controller include the computing resources occupied by the currently running program and the remaining computing resources, but the remaining computing resources are usually not equal to the allocable computing resources. In order not to affect the normal operation of the domain controller, it is necessary to reserve some computing resources in the remaining computing resources for the programs to be scheduled for execution. Therefore, all the remaining computing resources cannot be used as the allocable computing resources of the domain controller. When predicting the allocable computing resources of each domain controller, it is necessary to consider the part of the computing resources that the program to be scheduled or executed by the domain controller needs to occupy. After removing this part of the computing resources from all the remaining computing resources, a more accurate allocable computing resources can be obtained. Therefore, in this embodiment, initial computing data and operation data are obtained so that the allocatable computing resources of each domain controller can be accurately predicted according to the resource prediction model.
[0054] Step 106: Determine the estimated computing resources required for the computing task request according to the preset mapping rule.
[0055] When setting up a smart scene, the computing resources required for the corresponding computing tasks under the smart scene will be estimated to obtain the estimated computing resources. For example, the estimated computing resources can be 10TOPS. After that, each smart scene and the corresponding estimated computing resources are associated and stored to form a preset mapping rule. In the preset mapping rule, the smart scene and the estimated computing resource are one-to-one corresponding. According to the smart scene, the only corresponding estimated computing resource can be queried in the preset mapping rule. Pre-calibrating the mapping rules can facilitate the subsequent quick query of the corresponding estimated computing resources according to the smart scene.
[0056] Step 108: Input the initial computing data and the operating data into a trained resource prediction model, and output the allocatable computing resources of each domain controller through the resource prediction model.
[0057] Specifically, the initial computing data and operating data obtained in the above steps are input into the trained resource prediction model, and the resource prediction model is used to predict the current allocatable computing resources of each domain controller. The resource prediction model comprehensively considers the initial computing data, the current operating status of each domain controller, and the communication status of each end in the vehicle, and realizes accurate prediction of the allocatable computing resources corresponding to each domain controller.
[0058] The resource prediction model in this embodiment is a deep learning model with adaptive learning capabilities, such as a recurrent neural network (RNN) model, a long short-term memory (LSTM) model, etc. The deep learning model can automatically adjust the internal model parameters and structure according to the training data to adapt to different tasks and scenarios. The deep learning model in this embodiment is used to predict the changing trend of the allocable computing resources in each domain controller, accurately determine the current allocable computing resources in each domain controller, and realize the dynamic calculation of allocable computing resources.
[0059] The following describes the training process of the deep learning model:
[0060] Step 201: Obtain historical intelligent scene data.
[0061] Specifically, the historical intelligent scene data includes multiple sub-data, each of which includes historical initial calculation data and historical operation data of multiple domain controllers. The historical initial calculation data is all the data required for the calculation of historical calculation tasks, and the historical operation data is the real-time operation data of the domain controller when calculating historical calculation tasks. The historical operation data includes not only the remaining computing resources of the domain controller, but also the CPU resource usage, memory usage, executing programs, programs to be scheduled for execution, bus load, communication bandwidth between different domain controllers, and the main frequency of the domain controller chip at the historical moment.
[0062] Step 202: According to the historical operation data of the multiple domain controllers, obtain the historical allocatable computing resources corresponding to each historical domain controller through annotation.
[0063] Specifically, the historical allocatable computing resources corresponding to each historical domain controller are determined by manual annotation, and the historical allocatable computing resources of each domain controller are determined by combining the programs to be scheduled and executed and other data in the historical operation data of each domain controller.
[0064] Step 203: Combine the historical intelligent scene data and the historical allocatable computing resources as sample data, and divide the sample data into a training set and a test set.
[0065] Specifically, when the sample data is divided into a training set and a test set, the data ratio of the training set and the test set can be 6:4 or 7:3, and the division ratio can be selected according to actual training requirements.
[0066] Step 204: Perform multiple rounds of training on the pre-built deep learning model using the training set, and stop the training in response to minimizing the loss function.
[0067] Specifically, a loss function is constructed with the goal of making the predicted computing resources output by the deep learning model infinitely close to the historically allocable computing resources. Exemplarily, the loss function may be a mean square error loss function or an L1 norm loss function. The historical initial computing data in the training set and the historical operating data of multiple domain controllers are input into the deep learning model, and the predicted computing resources corresponding to each domain controller are output through the deep learning model. The predicted computing resources and the historically allocable computing resources are substituted into the loss function to calculate the loss value. When the loss value is lower than the preset threshold or the loss value no longer decreases, multiple rounds of iterative training are stopped.
[0068] Step 205: Test the trained deep learning model using a test set, and in response to reaching a test cutoff condition, obtain a trained resource prediction model.
[0069] The trained deep learning model is tested with the data in the test set. The historical initial computing data in the test set and the historical operation data of multiple domain controllers are input into the deep learning model, and the predicted computing resources corresponding to each domain controller are output through the deep learning model. The accuracy of the predicted computing resources is evaluated by the historical allocatable computing resources. If the accuracy reaches the preset threshold (test cutoff condition), the test is stopped and the trained resource prediction model is obtained. If the accuracy does not reach the preset threshold, the deep learning model is retrained using the training set until the test cutoff condition is reached.
[0070] During the training process of the deep learning model, the deep learning model is made to learn the relationship between historical operation data and historical allocatable computing resources, so that the resource preset model obtained after the training is completed can accurately output the allocatable computing resources of each domain controller, thereby improving the accuracy of determining allocatable computing resources and providing a data basis for the subsequent allocation of target domain controllers.
[0071] It should be noted that the resource prediction model in this embodiment is continuously updated. The vehicle side continuously generates new intelligent scene sample data, and uses the new intelligent scene sample data to continuously train the resource prediction model to continuously update the model parameters of the resource prediction model to ensure the accuracy of the resource prediction model prediction. The training process of the resource prediction model can be performed in the cloud or on the vehicle side. When training in the cloud, the cloud sends the trained resource prediction model to the vehicle side, and the vehicle side deploys the resource prediction model to provide the vehicle side with computing resource prediction services.
[0072] Step 110: Determine at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocatable computing resources, so that the target domain controller executes the computing task request.
[0073] Specifically, after determining the allocatable computing resources of each domain controller, the computing task request can be allocated according to the estimated computing resources. The computing task request is allocated to a domain controller with sufficient allocatable computing resources for calculation. If the allocatable computing resources of any domain controller in the vehicle do not meet the estimated computing resources, the computing task request can be allocated to multiple domain controllers for collaborative calculation, that is, each domain controller executes the computing tasks corresponding to part of the computing task request. The domain controller that executes the computing task request is used as the target domain controller, and the number of target domain controllers is at least one. In other words, for the same computing task request, it can be executed by one or more domain controllers to improve the processing rate of the computing task request.
[0074] It should be noted that when determining the target domain controller, the upper limit of the computing resource occupancy of each domain controller must also be considered. When executing a computing task request, the computing resource occupancy of the target domain controller cannot exceed the upper limit of the computing resource occupancy, otherwise it will affect the overall computing capacity of the domain controller.
[0075] Based on the above steps 102 to 110, the vehicle-side computing resource allocation method and vehicle provided in this embodiment include, in response to receiving a computing task request, determining the initial computing data required for the computing task request, the initial computing data being the data required to execute the computing task request. Obtain the initial computing data for use in the subsequent execution of the computing task request. Obtain the operation data of multiple domain controllers in the vehicle, the operation data not only includes the remaining computing resources of the domain controller, but also includes the program or thread information currently running and about to run in the domain controller. In the remaining computing resources, some computing resources need to be reserved for the program or thread to be run, and the reserved part cannot be used as allocable computing resources. Therefore, obtaining the operation data of the domain controller helps to accurately predict the allocable computing resources of each domain controller in the subsequent period, avoiding errors in the estimation of allocable computing resources. According to the preset mapping rules, determine the estimated computing resources required for the computing task request, the estimated computing resources are the computing resources required to execute the computing task request. Input the initial computing data and the operation data into a trained resource prediction model, and output the allocable computing resources of each domain controller through the resource prediction model. The trained resource prediction model can accurately predict the current allocatable computing resources of each domain controller based on the initial computing data and operating data, that is, dynamically predict the allocatable computing resources of each domain controller, and the prediction result is more reasonable. According to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request is determined so that the target domain controller executes the computing task request. Since the prediction of the allocatable computing resources of each domain controller is relatively accurate, the target domain controller allocated according to the allocatable computing resources is also relatively accurate and reasonable. Through the reasonable allocation of computing resources for each domain controller in this embodiment, the maximum utilization of the computing resources of the entire vehicle is achieved, which can improve the computing power of the entire vehicle and avoid the waste of computing resources.
[0076] After the allocable computing resources are determined, it is necessary to allocate a target domain controller for the computing task request according to the allocable computing resources and the estimated computing resources. The specific allocation method is described below through some embodiments.
[0077] In some embodiments, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources includes:
[0078] Determine the initial domain controller corresponding to the computing task request according to a preset matching rule;
[0079] In response to the estimated computing resources being less than or equal to the allocatable computing resources corresponding to the initial domain controller, the initial domain controller is used as the target domain controller.
[0080] In this embodiment, the initial domain controller is a domain controller that matches the computing task request. For example, if the computing task request is a computing task related to the power domain, the corresponding initial domain controller is the power domain controller. In the preset matching rule, a corresponding initial domain controller is assigned to each smart scene. After the smart scene is associated with the initial domain controller, it is stored in the preset matching rule. The computing task request corresponds to the smart scene. After the computing task request is determined, the smart scene can be determined, and then the initial domain controller is determined in the preset matching rule. If the allocatable computing resources of the initial domain controller are greater than or equal to the estimated computing resources, that is, the allocatable computing resources of the initial domain controller can meet the computing resources required for the computing task request, the computing task request is executed in the initial domain controller, that is, the initial domain controller is used as the target domain controller. Usually, the computing rules and / or basic data associated with the computing task request are stored in the initial domain controller. When executing the computing task request in the initial domain controller, it is not necessary to obtain the computing rules and / or basic data, and the calculation is more convenient, which is conducive to improving the execution efficiency of the computing task request.
[0081] When the allocatable computing resources of the initial domain controller cannot meet the estimated computing resources, the computing task request needs to be allocated to other domain controllers for processing, which is explained below through a specific embodiment.
[0082] In some embodiments, the method further comprises:
[0083] In response to the estimated computing resources being greater than the allocatable computing resources corresponding to the initial domain controller, respectively comparing the estimated computing resources with the allocatable computing resources corresponding to each other domain controller except the initial domain controller;
[0084] In response to the estimated computing resources being greater than the allocatable computing resources corresponding to each other domain controller, the estimated computing resources are divided according to the allocatable computing resources of each domain controller using a pre-built resource allocation model, and multiple domain controllers corresponding to the divided estimated computing resources are determined as multiple target domain controllers.
[0085] Specifically, when the estimated computing resources are greater than the allocatable computing resources corresponding to the initial domain controller, it is necessary to compare the estimated computing resources with the allocatable resources of other domain controllers one by one. If the estimated computing resources are greater than the allocatable resources of each domain controller, it is necessary to divide the estimated computing resources and correspond the divided estimated computing resources to different domain controllers. Exemplarily, the estimated computing resources are 10TOPS, and the allocatable computing resources of each domain controller are less than 10TOPS. Then the estimated computing resources are divided, and 2TOPS, 3TOPS and 5TOPS are obtained after division. Three domain controllers corresponding to 2TOPS, 3TOPS and 5TOPS are determined respectively, such as the power domain controller, the intelligent driving domain controller and the body domain controller, and the computing task request is executed simultaneously by the three domain controllers. When executing the computing task request, the computing power resources occupied by the power domain controller are 2TOPS, the computing power resources occupied by the intelligent driving domain controller are 3TOPS, and the computing power resources occupied by the body domain controller are 5TOPS. The power domain controller, the intelligent driving domain controller and the body domain controller are used as the target domain controllers corresponding to the computing task request. It should be noted that when the estimated computing resources are divided, a resource allocation model can also be used for division. The resource allocation model is a reinforcement learning model. The reinforcement learning model learns the optimal strategy by interacting with the environment and is applied to dynamic computing resource allocation. By defining a suitable reward function and state space, the reinforcement learning model can learn how to adjust the allocation strategy of computing resources according to the current computing task request and the allocatable computing resources to achieve the best computing performance and computing efficiency. Through the method of this embodiment, under the premise of ensuring the normal function of each domain controller, the computing resources of the domain controller are released as much as possible for sharing, and the close collaboration between the domain controllers is strengthened.
[0086] It should be noted that, after the application algorithm data center completes the segmentation of the estimated computing resources, the segmentation results are synchronously sent to each domain controller. After the target domain controller receives the segmentation result, if it detects that the segmentation result is wrong, for example, the allocatable computing resources of the target domain controller are less than the computing resources corresponding to the segmentation result, resulting in the target domain controller being unable to execute the computing task request, the target domain controller sends an error prompt message of the segmentation result to the application algorithm data center. After receiving the error prompt message, the application algorithm data center re-segments the estimated computing resources.
[0087] It should be noted that when multiple target domain controllers are unable to meet the estimated computing resources after the estimated computing resources are divided, the target domain controllers can be reallocated according to the priority of the computing task request. The computing task request with a lower priority running in the domain controller is suspended to release the occupied computing resources for allocation to the computing task request with a higher priority. When the computing task request with a higher priority is completed, the suspended computing task request is continued.
[0088] If there are multiple domain controllers whose allocatable computing resources all meet the estimated computing resources, the following method is used to select the target domain controller. In a specific embodiment, the method further includes:
[0089] In response to the existence of at least one other domain controller corresponding to an allocatable computing resource that is greater than the estimated computing resource, the domain controller corresponding to the maximum allocatable computing resource is used as the target domain controller.
[0090] Specifically, if the allocatable computing resources of the initial domain controller are less than the estimated computing resources, and there are multiple domain controllers in other domain controllers whose allocatable computing resources are greater than or equal to the estimated computing resources, it is necessary to select one of the multiple domain controllers that meet the conditions as the target domain controller. The principle of selection is to prioritize the domain controller corresponding to the maximum allocatable computing resources as the target domain controller. The allocation method of this embodiment is conducive to balancing the computing resource utilization of each domain controller and avoiding the problem of excessive tension or excessive idleness of computing resources in a certain domain controller. At the same time, allocating computing task requests to a target domain controller for execution can reduce the consumption of computing resources during the segmentation process.
[0091] In the above embodiment, if the target domain controller is not the initial domain controller, before other domain controllers execute the computing task request, the data information required to execute the computing task request needs to be sent to the target domain controller, which is explained below through a specific embodiment.
[0092] In some embodiments, the method further includes: sending the preset computing rules and the initial computing data corresponding to the computing task request to the target domain controller, so that the target domain controller executes the computing task request according to the preset computing rules and the initial computing data.
[0093] Specifically, different computing task requests correspond to different computing rules. The initial domain controller usually stores the computing rules corresponding to the matching computing task requests, while other domain controllers do not store the computing rules corresponding to the unmatched computing task requests. For example, the power domain controller stores the computing rules corresponding to the computing task requests related to the power scene calculation, but the cockpit domain controller does not store the computing rules corresponding to the computing task requests related to the power scene calculation. If the cockpit domain controller is required to execute the computing task request related to the power scene calculation, the computing rules and initial computing data related to the computing task request need to be sent to the cockpit domain controller so that the cockpit domain controller can execute the computing task request. Through the method of this embodiment, it can be determined that the target domain controller can smoothly execute the computing task request to avoid errors or interruptions in the execution process.
[0094] When allocating a target domain controller for a computing task request, the driving mode of the vehicle also needs to be considered. The allocation principles for different driving modes are different, which are described below through specific embodiments.
[0095] In some embodiments, before determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources, the method includes:
[0096] Acquiring current operating data of the vehicle; determining a driving mode of the vehicle according to the current operating data;
[0097] The determining, according to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request comprises:
[0098] In response to the driving mode being a stationary mode, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources according to a first preset allocation rule;
[0099] In response to the driving mode being a dynamic mode, at least one target domain controller corresponding to the computing task request is determined according to a second preset allocation rule and based on the estimated computing resources and the allocatable computing resources.
[0100] Specifically, before allocating the target domain controller, the current operation data of the vehicle is obtained, and the driving mode of the vehicle is determined to be static mode or dynamic mode according to the current operation data. Static mode means that the vehicle is in a parked state but not powered off. Dynamic mode means that the vehicle is in a driving state. The current operation data may be vehicle speed, gear position, brake pedal opening, accelerator pedal opening, etc. How to determine the driving mode of the vehicle based on the operation data can be set according to actual needs. For example, when the vehicle speed is less than 3km / h and the gear position is P gear or N gear, it is determined that the vehicle is in static mode. When the vehicle speed is greater than 10km / h, the gear position is D gear, and the accelerator pedal opening is greater than 5%, it is determined that the vehicle is in dynamic mode. Because the vehicle is in different driving modes, the computing resource occupancy rate of each domain controller is different. For example, when the vehicle is in static mode, the vehicle is not in a driving state, and the user may use some entertainment functions in the car, resulting in a low computing resource occupancy rate of the power domain controller and the intelligent driving domain controller, and a high computing resource occupancy rate of the cockpit domain controller. Therefore, the allocation strategy of the target domain controller determined according to the driving mode can better meet the current driving state of the vehicle, so as to determine a more reasonable computing resource allocation strategy. When it is determined that the vehicle is in a static mode, according to the first preset allocation rule, at least one target domain controller corresponding to the computing task request is determined according to the estimated computing resources and the allocable computing resources. When it is determined that the vehicle is in a dynamic mode, according to the second preset allocation rule, at least one target domain controller corresponding to the computing task request is determined according to the estimated computing resources and the allocable computing resources. Through the method of this embodiment, a more reasonable target domain controller can be allocated to the computing task request while comprehensively considering the vehicle driving mode, thereby improving the user experience.
[0101] The following describes a method for allocating a target domain controller of a vehicle in static mode through a specific embodiment. In some embodiments, the multiple domain controllers include at least a body domain controller, a power domain controller, and an intelligent driving domain controller; the determining, according to the first preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocable computing resources, includes:
[0102] In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the first domain controller, taking the first domain controller as the target domain controller; wherein the first domain controller includes a body domain controller, a power domain controller, or an intelligent driving domain controller;
[0103] In response to determining that the estimated computing resources are greater than the allocatable computing resources corresponding to the first domain controller, the estimated computing resources are segmented using a pre-built resource allocation model, and multiple domain controllers corresponding to the segmented estimated computing resources determined in the first domain controller set are used as multiple target domain controllers; wherein the first domain controller set includes a body domain controller, a power domain controller, and an intelligent driving domain controller.
[0104] Specifically, in the stationary mode of the vehicle, the computing resource occupancy rate of the body domain controller, the power domain controller and the intelligent driving domain controller is usually low. Therefore, the body domain controller, the power domain controller and / or the intelligent driving domain controller are preferentially selected as the target domain controller. The first domain controller in this embodiment is any one of the body domain controller, the power domain controller or the intelligent driving domain controller. When the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the first domain controller, it means that the allocatable computing resources of the first domain controller can meet the computing resources required for the computing task request, and the first domain controller is directly used as the target domain controller. It should be noted that if there are multiple domain controllers that meet the computing resources required for the computing task request, then the first domain controller corresponding to the maximum allocatable computing resources is used as the target domain controller as in the aforementioned embodiment.
[0105] When the estimated computing resources are greater than the allocatable computing resources corresponding to the first domain controller, it means that the allocatable computing resources of any of the body domain controller, the power domain controller, and the intelligent driving domain controller cannot meet the computing resources required for the computing task request, and multiple domain controllers are required to jointly execute the computing task request. The estimated computing resources are divided by applying the resource allocation model in the algorithm data center. The specific division method is the same as the aforementioned embodiment and will not be repeated here. The target domain controller is determined in the first domain controller set based on the division result. The first domain controller set includes a body domain controller, a power domain controller, and an intelligent driving domain controller. Through the method of this embodiment, when the vehicle is in stationary mode, one or more domain controllers among the body domain controller, the power domain controller, and the intelligent driving domain controller are preferentially used as the target domain controller to meet the user's functional requirements in entertainment and interaction and enhance the user's experience.
[0106] The target domain controller allocation method of the vehicle in dynamic mode is described below by a specific embodiment. In some embodiments, the multiple domain controllers include at least a cockpit domain controller; the determining, according to the second preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocable computing resources, includes:
[0107] In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the cockpit domain controller, the cockpit domain controller is used as the target domain controller.
[0108] Specifically, when the vehicle is in dynamic mode, the computing resource occupancy rate of the cockpit domain controller is usually low. Therefore, in this mode, the computing resources of the cockpit domain controller are used preferentially. When it is determined that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the cockpit domain controller, the cockpit domain controller is directly used as the target domain controller. If the estimated computing resources are greater than the allocatable computing resources corresponding to the cockpit domain controller, the corresponding target domain controller is allocated to the computing task request according to the allocation method in the aforementioned embodiment. Through the allocation method of this embodiment, when the vehicle is in dynamic mode, the user's demand for vehicle power performance can be met and the user's driving experience can be improved.
[0109] After the data center allocates a target domain controller for the computing task request by applying the algorithm, the target domain controller executes the computing task request. After the execution is completed, the computing resources occupied by this computing task need to be reclaimed. The specific recycling method is described in the following embodiment.
[0110] In some embodiments, the method further comprises:
[0111] In response to receiving a message indicating that the computing task request has been completed, a computing resource recovery instruction is sent to the target domain controller so that the target domain controller releases the computing resources occupied when executing the computing task request.
[0112] Specifically, after the target domain controller completes the computing task request, it sends a message of execution completion to the application algorithm data center. After receiving the message, the application algorithm data center sends a computing resource recovery instruction to the target domain controller. The target domain controller releases the occupied computing resources according to the computing resource recovery instruction, and then records the real-time computing resource occupancy rate after release, and sends the real-time computing resource occupancy rate to the application algorithm data center for storage and recording, so as to facilitate the next allocation of computing tasks by the application algorithm data center. Through the method of this embodiment, the occupied computing resources in each domain controller can be recovered in time to avoid the waste of computing resources, and it is also beneficial for the application algorithm data center to accurately allocate the target domain controller for the next computing task request.
[0113] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0114] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0115] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a device for allocating vehicle-side computing resources.
[0116] refer to Figure 3 , the vehicle-side computing resource allocation device comprises:
[0117] A first determination module 302 is configured to determine initial computing data required for the computing task request in response to receiving the computing task request;
[0118] An acquisition module 304 is configured to acquire the initial calculation data and operation data of multiple domain controllers in the vehicle;
[0119] A second determination module 306 is configured to determine the estimated computing resources required for the computing task request according to a preset mapping rule;
[0120] The prediction module 308 is configured to input the initial computing data and the operation data into a trained resource prediction model, and output the allocatable computing resources of each domain controller through the resource prediction model;
[0121] The third determination module 310 is configured to determine at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources, so that the target domain controller executes the computing task request.
[0122] In some embodiments, the third determination module 310 is further configured to determine the initial domain controller corresponding to the computing task request according to a preset matching rule;
[0123] In response to the estimated computing resources being less than or equal to the allocatable computing resources corresponding to the initial domain controller, the initial domain controller is used as the target domain controller.
[0124] In some embodiments, the third determination module 310 is further configured to, in response to the estimated computing resources being greater than the allocatable computing resources corresponding to the initial domain controller, respectively compare the estimated computing resources with the allocatable computing resources corresponding to each other domain controller except the initial domain controller;
[0125] In response to the estimated computing resources being greater than the allocatable computing resources corresponding to each other domain controller, the estimated computing resources are divided according to the allocatable computing resources of each domain controller using a pre-built resource allocation model, and multiple domain controllers corresponding to the divided estimated computing resources are determined as multiple target domain controllers.
[0126] In some embodiments, the third determination module 310 is further configured to use the domain controller corresponding to the maximum allocatable computing resources as the target domain controller in response to the existence of at least one other domain controller corresponding to an allocatable computing resource greater than the estimated computing resource.
[0127] In some embodiments, the third determination module 310 is further configured to send the preset computing rules and the initial computing data corresponding to the computing task request to the target domain controller, so that the target domain controller executes the computing task request according to the preset computing rules and the initial computing data.
[0128] In some embodiments, a fourth determination module is further included, wherein the fourth determination module is configured to obtain current operation data of the vehicle;
[0129] determining a driving mode of the vehicle according to the current operating data;
[0130] In response to the driving mode being a stationary mode, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources according to a first preset allocation rule;
[0131] In response to the driving mode being a dynamic mode, at least one target domain controller corresponding to the computing task request is determined according to a second preset allocation rule and based on the estimated computing resources and the allocatable computing resources.
[0132] In some embodiments, the multiple domain controllers include at least a body domain controller, a power domain controller, and an intelligent driving domain controller; the fourth determination module is further configured to, in response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the first domain controller, use the first domain controller as the target domain controller; wherein the first domain controller includes a body domain controller, a power domain controller, or an intelligent driving domain controller;
[0133] In response to determining that the estimated computing resources are greater than the allocatable computing resources corresponding to the first domain controller, the estimated computing resources are segmented using a pre-built resource allocation model, and multiple domain controllers corresponding to the segmented estimated computing resources determined in the first domain controller set are used as multiple target domain controllers; wherein the first domain controller set includes a body domain controller, a power domain controller, and an intelligent driving domain controller.
[0134] In some embodiments, the multiple domain controllers include at least a cockpit domain controller; the fourth determination module is also configured to use the cockpit domain controller as the target domain controller in response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the cockpit domain controller.
[0135] In some embodiments, a recycling module is also included, which is configured to send a computing resource recycling instruction to the target domain controller in response to receiving a message that the computing task request has been completed, so that the target domain controller releases the computing resources occupied when executing the computing task request.
[0136] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0137] The device of the above-mentioned embodiment is used to implement the corresponding vehicle-side computing resource allocation method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0138] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for allocating vehicle-side computing resources described in any of the above embodiments is implemented.
[0139] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0140] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0141] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0142] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0143] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0144] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0145] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0146] The electronic device of the above-mentioned embodiment is used to implement the corresponding vehicle-side computing resource allocation method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0147] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for allocating vehicle-side computing resources as described in any of the above embodiments.
[0148] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0149] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for allocating vehicle-side computing resources as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0150] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0151] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0152] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0153] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0154] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for allocating vehicle-side computing resources, characterized in that: include: In response to receiving a computing task request, determining initial computing data required for the computing task request; Acquiring the initial calculation data and operation data of multiple domain controllers in the vehicle; Determine the estimated computing resources required for the computing task request according to the preset mapping rules; Inputting the initial computing data and the operating data into a trained resource prediction model, and outputting the allocatable computing resources of each domain controller through the resource prediction model; At least one target domain controller corresponding to the computing task request is determined according to the estimated computing resources and the allocatable computing resources, so that the target domain controller executes the computing task request.
2. The method according to claim 1, characterized in that The determining, according to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request comprises: Determine the initial domain controller corresponding to the computing task request according to a preset matching rule; In response to the estimated computing resources being less than or equal to the allocatable computing resources corresponding to the initial domain controller, the initial domain controller is used as the target domain controller.
3. The method according to claim 2, characterized in that The method further comprises: In response to the estimated computing resources being greater than the allocatable computing resources corresponding to the initial domain controller, respectively comparing the estimated computing resources with the allocatable computing resources corresponding to each other domain controller except the initial domain controller; In response to the estimated computing resources being greater than the allocatable computing resources corresponding to each other domain controller, the estimated computing resources are divided according to the allocatable computing resources of each domain controller using a pre-built resource allocation model, and multiple domain controllers corresponding to the divided estimated computing resources are determined as multiple target domain controllers.
4. The method according to claim 3, characterized in that The method further comprises: In response to the existence of at least one other domain controller corresponding to an allocatable computing resource that is greater than the estimated computing resource, the domain controller corresponding to the maximum allocatable computing resource is used as the target domain controller.
5. The method according to claim 3 or 4, characterized in that: The method further comprises: The preset calculation rule corresponding to the calculation task request and the initial calculation data are sent to the target domain controller, so that the target domain controller executes the calculation task request according to the preset calculation rule and the initial calculation data.
6. The method according to claim 1, characterized in that Before determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources, the method includes: Get the current operation data of the vehicle; determining a driving mode of the vehicle according to the current operating data; The determining, according to the estimated computing resources and the allocatable computing resources, at least one target domain controller corresponding to the computing task request comprises: In response to the driving mode being a stationary mode, determining at least one target domain controller corresponding to the computing task request according to the estimated computing resources and the allocatable computing resources according to a first preset allocation rule; In response to the driving mode being a dynamic mode, at least one target domain controller corresponding to the computing task request is determined according to a second preset allocation rule and based on the estimated computing resources and the allocatable computing resources.
7. The method according to claim 6, characterized in that The multiple domain controllers include at least a body domain controller, a power domain controller, and an intelligent driving domain controller; the determining, according to the first preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocatable computing resources, includes: In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the first domain controller, taking the first domain controller as the target domain controller; wherein the first domain controller includes a body domain controller, a power domain controller, or an intelligent driving domain controller; In response to determining that the estimated computing resources are greater than the allocatable computing resources corresponding to the first domain controller, the estimated computing resources are segmented using a pre-built resource allocation model, and multiple domain controllers corresponding to the segmented estimated computing resources determined in the first domain controller set are used as multiple target domain controllers; wherein the first domain controller set includes a body domain controller, a power domain controller, and an intelligent driving domain controller.
8. The method according to claim 6, characterized in that The multiple domain controllers include at least a cockpit domain controller; the determining, according to the second preset allocation rule, at least one target domain controller corresponding to the computing task request based on the estimated computing resources and the allocatable computing resources, includes: In response to determining that the estimated computing resources are less than or equal to the allocatable computing resources corresponding to the cockpit domain controller, the cockpit domain controller is used as the target domain controller.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: The invention comprises the electronic device as claimed in claim 9.
Citation Information
Cited By
Vehicle control method and device, controller, storage medium and product
CN119348553A
Vehicle control methods, devices, controllers, storage media and products
CN119348553B
Head unit resource dynamic allocation method based on application weight values, and vehicle and medium
WO2026077009A1
