Task distribution method, device, system, equipment, medium and product
By parsing and distributing tasks to task controllers within the same Die or load-balanced Die, the problem of limited cross-Die access bandwidth is solved and chip performance is improved.
Patent Information
- Application Number
- CN202410985593.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-13
AI Technical Summary
In the existing technology, task distribution involves cross-Die access, and the cross-Die data transmission bandwidth of multi-Die chips is limited, resulting in reduced chip performance.
By obtaining the memory mode of the task to be distributed and the multi-Die chip, the source address and destination address of the task to be distributed are parsed. If they belong to the same Die, they are directly distributed to the task controller in the corresponding Die; if they are different Dies, the load balancing algorithm selects the one with the higher load based on the load balancing algorithm. Distribute through light Die, and split the task into sub-tasks for distribution in inter-Die address interleaving mode.
It reduces unnecessary cross-Die data transmission, saves cross-Die data transmission bandwidth, and avoids chip performance degradation.
Smart Images

Figure CN118642857A
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip hardware architecture technology, and in particular to a task distribution method, device, system, equipment, medium and product. Background Art
[0002] With the rapid development of big data computing and artificial intelligence, the complexity of System on Chip (SoC) with similar functions has increased accordingly. In order to ensure the miniaturization and integration of SoC, SoC needs to be divided into several smaller modules, namely Die (bare chip).
[0003] DMA task distribution refers to transferring data from a device directly to the memory through the DMA controller without CPU intervention, which can reduce the burden on the CPU and improve the performance efficiency of the system. However, task distribution involves cross-die access. The cross-die data transmission bandwidth of multi-die chips is limited. Too much data accessed across dies will cause chip performance to deteriorate. Summary of the invention
[0004] The present application provides a task distribution method, apparatus, system, equipment, medium and product to solve the defects in the prior art that task distribution involves cross-die access, the cross-die data transmission bandwidth of multi-die chips is limited, and too much data accessed across dies will lead to a decrease in chip performance.
[0005] In the first aspect, the present application provides a task distribution method, including: obtaining the task to be distributed and the memory mode of a multi-Die chip used to execute the task to be distributed; if the memory mode of the multi-Die chip is an intra-Die address interleaving mode, parsing the task to be distributed to determine the source address and destination address corresponding to the task to be distributed; distributing the task to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0006] As an embodiment, after parsing the task to be distributed and determining the source address and destination address corresponding to the task to be distributed, it also includes: based on a load balancing algorithm, distributing the task to be distributed whose source address and destination address belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address.
[0007] As an embodiment, the load balancing algorithm is used to distribute the tasks to be distributed whose source address and destination address belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address, including: obtaining the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address, and using the task controller in the Die with less load as the target Die task controller; and distributing the tasks to be distributed to the task controller in the target Die.
[0008] As an embodiment, it also includes: if the memory mode of the multi-Die chip is the inter-Die address interleaving mode, the task to be distributed is divided into at least one subtask according to the address interleaving granularity, and the subtask is distributed to all the task controllers in the Die in sequence according to the inter-Die address interleaving mode.
[0009] As an embodiment, the task to be distributed includes a direct memory access DMA task, and the multi-Die chip includes a consistent memory access UMA chip.
[0010] In the second aspect, the present application also provides a task distribution device, including: an acquisition module, used to obtain the task to be distributed and the memory mode of the multi-Die chip used to execute the task to be distributed; a determination module, used to parse the task to be distributed if the memory mode of the multi-Die chip is the intra-Die address interleaving mode, and determine the source address and destination address corresponding to the task to be distributed; a distribution module, used to distribute the task to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0011] In a third aspect, the present application also provides a task distribution system, including multiple Die chips and a task distribution module provided in any Die, wherein the task distribution module is used to execute any of the task distribution methods described above.
[0012] In a fourth aspect, the present application also provides an electronic device, comprising 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 task distribution method described in any one of the above is implemented.
[0013] In a fifth aspect, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the task distribution methods described above.
[0014] In a sixth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the task distribution methods described above.
[0015] The task distribution method, apparatus, system, equipment, medium and product provided in the present application obtain the task to be distributed and the memory mode of the multi-Die chips used to execute the task to be distributed; if the memory mode of the multi-Die chips is the intra-Die address interleaving mode, the task to be distributed is parsed to determine the source address and destination address corresponding to the task to be distributed; the task to be distributed whose source address and destination address belong to the same Die is distributed to the intra-Die task controller corresponding to the source address and the destination address. The present application can reduce unnecessary cross-Die transmissions, save cross-Die data transmission bandwidth, and avoid chip performance degradation by parsing the task to be distributed and distributing the task to be distributed whose source address and destination address belong to the same Die to the corresponding intra-Die task controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a flowchart of the existing task distribution method.
[0018] Figure 2 It is a flowchart of the task distribution method provided by this application.
[0019] Figure 3 It is a schematic diagram of a multi-Die chip with an intra-Die address interleaving mode provided by the present application.
[0020] Figure 4 It is a schematic diagram of a multi-Die chip with an inter-Die address interleaving mode provided by the present application.
[0021] Figure 5 It is a structural diagram of the task distribution device provided by this application.
[0022] Figure 6 It is a structural diagram of the task distribution system provided by this application.
[0023] Figure 7 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0026] Figure 1 It is a flowchart of the existing task distribution method, such as Figure 1 As shown in the figure, the existing task distribution method is usually that the task distribution module (Dispatch) distributes tasks to different chips or Dies within a chip according to the polling algorithm or the method specified by the software. The round robin algorithm is a load balancing algorithm that distributes requests to each chip or Die within a chip in turn to ensure that each chip or Die within a chip can process task requests evenly. Each time a task request is received, the task distribution module will distribute the task request to different chips or Dies within a chip in a pre-set order. The polling algorithm is simple and easy to implement, and is suitable for situations where the number of chips or Dies within a chip is relatively small and the load balancing requirements are not very high. If the data in a die is copied using the DMA controller of another die, cross-die data transfer will occur. For example, the task distribution module distributes the received tasks to Die0 and Die1 in the chip in sequence. The task received by Die0 is to copy the data of Die1's mb1_1 to mb1_0, and the task received by Die1 is to copy the data of Die0's mb1_1 to mb1_0. Then, Die0 needs to read the data of Die1's mb1_1 and then write it to Die1's mb1_0. Two cross-die data transfers occur. Die1 needs to read the data of Die0's mb1_1 and then write it to Die0's mb1_0. Two cross-die data transfers occur. The cross-die data transfer bandwidth of multi-die chips is relatively limited. Too much cross-die data will lead to performance degradation.
[0027] To this end, the present application provides a technical solution that can reduce unnecessary cross-die data transmission. Figure 2-Figure 7 The task distribution method, device, system, equipment, medium and product provided in this application are described in detail.
[0028] Figure 2It is a flowchart of the task distribution method provided by this application, such as Figure 2 As shown, the present application provides a task distribution method, which at least includes the following steps S100 to S300.
[0029] Step S100, obtaining the tasks to be distributed and the memory mode of the multi-Die chip used to execute the tasks to be distributed; optionally, the tasks to be distributed include direct memory access DMA tasks, and the multi-Die chips include consistent memory access UMA chips. UMA chips are multi-functional chips that integrate graphics processing units (GPUs), and are commonly used in mobile devices, tablet computers, laptop computers and other products. UMA chips integrate central processing units (CPUs) and GPUs on the same chip, providing higher performance and more energy-efficient power consumption management. Compared with traditional independent GPUs, UMA chips can better optimize the utilization of system resources, provide smoother graphics performance and higher performance. UMA chips improve device performance while reducing size and weight, which helps to design thinner and lighter devices.
[0030] The memory modes of multi-die chips include intra-die address interleaving mode and inter-die address interleaving mode, which are distinguished by the memory address sorting method of the die. The intra-die address interleaving mode means that the memory addresses of the dies are continuous, and the inter-die address interleaving mode means that the memory addresses between adjacent dies are continuous.
[0031] Step S200: If the memory mode of the multi-Die chip is the intra-Die address interleaving mode, the task to be distributed is parsed to determine the source address and the destination address corresponding to the task to be distributed.
[0032] Figure 3 Schematic diagram of a multi-Die chip with an intra-Die address interleaving mode provided by the present application, such as Figure 3 As shown, the address of each Die is continuous. The memory address of the first Die is 0~(n+1)s, the memory address of the second Die is (n+1)s~(2n+2)s, the memory address of the third Die is (2n+2)s~(3n+3)s, and so on.
[0033] The format of the received task to be distributed is source address Src address, destination address Dst address, task size Size, and a separator can be set between the source address, the destination address and the task size. The step of parsing the task to be distributed includes identifying the separator of the task to be distributed, taking the content before the first separator as the source address, taking the content between the first separator and the second separator as the destination address, and taking the content after the second separator as the task size.
[0034] After parsing the source address and the destination address from the task to be distributed, the source address and the destination address can be compared with the preset memory address of each Die to determine whether the source address and the destination address are in the same Die. If so, execute step S300.
[0035] Step S300: Distribute the to-be-distributed tasks whose source address and destination address belong to the same Die to task controllers in the Die corresponding to the source address and the destination address.
[0036] Specifically, if the source address and the destination address belong to the same Die, the task to be distributed is distributed to the intra-Die task controller of the Die. The intra-Die task controller is used to execute the received task. If the task to be distributed is a DMA task, the intra-Die task controller is the intra-Die DMA controller.
[0037] It can be understood that the present application parses the tasks to be distributed and distributes the tasks to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller of the Die to which they belong, thereby reducing unnecessary cross-Die transmissions, saving cross-Die data transmission bandwidth, and avoiding chip performance degradation.
[0038] Based on the above embodiment, as an optional embodiment, after parsing the task to be distributed and determining the source address and destination address corresponding to the task to be distributed, step S400 is also included. The order of step S400 and step S300 can be adjusted, and this application does not limit this.
[0039] Step S400: Distribute the to-be-distributed tasks whose source addresses and destination addresses belong to different Dies to a task controller in a target Die corresponding to the source address or the destination address based on a load balancing algorithm.
[0040] The load balancing algorithms used in the embodiments of the present application include a polling algorithm, a weighted polling algorithm, a least connection algorithm, a shortest response time algorithm, and a consistent hashing algorithm. The polling algorithm distributes requests to each DMA controller in order, and each request is distributed to different DMA controllers in turn in a cycle; the weighted polling algorithm introduces weights on the basis of polling, and distributes requests according to the weights of the DMA controllers. DMA controllers with higher weights will receive more requests, which is suitable for situations where DMA controllers have uneven performance. The least connection algorithm distributes requests to the DMA controller with the least current connections, which can effectively avoid the situation of overloaded connections and improve the response speed of the system. The shortest response time algorithm distributes requests to the DMA controller with the shortest response time, which can improve the overall response speed of the system. The consistent hashing algorithm distributes requests to DMA controllers according to a hash function, while maintaining load balancing and dynamic expansion of DMA controllers.
[0041] In an optional implementation, the DMA controller includes multiple channels, each channel is used to manage a data transfer process, and each channel can independently configure, start and monitor data transfer operations. The DMA controller may include several first channels and several second channels, the first channel is used to perform the task of data transfer within a Die, and the second channel is used to perform the task of data transfer between Dies. Distributing the tasks to be distributed whose source address and destination address belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address based on a load balancing algorithm specifically refers to distributing the tasks to be distributed whose source address and destination address belong to different Dies to the second channel of the task controller in the target Die corresponding to the source address or the destination address based on a load balancing algorithm.
[0042] In an optional implementation, the load ratio between the first channel and the second channel can be calculated. If the load ratio reaches a first preset value, part of the second channel can be temporarily converted to the first channel according to the load ratio. If the load ratio reaches a second preset value, part of the first channel can be temporarily converted to the second channel according to the load ratio. The first preset value is less than the second preset value. Through flexible conversion between the first channel and the second channel, the utilization rate of the task controller in the Die can be effectively improved.
[0043] It can be understood that the present application distributes DMA data to different DMA controllers according to the source address and destination address to reduce unnecessary cross-Die transmission, save cross-Die data transmission bandwidth, and avoid chip performance degradation.
[0044] Based on the above embodiment, as an optional embodiment, the load balancing algorithm is used to distribute the tasks to be distributed whose source address and destination address belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address, including steps S410-S420.
[0045] Step S410, obtain the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address, and use the task controller in the Die with less load as the target task controller in the Die; obtaining the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address specifically refers to obtaining the load information of the second channel of the task controller in the Die corresponding to the source address and the load information of the second channel of the task controller in the Die corresponding to the destination address, and using the task controller in the Die with less load as the target task controller in the Die, so as to achieve load balancing.
[0046] Step S420: distribute the task to be distributed to the task controller in the target Die. The task controller in the target Die is used to execute the task.
[0047] It can be understood that the present application obtains the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address, and uses the task controller in the Die with less load as the target task controller in the Die. Only one cross-Die data transmission is required. Compared with the existing method of selecting the target Die task controller from the Die that is not the source address and the destination address, this can reduce unnecessary cross-Die transmissions, save cross-Die data transmission bandwidth, and avoid chip performance degradation.
[0048] On the basis of the above embodiments, as an optional embodiment, the task distribution method provided by the present application further includes step S500. The order of step S500 and step S300 can be adjusted, and the present application does not limit this.
[0049] Step S500: If the memory mode of the multi-die chip is the inter-die address interleaving mode, the task to be distributed is divided into at least one subtask according to the address interleaving granularity, and the subtask is distributed to all intra-die task controllers in sequence according to the inter-die address interleaving mode. Optionally, if the task to be distributed is a DMA task, the subtask is a DMA subtask.
[0050] Figure 4 Schematic diagram of a multi-die chip with an inter-die address interleaving mode provided by the present application, such as Figure 4As shown, the memory addresses of the multi-Die chip are interleaved between all the Dies of the entire chip. Taking two Dies as an example, assuming that the two Dies are interleaved with a granularity of size = s, the task is divided into multiple small tasks with a granularity of size = s and distributed to Die0 and Die1, and small tasks such as 0~s, 2s~3s, 4s~5s are distributed to the task controller of Die0, and small tasks such as s~2s, 3s~4s, 5s~6s are distributed to the task controller of Die1. It should be noted that the embodiment of the present application takes 2 Dies as an example for explanation, and does not limit the number of Dies of the chip to 2. The number of Dies of a multi-Die chip can be multiple.
[0051] Optionally, the format of the task to be distributed is source address Src address, destination address Dst address, task size Size. Splitting the task to be distributed into subtasks, and distributing the subtasks to the task processors in Die can be expressed as Src0address dst0 address, size0 ->Die0 DMA; Src1 address dst1 address, size1 ->Die1 DMA; Src2 address dst2 address, size2 ->Die0 DMA; Src3 address dst3address, size3 ->Die1 DMA, and so on.
[0052] In an optional embodiment, subtasks are preferentially distributed to the second channel of the task controller in the Die. If the second channel cannot process in time, at least part of the first channel is converted to the second channel to improve the task processing capability of the multi-Die chip.
[0053] It can be understood that the present application can realize parallel processing of tasks and improve the task processing rate by splitting the tasks to be distributed into subtasks and distributing the subtasks to all task controllers in the Die in sequence according to the inter-Die address interleaving mode.
[0054] The task distribution device provided in the present application is described below. The task distribution device described below and the task distribution method described above can be referenced to each other.
[0055] Figure 5 This is one of the structural diagrams of the task distribution device provided by this application, such as Figure 5 As shown, the present application also provides a task distribution device, including an acquisition module 510 , a determination module 520 and a distribution module 530 .
[0056] The acquisition module 510 is used to acquire the tasks to be distributed and the memory mode of the multi-die chips used to execute the tasks to be distributed.
[0057] The determination module 520 is used to parse the task to be distributed and determine the source address and destination address corresponding to the task to be distributed if the memory mode of the multi-Die chip is the intra-Die address interleaving mode.
[0058] The distribution module 530 is used to distribute the to-be-distributed tasks whose source address and destination address belong to the same Die to the task controllers in the Die corresponding to the source address and the destination address.
[0059] As an embodiment, after parsing the task to be distributed and determining the source address and destination address corresponding to the task to be distributed, the distribution module 530 is also used to: distribute the task to be distributed whose source address and destination address belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address based on a load balancing algorithm.
[0060] As an embodiment, the distribution module 530 is also used to: obtain the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address, and use the task controller in the Die with less load as the target task controller in the Die; and distribute the tasks to be distributed to the target task controller in the Die.
[0061] As an embodiment, the distribution module 530 is also used for: if the memory mode of the multi-Die chip is the inter-Die address interleaving mode, dividing the task to be distributed into at least one subtask according to the address interleaving granularity, and distributing the subtask to all the task controllers in all Dies in sequence according to the inter-Die address interleaving mode.
[0062] As an embodiment, the task to be distributed includes a direct memory access DMA task, and the multi-Die chip includes a consistent memory access UMA chip.
[0063] The task distribution device provided in the present application is used to implement the task distribution method provided in any of the above embodiments, and has the technical effect corresponding to the task distribution method, which will not be repeated here.
[0064] The task distribution system provided by the present application is described below. The task distribution system described below and the task distribution method and task distribution device described above can be referenced to each other.
[0065] Figure 6 It is a structural diagram of the task distribution system provided by this application, such as Figure 6As shown, the present application also provides a task distribution system, including multiple Die chips and a task distribution module provided in any Die, wherein the task distribution module is at least used to execute the task distribution method, which includes: obtaining the task to be distributed and the memory mode of the multiple Die chips used to execute the task to be distributed; if the memory mode of the multiple Die chips is an intra-Die address interleaving mode, parsing the task to be distributed to determine the source address and destination address corresponding to the task to be distributed; distributing the task to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0066] The task distribution module parses the received DMA task 0 and DMA task 1, and finds that the source address and destination address corresponding to DMA task 0 are both Die0, and the source address and destination address corresponding to DMA task 1 are both Die1, so DMA task 0 is distributed to the DMA controller of Die0 in the chip, and DMA task 1 is distributed to the DMA controller of Die1 in the chip. The task received by the DMA controller of Die0 is to copy the data of mb1_1 of Die0 to mb1_0, and the task received by the DMA controller of Die1 is to copy the data of mb1_1 of Die1 to mb1_0. Therefore, Die0 needs to read the data of mb1_1 of Die0 and then write it to mb1_0 of Die0. No data transmission across dies occurs. The DMA controller of Die1 needs to read the data of mb1_1 of Die1 and then write it to mb1_0 of Die1. No data transmission across dies occurs.
[0067] It is understandable that the DMA task distribution module (DMA Dispatch) of the present application parses the source address and destination address information of the DMA task according to the address interleaving mode, and reasonably distributes the DMA tasks to the DMA controllers of different dies to reduce cross-die DMA data copying.
[0068] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the task distribution method, which includes: obtaining the task to be distributed and the memory mode of the multi-Die chip used to execute the task to be distributed; if the memory mode of the multi-Die chip is the intra-Die address interleaving mode, parsing the task to be distributed to determine the source address and the destination address corresponding to the task to be distributed; distributing the task to be distributed whose source address and the destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0069] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0070] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the task distribution method provided by the above methods, which includes: obtaining the task to be distributed and the memory mode of the multi-Die chip used to execute the task to be distributed; if the memory mode of the multi-Die chip is the intra-Die address interleaving mode, parsing the task to be distributed to determine the source address and destination address corresponding to the task to be distributed; distributing the task to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0071] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the task distribution method provided by the above-mentioned methods. The method includes: obtaining the task to be distributed and the memory mode of the multi-Die chip used to execute the task to be distributed; if the memory mode of the multi-Die chip is the intra-Die address interleaving mode, parsing the task to be distributed to determine the source address and destination address corresponding to the task to be distributed; distributing the task to be distributed whose source address and destination address belong to the same Die to the intra-Die task controller corresponding to the source address and the destination address.
[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A task distribution method, characterized in that: include: Obtaining tasks to be distributed and memory modes of multi-die chips used to execute the tasks to be distributed; If the memory mode of the multi-Die chip is the intra-Die address interleaving mode, the task to be distributed is parsed to determine the source address and the destination address corresponding to the task to be distributed; The to-be-distributed tasks whose source address and destination address belong to the same Die are distributed to the task controllers in the Die corresponding to the source address and the destination address.
2. The task distribution method according to claim 1, characterized in that: After parsing the task to be distributed and determining the source address and the destination address corresponding to the task to be distributed, the method further includes: Based on a load balancing algorithm, the tasks to be distributed whose source addresses and destination addresses belong to different Dies are distributed to a task controller in a target Die corresponding to the source address or the destination address.
3. The task distribution method according to claim 1, characterized in that: The method of distributing the to-be-distributed tasks whose source addresses and destination addresses belong to different Dies to the task controller in the target Die corresponding to the source address or the destination address based on the load balancing algorithm includes: Obtaining the load information of the task controller in the Die corresponding to the source address and the load information of the task controller in the Die corresponding to the destination address, and taking the task controller in the Die with less load as the target task controller in the Die; Distribute the tasks to be distributed to the task controller in the target Die.
4. The task distribution method according to claim 1, characterized in that: Also includes: If the memory mode of the multi-Die chip is the inter-Die address interleaving mode, the task to be distributed is divided into at least one subtask according to the address interleaving granularity, and the subtask is distributed to all intra-Die task controllers in sequence according to the inter-Die address interleaving mode.
5. The task distribution method according to any one of claims 1 to 4, characterized in that: The tasks to be distributed include direct memory access (DMA) tasks, and the multi-die chips include consistent memory access (UMA) chips.
6. A task distribution device, characterized in that: include: An acquisition module, used for acquiring tasks to be distributed and memory modes of multi-die chips used for executing the tasks to be distributed; A determination module, configured to parse the task to be distributed and determine the source address and destination address corresponding to the task to be distributed if the memory mode of the multi-Die chip is the intra-Die address interleaving mode; The distribution module is used to distribute the to-be-distributed tasks whose source address and destination address belong to the same Die to the task controllers in the Die corresponding to the source address and the destination address.
7. A task distribution system, characterized in that: It comprises a plurality of Die chips and a task distribution module arranged in any Die, wherein the task distribution module is used to execute the task distribution method according to any one of claims 1 to 5.
8. An electronic device comprising 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 task distribution method according to any one of claims 1 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the task distribution method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the task distribution method according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
UCIe performance information acquisition method, core particle, chip and data processing equipment
CN121210276A
Uci e performance information acquisition method, core particle, chip, and data processing device
CN121210276B
Task scheduling method and processor
WO2026179754A1
