Operator graph resource allocation method and apparatus, computer device, and storage medium

By rationally configuring the runtime period of the operator graph and the target core resources in the many-core system, the problem of unreasonable allocation of core resources is solved, and the resource utilization and allocation flexibility are improved.

CN115269165BActive Publication Date: 2026-11-24LYNXI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110476735.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-29
Publication Date
2026-11-24
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

The unreasonable allocation of core resources in existing technologies leads to low resource utilization.

Method used

By determining the runtime and target core resources of each operator graph in the operator graph group within the many-core system, resources can be allocated rationally, reducing resource waste.

Benefits of technology

It improved the utilization rate of core resources, reduced resource waste, and increased the flexibility and efficiency of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115269165B_ABST
    Figure CN115269165B_ABST
Patent Text Reader

Abstract

This invention discloses an operator graph resource allocation method, apparatus, computer device, and storage medium. The method includes: acquiring an operator graph to be run on a many-core system; determining whether the operator graph includes a first operator graph group, wherein the first operator graph group includes multiple first operator graphs, each configured with runtime requirement information, and the multiple first operator graphs in the first operator graph group have a temporal relationship; when the existence of the first operator graph group is determined, based on the runtime requirement information of each first operator graph in the first operator graph group, determining the runtime period for each first operator graph in the first operator graph group to be run on the many-core system, and the target core resources used to run each first operator graph in the first operator graph group within each runtime period. This invention can rationally allocate operator graph resources and improve the utilization rate of operator graph resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of artificial intelligence, and in particular to an operator graph resource allocation method, apparatus, computer device and storage medium. Background Technology

[0002] In recent years, with the rapid development of artificial intelligence-related applications and technologies, the requirements for computing power and power efficiency have been increasing. However, some related technologies suffer from drawbacks such as unreasonable allocation of core resources and low utilization of core resources. Summary of the Invention

[0003] This invention provides an operator graph resource allocation method, apparatus, computer equipment, and storage medium, which can rationally allocate core resources and improve the utilization rate of core resources.

[0004] In a first aspect, embodiments of the present invention provide an operator graph resource allocation method applied to a many-core system, wherein the many-core system includes allocable core resources, including:

[0005] Obtain the operator graph to be run on the many-core system;

[0006] Determine whether the operator graph includes a first operator graph group, wherein the first operator graph group includes multiple first operator graphs, each first operator graph is configured with runtime requirement information, and there is a temporal relationship between the multiple first operator graphs in the first operator graph group;

[0007] When the existence of the first operator graph group is confirmed, the running time period of each first operator graph in the first operator graph group to be run in the many-core system and the target core resources used to run each first operator graph in the first operator graph group in each running time period are determined according to the running requirement information of each first operator graph in the first operator graph group.

[0008] Secondly, embodiments of the present invention also provide an operator graph resource allocation device configured in a many-core system, wherein the many-core system includes allocable core resources, including:

[0009] The operator graph acquisition module is used to acquire the operator graph to be run on the many-core system.

[0010] The first operator graph group determination module is used to determine whether the operator graph includes a first operator graph group. The first operator graph group includes multiple first operator graphs, each of which is configured with runtime requirement information. There is a temporal relationship between the multiple first operator graphs in the first operator graph group.

[0011] The first operator graph resource allocation module is used to determine, when it is determined that the first operator graph group exists, the running time period to be run by each first operator graph in the first operator graph group in the many-core system and the target core resources used to run each first operator graph in the first operator graph group within each running time period, based on the running requirement information of each first operator graph in the first operator graph group.

[0012] Thirdly, embodiments of the present invention also provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the operator graph resource allocation method as described in any of the embodiments of the present invention.

[0013] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the operator graph resource allocation method as described in any of the embodiments of the present invention.

[0014] This invention addresses the problem in existing technologies where full resource allocation for each operator graph leads to wasted core resources. By determining the running time period for each first operator graph and the target core resources used to run each first operator graph within each running time period when the operator graph includes a running requirement and has a temporal relationship with other first operator graphs, this invention solves the problem of wasted core resources caused by full resource allocation for each operator graph in existing technologies. It allows the first operator graphs to run in different time periods, providing a way to allocate time and core resources. This enables reasonable allocation of resources required by the operator graph and targeted resource allocation, improving resource utilization and reducing resource waste. Attached Figure Description

[0015] Figure 1 This is a flowchart of an operator graph resource allocation method according to Embodiment 1 of the present invention;

[0016] Figure 2 This is a schematic diagram of the structure of an operator graph resource allocation device according to Embodiment 2 of the present invention;

[0017] Figure 3 This is a schematic diagram of the structure of a computer device according to Embodiment 3 of the present invention. Detailed Implementation

[0018] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0019] Example 1

[0020] Figure 1This is a flowchart of an operator graph resource allocation method according to Embodiment 1 of the present invention. This embodiment is applicable to the allocation of resources for multiple operator graphs. The method can be executed by the operator graph resource allocation device provided in this embodiment of the present invention. This device can be implemented in software and / or hardware, and is generally integrated into computer equipment. Figure 1 As shown, the method in this embodiment includes:

[0021] Any embodiment of the present invention is applied to a many-core system, which includes allocable core resources.

[0022] In this context, allocatable core resources refer to cores specifically allocated to operator graphs. A core is the smallest independently schedulable unit with full computational capabilities, possessing its own storage and computational resources. In addition to allocatable core resources, computer equipment resources also include core resources allocated to non-operator graph programs to run other programs. Computer equipment executing operator graph resource allocation methods includes many-core systems, which are used to run multiple operator graphs simultaneously. Many cores consist of a large number (potentially hundreds or thousands in the future) of various types of cores connected in a pre-defined manner, possessing high-performance parallel processing capabilities.

[0023] S110, Obtain the operator graph to be run on the many-core system.

[0024] An operator graph set can refer to a collection of operator graphs running in a many-core system. Each operator graph can include at least one operator. When an operator graph includes at least two operators, the output of the preceding operator serves as the input of the next adjacent operator. Operators can refer to algorithms such as convolution, addition, subtraction, multiplication, division, or matrix addition and multiplication. Operator graphs are used to implement specific functions and can refer to high-performance computing algorithms. Operator graphs can include, but are not limited to, AI algorithms, machine learning algorithms, and general scientific computing algorithms. More specifically, for example, an operator graph can be a deep learning model or a neural network. The operation of an operator graph requires resources. Core resources are allocated to the operator graph to run it, compute the input data, obtain the output data, and thus achieve the specific function.

[0025] Optionally, the allocatable core resources include storage resources and computing resources.

[0026] Storage resources are used to store data associated with the operator graph, such as the input data of the operator graph and / or the output data obtained from running the operator graph. For example, storage resources may include on-chip memory, i.e., on-chip storage. Computational resources are used to run the operator graph. For example, computational resources may include threads.

[0027] It should be noted that at the same time, the allocated core resources cannot overlap with each other, that is, the core resources corresponding to the operator graph are different from the core resources corresponding to other operator graphs.

[0028] By configuring allocable core resources, including storage and computing resources, core resources can be divided in a fine-grained manner, enriching the application scenarios for resource allocation, increasing the diversity of resource allocation, and improving the utilization rate of core resources.

[0029] Optionally, the operator graph includes: a neural network model or at least one network included in the neural network model.

[0030] In this context, an operator graph can be the entirety or a part of a neural network model. It can be understood as an operator graph used to implement a complete specific function, or a portion of a specific function. For example, an operator graph can be a neural network model, or a collection of networks consisting of at least one network within a neural network model.

[0031] In some optional embodiments, the operator graph may include a model formed by an image detection network and a speech recognition network, or the operator graph may only include an image detection network, or the operator graph may only include a speech recognition network. Similarly, the operator graph may include a model formed by an image detection network and an object recognition network, or the operator graph may only include an image detection network, or the operator graph may only include an object recognition network.

[0032] By configuring the operator graph as the entire model or as a part of the network included in the model, the application scenarios of the operator graph that the chip can execute can be enriched, as well as the business models of the operator graph, while improving the utilization rate of core resources.

[0033] S120, determine whether the operator graph includes a first operator graph group, the first operator graph group includes multiple first operator graphs, each first operator graph is configured with running requirement information, and there is a timing relationship between the multiple first operator graphs in the first operator graph group.

[0034] In a first operator graph group, each first operator graph has a temporal relationship with at least one first operator graph within the group, and each first operator graph is configured with runtime requirement information. A first operator graph group can be formed by combining multiple first operator graphs that have a temporal relationship and are all configured with runtime requirement information.

[0035] The runtime requirement information refers to the performance requirements of the corresponding operator graph. This information can be configured by the user. For example, runtime requirement information may include the minimum running speed and / or minimum running accuracy of the operator graph with configured runtime requirement information. An operator graph with configured runtime requirement information indicates that the allocated runtime information matches the runtime requirement information. Operator graphs without configured runtime requirement information have no performance restrictions and can be allocated any amount of core resources greater than zero.

[0036] Temporal relationships describe data dependencies between two operator graphs. For example, two first operator graphs with a temporal relationship may have a dependency on their input and / or output data. Temporal relationships include serial temporal relationships and / or parallel temporal relationships. At least two operator graphs with a serial temporal relationship can mean that the dependencies of at least two operator graphs on data are sequential in time. For example, the input data of the first operator graph is the output data of the second operator graph; these two operator graphs have a serial temporal relationship. At least two operator graphs with a parallel temporal relationship can mean that at least two operator graphs depend on the same data, and one input data is input to both operator graphs for computation; these two operator graphs have a parallel temporal relationship. For operator graphs with temporal relationships, data flows from front to back along the serial temporal relationship. When encountering a parallel temporal relationship, the data is simultaneously delivered to all operator graphs with parallel temporal relationships.

[0037] S130, when it is determined that the first operator graph group exists, the running time period of each first operator graph in the first operator graph group to be run in the many-core system and the target core resources used to run each first operator graph in the first operator graph group in each running time period are determined according to the running requirement information of each first operator graph in the first operator graph group.

[0038] The execution time period refers to the time during which the first operator graph runs in the many-core system. The execution time period is a portion of the execution cycle of the many-core system. One execution cycle is the time required for the many-core system to complete one execution of the computational tasks corresponding to all operator graphs in the operator graph set. The many-core system repeats the execution cycle cyclically. The execution time period is a portion of the execution cycle, and its duration is shorter than the execution cycle. The first operator graph is loaded into the many-core system and executed within its scheduled execution time period, and is removed from the many-core system at the end of the execution time period. The execution time period can be divided based on the number of first operator graphs. For example, if there are 8 first operator graphs, the execution cycle can be divided into 4 execution time periods of equal duration, with two first operator graphs running in each execution time period. Different first operator graphs can be assigned the same or different execution time periods.

[0039] The target core resource is the core resource allocated to the first operator graph during the runtime period. The many-core system uses the target core resource to run the first operator graph.

[0040] This invention addresses the problem in existing technologies where full resource allocation for each operator graph leads to wasted core resources. By determining the running time period for each first operator graph and the target core resources used to run each first operator graph within each running time period when the operator graph includes a running requirement and has a temporal relationship with other first operator graphs, this invention solves the problem of wasted core resources caused by full resource allocation for each operator graph in existing technologies. It allows the first operator graphs to run in different time periods, providing a way to allocate time and core resources. This enables reasonable allocation of resources required by the operator graph and targeted resource allocation, improving resource utilization and reducing resource waste.

[0041] Optionally, the operator graph resource allocation method further includes: for any given running time period, when it is determined that there are remaining core resources other than the target core resources, determining a second operator graph from the operator graph, so as to determine the core resources for running the second operator graph based on the remaining core resources, wherein the second operator graph is different from the first operator graph.

[0042] The sum of remaining core resources and at least one target core resource constitutes the allocatable core resources of the many-core system. Target core resources are the core resources allocated to the first runnable operator graph within the runtime period. The number of target core resources is the same as the number of first operator graphs. The existence of remaining core resources other than the target core resources indicates that all runnable first operator graphs within the runtime period have been determined, and the remaining core resources are insufficient to allocate to the first operator graphs to meet their configured runtime requirements. The second operator graph differs from the first operator graph; the second operator graph may not have configured runtime requirements and / or has no temporal relationship with any other operator graph.

[0043] The first operator graph that can run within a given time period is prioritized. If the remaining first operator graphs cannot run within that time period and there are remaining core resources available within that time period, then a second operator graph that can run within that time period is determined. During the matching process between time periods and operator graphs, the first operator graph has a higher priority than the second operator graph. If there are no remaining core resources within a given time period, then a second operator graph that can run within that time period is not checked.

[0044] By allocating core resources to the second operator graph when it is determined that there are remaining core resources, and determining that the second operator graph is an operator graph that runs on a running time period, a resource allocation method is provided to determine the running time period of the operator graph based on the priority of the operator graph. This improves the flexibility of resource allocation and can meet diverse allocation needs.

[0045] Optionally, at least two first operator graphs in the first operator graph group have different running time periods, and two first operator graphs that are temporally adjacent have the same or adjacent running time periods.

[0046] Two operator graphs with a temporal relationship have data dependencies. If at least two operator graphs with a temporal relationship run in different time periods, intermediate data from the previous time period needs to be retained until the next time period or more. This results in storing a large amount of intermediate data, consuming excessive storage resources, and wasting storage resources. Therefore, placing operator graphs with a temporal relationship in the same time period or in two adjacent time periods can reduce the storage time of intermediate data, reuse storage space, release intermediate data storage resources in a timely manner, and improve the utilization rate of storage resources.

[0047] It should be noted that the serial timing relationship between two operator graphs with a serial timing relationship corresponds to the timing of the running time period. For example, the operator graph with the earlier timing relationship runs in the running time period with the earlier timing relationship, while the operator graph with the later timing relationship runs in the running time period with the later timing relationship.

[0048] By placing operator graphs with temporal relationships in the same runtime period or in two adjacent runtime periods, the storage time of intermediate data can be reduced, storage resources for intermediate data can be released in a timely manner, and the utilization rate of storage resources can be improved.

[0049] Optionally, determining the running time period of each first operator graph in the first operator graph group to be run in the many-core system based on the running requirement information of each first operator graph in the first operator graph group includes: for the currently processed running time period, selecting the current operator graph among the currently to-be-allocated first operator graphs in the first operator graph group; if it is determined that the running data of the current operator graph in the currently processed running time period meets the performance conditions, then the currently processed running time period is determined as the running time period of the current operator graph to be run in the many-core system; returning to the operation of selecting the current operator graph among the currently to-be-allocated first operator graphs in the first operator graph group; returning to the operation of selecting the current operator graph among the currently to-be-allocated first operator graphs in the first operator graph group, until it is determined that the operator graph with the earlier timing does not meet the performance conditions; if it is determined that the operator graph with the earlier timing does not meet the performance conditions, and / or it is determined that there are no remaining core resources other than the target core resource, then the verification of the first operator graph for the currently processed running time period ends.

[0050] The runtime cycle can be divided into runtime periods, and once a runtime period is determined, that runtime period is designated as the currently processed runtime period. The first operator graphs currently awaiting allocation in the first operator graph group refer to the first operator graphs other than those running within the already allocated runtime periods (including the currently processed runtime period), i.e., the first operator graphs without allocated runtime periods. Selecting the current operator graph can mean choosing the first operator graph with the highest priority among the currently awaiting allocation. Within the currently processed first operator graph group, the first operator graphs with allocated runtime periods (belonging to the same group) and the currently awaiting allocation (belonging to the same group) have a temporal relationship. Therefore, the current operator graph can be selected sequentially according to the temporal order among the first operator graphs in the first operator graph group.

[0051] The runtime data describes the performance of the current operator graph within the current processing runtime period. Performance conditions determine whether the runtime data of the current operator graph meets the configured runtime requirements. If the runtime data of the current operator graph meets the performance conditions, it means that the current operator graph can meet the configured runtime requirements within the current processing runtime period, and therefore, the current operator graph can be placed for execution within the current processing runtime period. If the current operator graph does not meet the performance conditions, it means that the current operator graph does not meet the configured runtime requirements within the current processing runtime period, and therefore, the current operator graph cannot be placed for execution within the current processing runtime period. Regardless of whether the current operator graph meets the performance conditions, the next current operator graph is selected after the determination. If the current operator graph does not meet the performance conditions, it means that the current operator graph cannot meet the configured runtime requirements within the current processing runtime period. The current processing runtime period verifies and allocates resources to the first operator graph sequentially. If a higher-priority first operator graph cannot meet the configured runtime requirements, a lower-priority first operator graph cannot be verified or allocated resources. If there are no remaining core resources other than the target core resources, it indicates that the unallocated remaining core resources in the runtime are insufficient to run the remaining first operator graph. In this case, the current processing runtime cannot support the first operator graph. If the current operator graph does not meet the performance conditions and / or it is determined that there are no remaining core resources other than the target core resources, it indicates that the remaining first operator graph cannot be verified. Therefore, the verification of the first operator graph for the current processing runtime ends. If there are multiple first operator graph groups, the verification of the first operator graph in the current processing first operator graph group for the current processing runtime ends, and the verification of the first operator graph in the next first operator graph group can proceed.

[0052] By sequentially selecting the first operator graph for the current processing time period and checking whether the performance conditions can be met, the goal is to place as many first operator graphs as possible while taking into account the operational requirements, rationally allocate resources, and improve the resource utilization of the many-core system.

[0053] Optionally, selecting the current operator graph from the current first operator graphs to be assigned in the first operator graph group includes: selecting the first operator graph with the earlier timing according to the timing relationship of the current first operator graphs to be assigned in the first operator graph group, and determining it as the current operator graph.

[0054] In a serial timing relationship, if the output of one first operator graph is the input of another first operator graph, then the first operator graph with the earlier timing is the first operator graph of the output result. If the two first operator graphs are dependent on the same data, the first operator graph with the earlier timing can be either of the two first operator graphs.

[0055] It should be noted that the aforementioned determination that the current operator graph does not meet the performance conditions includes: determining that the first operator graph with a preceding time sequence does not meet the performance conditions. In the current first operator graph to be assigned, the second operator graph depends on the output of the first operator graph with a preceding time sequence. If the second operator graph runs during the current processing time period, while the first operator graph with a preceding time sequence does not run during the current processing time period, the second operator graph cannot obtain an output result and therefore cannot run correctly. Therefore, when it is determined that the first operator graph with a preceding time sequence does not meet the performance conditions, the verification of the first operator graph for the current processing time period can be terminated. Furthermore, in parallel timing relationships, the number of first operator graphs with a preceding time sequence includes at least two, and correspondingly, the number of current operator graphs includes at least two.

[0056] By prioritizing the allocation of the first operator graph with the earlier timing sequence, the first operator graph with a later timing sequence can obtain the output results of the first operator graph with the earlier timing sequence, thereby improving the accurate operation of the first operator graph and enhancing the stability of the many-core system.

[0057] Optionally, determining the target core resources for running each first operator graph in the first operator graph group within the running time period includes: determining the remaining core resources for the current running time period based on the core resources that can be allocated by the many-core system and the core resources already allocated for the current running time period; and allocating core resources for the current operator graph that meets the performance conditions from the remaining core resources for the current running time period.

[0058] Allocable core resources refer to the cores that a many-core system can allocate to operator graph computation. The core resources already allocated for the current processing runtime refer to the sum of the target core resources for the first operator graph running during the current processing runtime. Remaining core resources refer to the core resources that can be allocated to a new first operator graph allocated for the current processing runtime. Remaining core resources equal the difference between the allocable core resources and the core resources already allocated for the current processing runtime. A current operator graph that meets the performance conditions refers to a new first operator graph running during the current processing runtime. Allocating core resources to the current operator graph can be done by determining the target sub-core resources corresponding to each operator graph in the operator graph group sequentially from the allocable core resources, based on the resource allocation type. Resource allocation types can include high-performance, energy-saving, or balanced types.

[0059] By calculating the remaining core resources and allocating core resources to the current operator graph that meets the performance conditions, resources can be accurately allocated to the first operator graph newly allocated during the current processing time period. This provides an accurate, flexible and controllable core resource allocation method, which can accurately allocate time resources and core resources to the first operator graph.

[0060] Optionally, the running data includes running speed, and the running requirement information includes running requirement speed; determining that the running data of the current operator graph meets the performance conditions within the current processing running time period includes: if the running speed is greater than or equal to the running requirement speed, then determining that the current operator graph meets the performance conditions.

[0061] The running data refers to the average speed of the current operator graph within its allocated running time period, while the running requirement information refers to the required running speed. The average speed of the current operator graph is the speed at which the operator graph calculates the output data based on the received random data. The running requirement information can be divided into running requirement information for a single image and running requirement information for multiple images. In the running requirement information for a single image, the latency is not negligible, but it can be ignored for multiple images. The running requirement information in the above scheme can be the running requirement information for a period of time, not just for a single image.

[0062] If it is determined that the current operator graph's running speed is greater than or equal to the required running speed, then the current operator graph meets the performance conditions, meaning the running data within the running time period meets the running requirements. If it is determined that the current operator graph's running speed is less than the required running speed, and the current operator graph does not meet the performance conditions, meaning the running data within the running time period does not meet the running requirements, then...

[0063] By analyzing the actual running speed of the current operator graph and combining it with the required running speed, we can detect whether the current operator graph meets the performance conditions. This allows for precise control of the running cycle of each operator graph, flexible configuration of time-sharing reuse of core resources, and improved utilization of core resources.

[0064] Optionally, the operator graph resource allocation further includes: when determining multiple first operator graph groups, sequentially selecting the first operator graph groups and allocating a running time period to each operator graph in the selected first operator graph.

[0065] There is no temporal relationship between any first operator graphs in different first operator graph groups. The first operator graphs in different first operator graph groups are independent of each other, and a first operator graph group can be selected sequentially to allocate runtime periods to the included first operator graphs individually. A first operator graph in the same first operator graph group has a temporal relationship with at least one first operator graph in that group. Prioritizing the allocation of runtime periods to first operator graphs within the same group ensures that the runtime periods of two temporally adjacent first operator graphs are the same or adjacent, thereby reducing the storage and time resources occupied by intermediate results in the many-core system. By sequentially selecting first operator graph groups and allocating runtime periods to the included first operator graphs individually, runtime periods can be accurately allocated to each first operator graph based on temporal relationships. This reduces the loss of transporting intermediate results between first operator graphs with temporal relationships, rationally allocates runtime periods, and improves the operating efficiency of the many-core system.

[0066] Optionally, a running cycle may include multiple running time periods, with at least two running time periods having different durations.

[0067] The runtime cycle can be divided into multiple runtime periods to enable time-sharing reuse of operator graphs in a many-core system. The start time of the runtime cycle can be defined as the start time of the first runtime period, and the preset duration can be defined as the duration of the first runtime period. Based on the start time and duration of the first runtime period, the first runtime period can be determined within the runtime cycle. The preset duration can be determined based on the runtime requirements of each first operator graph, or based on the average runtime of the first operator graphs as determined by experimental statistics, or by calculating the ratio between the runtime cycle and the number of groups formed by the currently unassigned first operator graphs. Except for the first runtime period, the division of other runtime periods is determined by the duration determined by the number of groups and the remaining duration, as well as the end time of the last runtime period in the time series. The number of groups is used to divide the remaining duration. The number of groups can be calculated by comparing the number of currently unassigned first operator graphs to the number of first operator graphs within a preset group. For example, the number of first operator graphs within a group is 2, and the number of first operator graphs to be assigned is 8, so the number of groups is 8 / 2 = 4. The difference between the running cycle and the sum of the durations of each of the divided running time segments is calculated to determine the remaining duration. The ratio of the remaining duration to the number of groups is determined as the minute duration. In the previous example, with 4 groups and 8 minutes remaining, the minute duration is determined to be 8 / 4 = 2 minutes. The end point of the last running time segment in the divided running time segments is used as the starting point of the running time segments excluding the first segment, and based on the minute duration, the running time segments excluding the first segment are determined within the running cycle.

[0068] Typically, based on the aforementioned defined runtime periods, the duration of runtime periods that occur earlier in the time sequence is greater than the duration of runtime periods that occur later in the time sequence. The first runtime period usually has the longest duration, and subsequent runtime periods, subdivided according to the number of remaining operator graphs, generally become progressively shorter.

[0069] By configuring a running cycle to include multiple running time periods, and configuring at least two running time periods to have different durations, the running time periods can be flexibly adjusted to adapt to the running configuration requirements of the first operator graph.

[0070] Optionally, determining the second operator graph from the operator graph includes: obtaining the priority of the remaining operator graphs in the operator graphs other than the first operator graphs included in each of the first operator graph groups; and determining the second operator graph in the remaining operator graphs according to the priority order.

[0071] The operator graph includes not only the first operator graph but also other operator graphs. Operator graphs can be selected sequentially according to priority, determining whether they are the second operator graph, and verifying the second operator graph for the current processing time period.

[0072] By prioritizing the remaining operator graphs, operator graphs are selected sequentially to determine whether they are the second operator graphs. Verification is performed for each runtime period where there are remaining core resources. Based on requirements, the second operator graphs running in the runtime period can be flexibly verified to maximize the number of operator graphs running in the runtime period and improve resource utilization.

[0073] Optionally, determining the second operator graph in the remaining operator graphs according to priority order includes: when at least one third operator graph exists, sequentially determining whether the third operator graph is the second operator graph, wherein the third operator graph is configured with runtime requirement information and has no temporal relationship with other operator graphs; when there is no third operator graph or after the third operator graph is determined, the current remaining core resources are not empty and at least one fourth operator graph exists, determining the fourth operator graph as the second operator graph, wherein the fourth operator graph is not configured with runtime requirement information and has a temporal relationship with at least one operator graph; when there is no fourth operator graph or after the fourth operator graph is determined, the current remaining core resources are not empty and at least one fifth operator graph exists, determining the fifth operator graph as the second operator graph, wherein the fifth operator graph is not configured with runtime requirement information and has no temporal relationship with other operator graphs.

[0074] The order of evaluation for the second operator graph is: third operator graph, fourth operator graph, and fifth operator graph. Specifically, operator graphs with runtime requirement information are evaluated first, followed by those with temporal relationships. In other words, excluding the first operator graph which has runtime requirement information and a temporal relationship, the third operator graph with runtime requirement information but no temporal relationship is evaluated first, then the fourth operator graph without runtime requirement information but with a temporal relationship is evaluated, and finally the fifth operator graph without runtime requirement information and no temporal relationship is evaluated. The second operator graph is any operator graph other than the first operator graph that can run within the current processing time period.

[0075] When a third operator graph exists, it is first determined whether each third operator graph is a second operator graph. If, based on the remaining core resources of the current processing time period, the running data obtained from running the third operator graph, and the running requirements configured for that third operator graph, the performance conditions are met, then that third operator graph is determined to be a second operator graph. Among the remaining core resources, the core resources for running that third operator graph are determined, and the remaining core resources are updated. If there are still remaining core resources, it is determined whether the next third operator graph is a second operator graph. If, based on the remaining core resources of the current processing time period, the running data obtained from running the third operator graph, and the running requirements configured for that third operator graph, the performance conditions are not met, then that third operator graph is determined not to be a second operator graph.

[0076] If a third operator graph does not exist, and the verification of the second operator graph for each third operator graph is complete, the remaining core resources are not empty, and a fourth operator graph exists, then the fourth operator graph is determined to be the second operator graph. Since the fourth operator graph does not contain runtime requirement information, it can run within the current processing runtime period as long as there are remaining core resources. For example, the number of remaining core resources is at least one. If a fourth operator graph does not exist or the current remaining core resources are empty, then the fourth operator graph is not the second operator graph. Determining the fourth operator graph as the second operator graph can be done sequentially. It should be noted that there is a temporal relationship between the fourth operator graphs, and the fourth operator graphs can be selected sequentially as the second operator graph based on this temporal relationship.

[0077] If a fourth operator graph does not exist or the verification of the second operator graph for each fourth operator graph is completed, the remaining core resources are not empty, and at least one fifth operator graph exists, then the fifth operator graph is determined to be the second operator graph. Since the fifth operator graph does not contain runtime requirement information, as long as there are remaining core resources in the current processing runtime, the fifth operator graph can run within that runtime. For example, the number of remaining core resources is at least one. If a fifth operator graph does not exist or the current remaining core resources are empty, then the fifth operator graph is not the second operator graph. Determining the fifth operator graph as the second operator graph can be done by randomly selecting it, where there is no temporal relationship between the fifth operator graphs, thus allowing for random selection.

[0078] By configuring the order of the second operator graphs, it is possible to determine whether each second operator graph is running within the current processing time period based on the requirements of the demand information and timing relationships. This allows for fine-grained control over the running time period of each second operator graph, enabling reasonable configuration of the many-core system's running time period, improving the utilization and flexibility of time resources, and reducing the waste of many-core system resources.

[0079] Optionally, determining whether the third operator graph is the second operator graph includes: obtaining the remaining core resources for the current processing time period; using the remaining core resources to run the third operator graph and obtaining the running data of the third operator graph; and determining the third operator graph as the second operator graph when the third operator graph meets the performance conditions based on the running data of the third operator graph and the corresponding running requirement information.

[0080] The remaining core resources are allocated to the second operator graph. The third operator graph is configured with runtime requirements information. Whether the third operator graph is the second operator graph can be determined by referring to whether the first operator graph meets the performance requirements. Running the third operator graph using the remaining core resources, the resulting runtime data, and the configured runtime requirements information can be used to determine whether the third operator graph meets the performance conditions. If the third operator graph meets the performance conditions, it is identified as the second operator graph; if it does not meet the performance conditions, it is determined that the third operator graph is not the second operator graph, and the next third operator graph can be verified. It should be noted that the core resources ultimately allocated to the third operator graph can be different from the remaining core resources. Optionally, the core resources ultimately allocated to the third operator graph are less than or equal to the remaining core resources. The remaining core resources are used to determine whether the maximum remaining capacity of the current processing runtime can meet the runtime requirements of the third operator graph. If even the maximum capacity cannot meet the requirements, it is determined that the current processing runtime cannot meet the runtime requirements of the third operator graph.

[0081] By using the remaining core resources of the current processing time period to run the third operator graph, the obtained running data and configured running requirements information are used to determine whether the third operator graph meets the performance conditions, so as to determine whether the third operator graph is the second operator graph. While meeting the running requirements information of the third operator graph, more operator graphs can be allocated to the running time period, thereby improving the resource utilization efficiency of the many-core system in the same running time period.

[0082] Optionally, the operator graph resource allocation method further includes: when it is determined that the first operator graph group does not exist, determining whether the operator graph includes a third operator graph; when at least one third operator graph exists, determining the running time period of each third operator graph to be run in the many-core system and the target core resources used to run each third operator graph in each running time period, based on the running requirement information of each third operator graph.

[0083] If the first operator graph group does not exist, the existence of a third operator graph is determined first. If a third operator graph exists, the runtime period for each third operator graph in the many-core system and the target core resources used to run each third operator graph within each runtime period are determined based on the runtime requirements information.

[0084] By configuring the allocation of runtime periods and core resources for the remaining operator graphs in the absence of a first operator graph group, the application scenarios of operator graph resource allocation can be enriched, adapting to different application needs, meeting diverse resource allocation requirements, and making resource allocation more flexible.

[0085] Example 2

[0086] Figure 2 This is a schematic diagram of an operator graph resource allocation device according to Embodiment 2 of the present invention. Embodiment 2 is a corresponding device for implementing the operator graph resource allocation method provided in the above embodiments of the present invention. This device can be implemented in software and / or hardware, and can generally be integrated into computer devices, specifically in many-core systems.

[0087] Operator graph acquisition module 210 is used to acquire the operator graph to be run on the many-core system;

[0088] The first operator graph group judgment module 220 is used to determine whether the operator graph includes a first operator graph group. The first operator graph group includes multiple first operator graphs, each of which is configured with runtime requirement information. There is a timing relationship between the multiple first operator graphs in the first operator graph group.

[0089] The first operator graph resource allocation module 230 is used to determine, when it is determined that the first operator graph group exists, the running time period to be run by each first operator graph in the first operator graph group in the many-core system and the target core resources used to run each first operator graph in the first operator graph group in each running time period, based on the running requirement information of each first operator graph in the first operator graph group.

[0090] This invention addresses the problem in existing technologies where full resource allocation for each operator graph leads to wasted core resources. By determining the running time period for each first operator graph and the target core resources used to run each first operator graph within each running time period when the operator graph includes a running requirement and has a temporal relationship with other first operator graphs, this invention solves the problem of wasted core resources caused by full resource allocation for each operator graph in existing technologies. It allows the first operator graphs to run in different time periods, providing a way to allocate time and core resources. This enables reasonable allocation of resources required by the operator graph and targeted resource allocation, improving resource utilization and reducing resource waste.

[0091] Furthermore, the device also includes: a second operator graph resource allocation module, used to determine a second operator graph from the operator graph for any given running time period when it is determined that there are remaining core resources other than the target core resources, so as to determine the core resources for running the second operator graph based on the remaining core resources, wherein the second operator graph is different from the first operator graph.

[0092] Furthermore, at least two first operator graphs in the first operator graph group have different running time periods, and two first operator graphs that are temporally adjacent have the same or adjacent running time periods.

[0093] Furthermore, the first operator graph resource allocation module 230 includes: a time period matching unit, used to select the current operator graph from the currently to be allocated first operator graphs in the first operator graph group for the current processing runtime; if it is determined that the running data of the current operator graph in the current processing runtime meets the performance conditions, then the current processing runtime is determined as the runtime to be run of the current operator graph in the many-core system; return to the operation of selecting the current operator graph from the currently to be allocated first operator graphs in the first operator graph group until it is determined that the current operator graph does not meet the performance conditions; if it is determined that the current operator graph does not meet the performance conditions, and / or it is determined that there are no remaining core resources other than the target core resource, then the verification of the first operator graph for the current processing runtime ends.

[0094] Furthermore, the time period matching unit includes: a time-priority allocation subunit, used to select the first operator graph with the earlier time sequence according to the time sequence relationship of each first operator graph to be allocated in the first operator graph group, and determine it as the current operator graph.

[0095] Furthermore, the first operator graph resource allocation module 230 includes: a remaining core resource allocation unit, used to determine the remaining core resources of the current processing time period based on the core resources that can be allocated by the many-core system and the core resources already allocated during the current processing time period; and to allocate core resources for the current operator graph that meets the performance conditions from the remaining core resources of the current processing time period.

[0096] Furthermore, the operating data includes operating speed, and the operating requirement information includes operating requirement speed; the time period matching unit includes: a performance detection subunit, used to determine that the current operator graph meets the performance conditions if the operating speed is greater than or equal to the operating requirement speed.

[0097] Furthermore, the device also includes: a first operator graph group sequential allocation module, used to sequentially select the first operator graph group when multiple first operator graph groups are determined, and to allocate a running time period to each operator graph in the selected first operator graph.

[0098] Furthermore, a running cycle includes multiple running time periods, with at least two running time periods having different durations.

[0099] Furthermore, the second operator graph resource allocation module includes: a second operator graph detection unit, used to obtain the priority of the remaining operator graphs in the operator graphs other than the first operator graphs included in each of the first operator graph groups; and to determine the second operator graph in the remaining operator graphs according to the priority order.

[0100] Furthermore, the second operator graph detection unit includes: a no-demand or no-timing-sequence operator graph allocation subunit, used to, when at least one third operator graph exists, sequentially determine whether the third operator graph is a second operator graph, wherein the third operator graph is configured with runtime requirement information and has no timing relationship with other operator graphs; when the third operator graph does not exist or after the determination of each third operator graph is completed, the current remaining core resources are not empty and at least one fourth operator graph exists, determine that the fourth operator graph is a second operator graph, wherein the fourth operator graph is not configured with runtime requirement information and has a timing relationship with at least one operator graph; when the fourth operator graph does not exist or after the determination of each fourth operator graph is completed, the current remaining core resources are not empty and at least one fifth operator graph exists, determine that the fifth operator graph is a second operator graph, wherein the fifth operator graph is not configured with runtime requirement information and has no timing relationship with other operator graphs.

[0101] Furthermore, the no-demand or no-time-sequence operator graph allocation subunit is specifically used for: obtaining the remaining core resources of the current processing time period; using the remaining core resources to run the third operator graph and obtaining the running data of the third operator graph; and determining the third operator graph as the second operator graph when the third operator graph meets the performance conditions based on the running data of the third operator graph and the corresponding running demand information.

[0102] Furthermore, the device also includes: a third operator graph allocation module, used to determine whether the operator graph includes a third operator graph when it is determined that the first operator graph group does not exist; and when at least one third operator graph exists, to determine the running time period of each third operator graph to be run in the many-core system and the target core resources used to run each third operator graph in each running time period, based on the running requirement information of each third operator graph.

[0103] The image generation apparatus described above can execute any of the operator graph resource allocation methods provided in the embodiments of the present invention, and has the corresponding functional modules and beneficial effects of the executed image generation method.

[0104] Example 3

[0105] Figure 3 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 3 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown. Figure 3 The computer device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0106] like Figure 3As shown, the computer device 12 is represented in the form of a general-purpose computing device. Components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing units 16). The computer device 12 may be a device connected to a bus.

[0107] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MCA) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0108] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0109] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 3 Not shown; commonly referred to as a "hard drive mechanic"). Although Figure 3Not shown, a disk drive may be provided for reading and writing to removable non-volatile disks (e.g., "floppy disks"), and an optical disc drive may be provided for reading and writing to removable non-volatile optical discs (e.g., compact disc read-only memory (CD-ROM), digital video disc read-only memory (DVD-ROM), or other optical media). In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0110] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.

[0111] Computer device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN) or wide area network (WAN)) via network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that although... Figure 3 As not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device movers, redundant processing units, external disk RAID (Redundant Arrays of Inexpensive Disks) systems, tape movers, and data backup storage systems.

[0112] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing an operator graph resource allocation method provided in any embodiment of the present invention.

[0113] Example 4

[0114] Embodiment 4 of the present invention provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the operator graph resource allocation method provided in all embodiments of the present application:

[0115] That is, when the program is executed by the processor, it performs the following: obtaining the operator graph to be run on the many-core system; determining whether the operator graph includes a first operator graph group, wherein the first operator graph group includes multiple first operator graphs, each first operator graph is configured with running requirement information, and there is a temporal relationship between the multiple first operator graphs in the first operator graph group; when it is determined that the first operator graph group exists, determining the running time period of each first operator graph in the first operator graph group to be run on the many-core system and the target core resources used to run each first operator graph in the first operator graph group within each running time period, based on the running requirement information of each first operator graph in the first operator graph group.

[0116] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, RAM, read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable CD-ROM, optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0117] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0118] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, radio frequency (RF), etc., or any suitable combination thereof.

[0119] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including LANs or WANs—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method of allocating resources to an operator graph, characterized by, The method includes: Obtain the operator graph to be run on the many-core system; Determine whether the operator graph includes a first operator graph group, wherein the first operator graph group includes multiple first operator graphs, each of which is configured with runtime requirement information, and there is a temporal relationship between the multiple first operator graphs in the first operator graph group; When it is determined that the first operator graph group exists, the running time period of each first operator graph in the first operator graph group to be run in the many-core system and the target core resources used to run each first operator graph in the first operator graph group in each running time period are determined according to the running requirement information of each first operator graph in the first operator graph group. In the first operator graph group, at least two first operator graphs have different running time periods, and two first operator graphs that are temporally adjacent have the same or adjacent running time periods; One operating cycle includes multiple operating time periods. The division of the operating time periods includes: determining the duration of the first operating time period based on the operating requirement information of each first operator graph; for other operating time periods besides the first operating time period, determining the sub-duration based on the number of groups and the remaining duration, wherein the number of groups is the ratio between the number of each first operator graph to be allocated and the number of first operator graphs in a preset group, the remaining duration is the difference between the duration of the operating cycle and the sum of the durations of each of the divided operating time periods, and the sub-duration is the ratio of the remaining duration to the number of groups.

2. The method of claim 1, wherein, The method further includes: For any given running time period, when it is determined that there are remaining core resources other than the target core resources, a second operator graph is determined from the operator graph of the many-core system, so as to determine the core resources used to run the second operator graph based on the remaining core resources, wherein the second operator graph is different from the first operator graph.

3. The method of claim 1, wherein, The step of determining the running time period for each first operator graph in the first operator graph group to be run in the many-core system based on the running requirement information of each first operator graph in the first operator graph group includes: For the current processing time period, select the current operator graph from the first operator graph group that is currently to be assigned; If it is determined that the running data of the current operator graph within the current processing time period meets the performance conditions, then the current processing time period is determined as the running time period to be run by the current operator graph in the many-core system; Return to the operation of selecting the current operator graph in each of the first operator graphs currently to be assigned in the first operator graph group, until it is determined that the current operator graph does not meet the performance conditions; If it is determined that the current operator graph does not meet the performance conditions, and / or it is determined that there are no remaining core resources other than the target core resource, then the verification of the first operator graph for the current processing time period ends.

4. The method of claim 3, wherein, Selecting the current operator graph from among the first operator graphs to be assigned in the first operator graph group includes: According to the timing relationship of each first operator graph to be assigned in the first operator graph group, the first operator graph with the earlier timing is selected in sequence and determined as the current operator graph.

5. The method of claim 3, wherein, The target core resources used to run each first operator graph in the first operator graph group within the determined running time period include: Based on the core resources that can be allocated in the many-core system and the core resources already allocated for the current processing time period, determine the remaining core resources for the current processing time period. From the remaining core resources of the current processing runtime, allocate core resources to the current operator graph that meets the performance conditions.

6. The method of claim 3, wherein, The operational data includes the operational speed, and the operational requirement information includes the operational requirement speed; Determining that the running data of the current operator graph meets the performance conditions within the current processing time period includes: If the running speed is greater than or equal to the required running speed, then the current operator graph is determined to meet the performance conditions.

7. The method according to claim 1, characterized in that, Also includes: When determining multiple first operator graph groups, the first operator graph groups are selected sequentially, and a running time period is assigned to each operator graph in the selected first operator graph group.

8. The method according to claim 1, characterized in that, in, A running cycle consists of multiple running time periods, with at least two running time periods having different durations.

9. The method according to claim 2, characterized in that, Determining the second operator graph from the operator graph of the many-core system includes: In the operator graph of the many-core system, the priority of the remaining operator graphs other than the first operator graphs included in each of the first operator graph groups is obtained; The second operator graph is determined in the remaining operator graph according to the priority order.

10. The method according to claim 9, characterized in that, The step of determining the second operator graph in the remaining operator graph according to priority order includes: When at least one third operator graph exists, it is sequentially determined whether the third operator graph is a second operator graph. The third operator graph is configured with running requirement information and has no timing relationship with any operator graph other than the third operator graph to be run in the many-core system. If the third operator graph does not exist or the determination of each third operator graph is completed, the remaining core resources are not empty, and there is at least one fourth operator graph, then the fourth operator graph is determined to be the second operator graph. The fourth operator graph is not configured with runtime requirement information and has a timing relationship with at least one other fourth operator graph. If there is no fourth operator graph or after verifying whether each of the fourth operator graphs is a second operator graph, the remaining core resources are not empty and there is at least one fifth operator graph, then the fifth operator graph is determined to be a second operator graph. The fifth operator graph is not configured with runtime requirement information and has no timing relationship with any operator graph other than the fifth operator graph to be run in the many-core system.

11. The method according to claim 10, characterized in that, The step of determining whether the third operator graph is a second operator graph includes: Obtain the remaining core resources for the current processing time period; The remaining core resources are used to run the third operator graph, and the running data of the third operator graph is obtained; When the third operator graph meets the performance conditions based on the running data and corresponding running requirements information of the third operator graph, the third operator graph is determined as the second operator graph.

12. The method according to claim 1, characterized in that, Also includes: If it is determined that the first operator graph group does not exist, determine whether the operator graph of the many-core system includes a third operator graph; When at least one of the third operator graphs exists, the running time period for each of the third operator graphs to be run in the many-core system and the target core resources used to run each of the third operator graphs in each running time period are determined based on the running requirement information of each of the third operator graphs.

13. An operator graph resource allocation device, characterized in that, Configured in a many-core system, the many-core system including allocable core resources for implementing the method as described in any one of claims 1-12, the apparatus comprising: The operator graph acquisition module is used to acquire the operator graph to be run on the many-core system. The first operator graph group determination module is used to determine whether the operator graph includes a first operator graph group. The first operator graph group includes multiple first operator graphs, each of which is configured with runtime requirement information. There is a temporal relationship between the multiple first operator graphs in the first operator graph group. The first operator graph resource allocation module is used to determine, when it is determined that the first operator graph group exists, the running time period to be run by each first operator graph in the first operator graph group in the many-core system and the target core resources used to run each first operator graph in the first operator graph group in each running time period, based on the running requirement information of each first operator graph in the first operator graph group. In the first operator graph group, at least two first operator graphs have different running time periods, and two first operator graphs that are temporally adjacent have the same or adjacent running time periods.

14. A computer 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, it implements the operator graph resource allocation method as described in any one of claims 1-12.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the operator graph resource allocation method as described in any one of claims 1-12.

Citation Information

Patent Citations

  • Computing resource allocation method and device

    CN110138838A

  • Data exchange method and device based on many-core architecture

    CN112631982A