Computing chip system based on recombination and rearrangement

By introducing reorganization, rearrangement and error control modules into the computing chip system and dynamically adjusting the computing unit, the problems of insufficient flexibility and resource waste of traditional chips are solved, and efficient computing resource utilization and reliable computing results are achieved.

CN118550871APending Publication Date: 2024-08-27JIANGSU UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410599502.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional computing chips lack flexibility and adaptability and cannot effectively utilize computing resources, resulting in a waste of computing resources when processing complex artificial neural network tasks.

Method used

Design a computing chip system based on reorganization and rearrangement. Through the reorganization module, rearrangement module and error control module, the combination and path of computing units are dynamically adjusted to realize the skipping and reorganization of computing units and optimize the utilization of computing resources.

Benefits of technology

It improves the flexibility and adaptability of computing chips, reduces the waste of computing resources, and ensures computing reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550871A
    Figure CN118550871A
Patent Text Reader

Abstract

The invention provides a computing chip system based on recombination and rearrangement, which comprises a computing array, a recombination module, a rearrangement module and an error control module which are arranged on a chip, and is characterized in that the recombination module is used for making a decision of skipping or not skipping a computing unit and recombining the computing unit corresponding to a current computing task; the rearrangement module is used for rearranging calculation paths of all calculation units corresponding to the current calculation task, specifically, the calculation units are rearranged by adjusting calculation threads, so that the rearranged calculation units execute the current calculation task; and the error control module is used for respectively performing error analysis and estimation on the recombined calculation units and the rearranged calculation units to obtain error results, and controlling the error results. Therefore, by recombining and rearranging the calculation units in the calculation array, the calculation reliability can be ensured, the flexibility and adaptability are improved, the calculation resources are fully utilized, and the waste of the calculation resources is reduced or avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computing chips, and in particular to a computing chip system based on recombination and rearrangement. Background Art

[0002] Although relevant technologies have achieved certain results in the field of computing chips, there are still some shortcomings and limitations, including:

[0003] Limited flexibility and adaptability: Traditional computing chips usually use a fixed computing unit structure and cannot adapt to the flexible computing requirements of different tasks, which limits the flexibility and adaptability of the chip when processing complex artificial neural network tasks;

[0004] Waste of computing resources: In traditional computing chips, computing units and their connections are usually fixed, which cannot fully utilize computing resources. Summary of the invention

[0005] In order to solve one of the above-mentioned technical problems, the present invention proposes the following technical solution.

[0006] The first aspect of the present invention proposes a computing chip system based on recombination and reordering, comprising a computing array arranged on a chip, a recombination module, a reordering module and an error control module connected in sequence, wherein the recombination module, the reordering module and the error control module are all arranged on the control side of the computing array, the error control module is also connected to the recombination module, and the computing array includes multiple computing threads, each of which includes multiple computing units.

[0007] A reorganization module is used to determine the computing unit corresponding to the current computing task, and evaluate each computing unit corresponding to the current computing task, and make a decision to skip or not skip the computing unit according to the evaluation result to obtain a decision result, and skip or not skip the computing unit according to the decision result, and reorganize the computing units corresponding to the current computing task so that the reorganized computing units can perform the current computing task; a rearrangement module is used to reorder the computing paths of all computing units corresponding to the current computing task, specifically by adjusting the computing threads to achieve the reordering of the computing units, so that the reordered computing units can perform the current computing task; an error control module is used to perform error analysis and estimation on the reorganized computing units and the reordered computing units, respectively, to obtain error results, and control the error results.

[0008] In addition, the computing chip system based on recombination and rearrangement according to the above embodiment of the present invention may also have the following additional technical features.

[0009] According to one embodiment of the present invention, each computing thread independently executes computing tasks, and communicates and works in coordination with other computing threads to achieve parallel computing and data exchange.

[0010] According to one embodiment of the present invention, the recombination module comprises:

[0011] An acquisition unit is used to respectively acquire evaluation data of each computing unit corresponding to the current computing task; an evaluation unit is used to perform a feasibility evaluation and an error evaluation of skipping the computing unit based on the evaluation data of the computing unit to obtain an evaluation result; a decision unit is used to make a decision to skip or not skip the computing unit according to the evaluation result of the computing unit to decide the computing unit to be skipped; a skip unit is used to reorganize the computing units corresponding to the current computing task after completing the decision, specifically including removing the computing units to be skipped from the computing path to realize the skipping processing of the computing units; a reorganization unit is used to change a plurality of computing units of a first computing group that executes the current computing task into a plurality of computing units of a second computing group to realize the reorganization of the computing units corresponding to the current computing task, wherein the first computing group is different from the second computing group, and the change is made in the manner of swapping the position of the skipped computing unit and separating it from the original computing unit, or merging the skipped computing unit into the original computing unit.

[0012] According to one embodiment of the present invention, the evaluation data includes performance indicators and historical calculation results, the evaluation results include feasibility results and error values, and the decision unit is specifically used to: when the feasibility result in the evaluation result of the calculation unit is feasible and the error value is less than a limit value, decide that the calculation unit is a calculation unit that needs to be skipped; when the feasibility result in the evaluation result of the calculation unit is not feasible, or the error value is greater than or equal to the limit value, decide that the calculation unit is not a calculation unit that needs to be skipped.

[0013] According to one embodiment of the present invention, the computing chip system based on reorganization and rearrangement further includes an allocation module, which is used to allocate the skipped computing unit to a computing task other than the current computing task, so that the skipped computing unit can complete the loading and execution of the computing task other than the current computing task in advance. According to one embodiment of the present invention, the rearrangement module includes:

[0014] An analysis unit is used to analyze the computing load according to the input data and the properties of the current computing task to obtain a load analysis result; a monitoring unit is used to monitor the information of the computing unit corresponding to the current computing task in the computing array to obtain an information monitoring result; a design unit is used to design a dynamic mapping and reordering strategy according to the load analysis result and the information monitoring result; an operation unit is used to perform mapping and reordering operations on the computing unit corresponding to the current computing task in the computing array according to the dynamic mapping and reordering strategy, specifically including reordering the computing path according to the characteristics and conditions of the computing load and the performance of the computing unit, that is, by adjusting the computing thread, the execution order between the computing units is reordered.

[0015] According to one embodiment of the present invention, the rearrangement module also includes: an adjustment unit, which is used to monitor the utilization of computing resources during the calculation process, and dynamically adjust the dynamic mapping and rearrangement strategy when there is insufficient computing resources or uneven performance, specifically for pre-loading and executing a first computing task other than the current computing task in the skipped computing unit, and in the process of calculating the first computing task, if there is insufficient computing resources or uneven performance, the skipped computing unit is allocated to a second computing task other than the current computing task, so that the skipped computing unit can pre-load and execute the second computing task, wherein the second computing task is different from the first computing task.

[0016] According to one embodiment of the present invention, the error control module includes:

[0017] An estimation unit is used to perform error analysis and estimation on the reorganized computing unit and the rearranged computing unit respectively to obtain corresponding error results; a control unit is used to design an error control strategy according to the error results, and control the error results through the error control strategy, wherein the error control strategy includes: recalculating the error results exceeding the limit value; isolating and controlling the error results using an error propagation control strategy; or adjusting the strategies of the reorganization module and the rearrangement module for reorganization and rearrangement to optimize the selection and arrangement of the computing units.

[0018] According to one embodiment of the present invention, the error control module further includes:

[0019] A monitoring and correction unit is used to monitor the calculation results in real time during the calculation process, and determine whether the error value corresponding to the calculation result exceeds the set limit value. If so, the calculation result that produces the error is corrected until the error value does not exceed the limit value, which specifically includes replacing the calculation unit for recalculation, or correcting the calculation result through algorithm correction technology; a verification unit is used to verify the calculation result after the calculation is completed, and perform corresponding processing when the calculation result fails the verification, which specifically includes recalculating or adjusting the recombination and rearrangement strategies of the recombination module and the rearrangement module until the calculation result passes the verification.

[0020] The technical solution of the embodiment of the present invention can improve flexibility and adaptability while ensuring computing reliability by reorganizing and rearranging computing units in a computing array, making full use of computing resources and reducing or avoiding waste of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a block diagram of a computing chip system based on recombination and rearrangement according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] In view of the problems of limited flexibility and adaptability and waste of computing resources in related technologies, an embodiment of the present invention proposes a computing chip system based on reorganization and reordering to solve these problems. By reorganizing and reordering computing units, flexibility and adaptability are improved, and waste of computing resources can be reduced or avoided.

[0024] Among them, reorganization and reordering refers to the recombining and rearranging of computing units within the computing array to skip and rearrange the computing process of some computing units, so as to realize the computing processing of computing tasks through the reorganized and rearranged computing units, thereby solving the problems caused by the fixed computing units in related technologies, and can improve computing efficiency and computing performance.

[0025] Figure 1 It is a block diagram of a computing chip system based on recombination and rearrangement according to an embodiment of the present invention.

[0026] like Figure 1As shown, the system includes a computing array 1 arranged on a chip, a recombination module 2, a rearrangement module 3 and an error control module 4 which are connected in sequence, wherein the recombination module 2, the rearrangement module 3 and the error control module 4 are all arranged on the control side of the computing array 1, and the error control module 4 is also connected to the recombination module 2. The computing array 1 includes multiple computing threads (two are shown in the figure), each computing thread includes multiple computing units (two are shown in the figure), each computing thread can independently execute computing tasks, and communicate and work in collaboration with other computing threads to achieve parallel computing and data exchange.

[0027] The reorganization module 2 is used to determine the computing unit corresponding to the current computing task, and evaluate each computing unit corresponding to the current computing task, and make a decision to skip or not skip the computing unit according to the evaluation result to obtain a decision result, and skip or not skip the computing unit according to the decision result, and reorganize the computing unit corresponding to the current computing task so that the reorganized computing unit can perform the current computing task; the rearrangement module 3 is used to reorder the computing paths of all computing units corresponding to the current computing task, specifically by adjusting the computing threads to achieve the reordering of the computing units, so that the reordered computing units can perform the current computing task.

[0028] Among them, each computing unit supports different types of artificial neural networks, such as CNN (Convolutional Neural Network), DNN (Deep Neural Network), SNN (Spiking Neural Network), RNN (Recurrent Neural Network), FCNN (Fully Connected Neural Network) and Transformer neural network.

[0029] The computing array construction proposed in the embodiment of the present invention refers to building a computing array inside the chip as a core for executing the computing tasks of the artificial neural network. The specific construction process is as follows:

[0030] First, a computing array is built inside the computing chip as the core. The scale and structure of the computing array can be designed and configured according to specific needs to meet the requirements of different tasks and applications.

[0031] Computing array design: Design the scale and structure of the computing array according to specific needs and application scenarios. The computing array can be composed of multiple computing threads, each of which contains multiple computing units. The scale and structure of the computing array should take into account factors such as the complexity of the computing task, the availability of computing resources, and the physical limitations of the chip;

[0032] Computing thread configuration: Multiple computing threads are configured inside the computing array. Each computing thread can independently perform computing tasks and communicate and work together with other computing threads to achieve parallel computing and data exchange;

[0033] Computational unit setting: Multiple computational units are set inside each computational thread. The computational unit is the basic computational unit of the computational array and is used to perform specific computational operations, such as matrix multiplication, activation function, etc.

[0034] Computing unit interconnection: Within the computing array, computing units are connected through an internet network to form a communication and data transmission path between computing units. The interconnection method between computing units can be selected according to the specific architecture design, such as a two-dimensional grid structure, an interconnection network, etc.

[0035] Control logic design: Inside the computing array, control logic is designed to manage the allocation and execution of computing tasks. The control logic can include functions such as task scheduling, resource allocation, and computing unit status management. Specifically, it includes a reorganization module 2, a rearrangement module 3, and an error control module 4, which are used to realize dynamic mapping and rearrangement of the computing array, error control, and thus flexibly skip part of the computing processing.

[0036] Through the above-mentioned workflow of computing array construction, the chip architecture proposed in the embodiment of the present invention can construct a flexible and efficient computing array for executing the computing tasks of artificial neural networks, and support functions such as computing unit reorganization and dynamic mapping reordering, thereby realizing flexible skipping of part of the computing processing and improving the computing efficiency of the chip and the reliability of the computing results.

[0037] Specifically, when the chip system is required to perform a computing task, all computing tasks are first input into the computing array 1. The computing array 1 assigns corresponding computing units to each computing task according to the computing requirements. The reorganization module 2 determines a computing unit corresponding to a current computing task (any computing task among all computing tasks), and evaluates each computing unit corresponding to the current computing task respectively. A decision is made to skip or not skip the computing unit based on the evaluation result to obtain a decision result including which computing units need to be skipped. Then, some computing units are skipped or not skipped based on the decision result, and the computing units corresponding to the current computing task are reorganized so that the reorganized computing units can perform the current computing task.

[0038] The rearrangement module 3 rearranges the computation paths of all computation units (including skipped computation units or non-skipped computation units) corresponding to the current computation task to obtain a group of rearranged computation units, and the rearranged computation units are used to execute the current computation task.

[0039] The reorganization module 2 and the rearrangement module 3 may be executed simultaneously or successively. For example, after completing the reorganization of the computing units corresponding to the current computing task, the rearrangement module 3 performs the rearrangement.

[0040] In order to ensure the reliability of the calculation, error analysis and estimation are performed on the reorganized calculation units and the rearranged calculation units to obtain error results, and the error results are controlled to reduce the errors between the calculation units and the calculation units before reorganization and rearrangement. This can ensure the consistency of the calculation results or the controllability of the errors after reorganization and rearrangement, thereby ensuring the reliability and stability of the calculation results.

[0041] In an embodiment of the present invention, a skipping process is performed on a computing unit inside a computing array, and after the skipping process, a reorganization is performed to realize the reorganization of the computing unit. The computing units are also rearranged to realize the reordering of the computing paths of the computing units corresponding to the current computing task, that is, the execution order between the computing units. Error control can ensure the consistency or error controllability between the computing results obtained after the reorganization and reordering of the computing units and the computing results obtained by the computing units before the reorganization and reordering. While ensuring the computing reliability, a more flexible computing array mapping method can be realized, the computing efficiency can be improved, and the computing resources can be fully utilized to reduce or avoid the waste of computing resources.

[0042] Therefore, the computing chip system based on reorganization and reordering of the embodiment of the present invention can improve flexibility and adaptability while ensuring computing reliability by reorganizing and reordering computing units in the computing array, making full use of computing resources and reducing or avoiding waste of computing resources.

[0043] In one embodiment of the present invention, the reorganization module 2 may include an acquisition unit, an evaluation unit, a decision unit, a skip unit and a reorganization unit.

[0044] An acquisition unit is used to respectively acquire evaluation data of each computing unit corresponding to the current computing task; an evaluation unit is used to perform a feasibility evaluation and an error evaluation of skipping the computing unit based on the evaluation data of the computing unit to obtain an evaluation result; a decision unit is used to make a decision to skip or not skip the computing unit according to the evaluation result of the computing unit to decide the computing unit to be skipped; a skip unit is used to reorganize the computing units corresponding to the current computing task after completing the decision, specifically including removing the computing units to be skipped from the computing path to realize the skipping processing of the computing units; a reorganization unit is used to change a plurality of computing units of a first computing group that executes the current computing task into a plurality of computing units of a second computing group to realize the reorganization of the computing units corresponding to the current computing task, wherein the first computing group is different from the second computing group, and the change is made in the manner of swapping the position of the skipped computing unit and separating it from the original computing unit, or merging the skipped computing unit into the original computing unit.

[0045] Among them, the evaluation data includes performance indicators and historical calculation results.

[0046] Among them, the feasibility assessment refers to assessing whether skipping a calculation unit is feasible or infeasible, and the error assessment refers to assessing or estimating the error value between the calculation result obtained when skipping the calculation unit and the calculation result obtained when not skipping the calculation unit, that is, assessing the error size caused by skipping the calculation unit. Therefore, the assessment result includes the feasibility result and the error value.

[0047] Furthermore, the decision unit can be specifically used to: when the feasibility result in the calculation unit evaluation result is feasible and the error value is less than the limit value, decide that the calculation unit is a calculation unit that needs to be skipped; when the feasibility result in the calculation unit evaluation result is not feasible, or the error value is greater than or equal to the limit value, decide that the calculation unit is not a calculation unit that needs to be skipped.

[0048] The limit value refers to a threshold value set for the corresponding error value, which may be set in advance based on actual computing requirements and computing architecture to ensure that the error value is within an allowable or controllable range.

[0049] Specifically, within the computing array, the computing units corresponding to the current computing task are skipped and reorganized by the reorganization module 2 to dynamically adjust the positions of some computing units. Specifically, the embodiment of the present invention proposes a computing unit estimated skip evaluation mechanism, which evaluates the feasibility of skipping a certain computing unit and the size of the error caused by the calculation results of past data. According to the evaluation results, the computing unit can be skipped as a whole, thereby realizing flexible skipping of the computing unit structure and improving computing efficiency. The specific workflow is as follows:

[0050] Data acquisition: The acquisition unit obtains the evaluation data of each computing unit corresponding to the current computing task, such as historical (past) computing results and performance indicators;

[0051] Computational unit evaluation: For each computational unit, the evaluation unit evaluates the feasibility of skipping the computational unit and the size of the resulting error based on past computational results and performance indicators. The evaluation can be performed based on past computational results, error analysis, and performance indicators to obtain an evaluation result for the decision unit to decide whether to skip the computational unit.

[0052] Skip decision: The decision unit makes a skip decision based on the evaluation results. If the evaluation results show that it is feasible and the error value is less than the limit value, it means that skipping the calculation unit will not significantly affect the consistency of the calculation results or the error controllability, and can improve the calculation efficiency, then it can be decided that the calculation unit is a calculation unit that needs to be skipped; conversely, if the evaluation results show that it is not feasible or the error value is not less than the limit value, then it is decided that the calculation unit is not a calculation unit that needs to be skipped;

[0053] Computational unit skipping: After the skip decision is determined, the skip unit removes the computational unit to be skipped from the computational path according to the decision result, thereby realizing skip processing;

[0054] Computing unit reorganization: After skipping processing, the reorganization unit changes the multiple computing units of the first computing combination that execute the current computing task into multiple computing units of the second computing combination to realize the reorganization of the computing units corresponding to the current computing task, wherein the first computing grouping is different from the second computing grouping. The change method can be: swapping the position of the skipped computing unit and separating it from the original computing unit, or merging the skipped computing unit into the original computing unit.

[0055] Furthermore, the computing chip system based on reorganization and reordering may also include an allocation module for allocating skipped computing units to computing tasks other than the current computing task, so that the skipped computing units can complete the loading and execution of computing tasks other than the current computing task in advance.

[0056] In this embodiment, the rearrangement module 3 may include an analysis unit, a monitoring unit, a design unit and an operation unit.

[0057] The analysis unit is used to analyze the computing load according to the input data and the properties of the current computing task to obtain the load analysis result; the monitoring unit is used to monitor the information of the computing unit corresponding to the current computing task in the computing array to obtain the information monitoring result; the design unit is used to design the dynamic mapping and rearrangement strategy according to the load analysis result and the information monitoring result; the operation unit is used to map and rearrange the computing unit corresponding to the current computing task in the computing array according to the dynamic mapping and rearrangement strategy, specifically including rearranging the computing path according to the characteristics and conditions of the computing load and the performance of the computing unit, that is, by adjusting the computing thread, the execution order between the computing units is rearranged.

[0058] Furthermore, the rearrangement module 3 may also include an adjustment unit. The adjustment unit is used to monitor the utilization of computing resources during the computing process, and dynamically adjust the dynamic mapping and rearrangement strategies when there is insufficient computing resources or uneven performance, specifically to load and execute the first computing task other than the current computing task in advance in the skipped computing unit, and in the process of calculating the first computing task, if there is insufficient computing resources or uneven performance, the skipped computing unit is allocated to the second computing task other than the current computing task, so that the skipped computing unit can load and execute the second computing task in advance, wherein the second computing task is different from the first computing task.

[0059] Specifically, in order to fully utilize computing resources, the reordering module 3 can realize dynamic mapping and reordering of computing tasks. After completing skip processing and reorganization, there are unoccupied computing units in the computing array, and these computing units can be flexibly pre-arranged for other computing tasks (tasks other than the current computing tasks) through the allocation module, so as to fully utilize computing resources and improve the computing efficiency of the chip. Among them, dynamic mapping and reordering refers to dynamically mapping and reordering computing units in the computing array according to computing load and performance requirements to optimize the utilization efficiency of computing resources and improve computing performance. The specific workflow is as follows:

[0060] Computational load analysis: After the computing unit is reorganized, the analysis unit analyzes the computing load based on the input data and the nature of the current computing task, including the type, size, and complexity of the computing task. The computing load information can be obtained by extracting the features of the input data, scheduling and analyzing other computing tasks, etc.

[0061] Computing resource monitoring: The monitoring unit monitors the computing units corresponding to the current computing task in the computing array (which may or may not include skipped computing units), including information such as the status, performance, and load of the computing units. The information of the computing units can be obtained through hardware performance monitoring, software performance monitoring, etc.

[0062] Dynamic mapping and rearrangement strategy design: The design unit designs reasonable dynamic mapping and rearrangement strategies based on load analysis results and information monitoring results;

[0063] Dynamic mapping and reordering operations: The operation unit performs real-time dynamic mapping and reordering operations on the computing units corresponding to the current computing task in the computing array according to the dynamic mapping and reordering strategy, including reordering the computing path according to the characteristics and conditions of the computing load and the performance of the computing unit, that is, reordering the execution order between the computing units by adjusting the computing threads. For example, fill the vacant computing units. The specific reordering method can be selected according to the characteristics of the computing task and the allocation strategy of computing resources. For example, allocate idle computing units to other computing tasks to achieve optimal utilization of computing resources. The mapping and reordering of computing units can be achieved through hardware control units, schedulers, optimizers, etc.

[0064] Computing process monitoring and adjustment: During the computing process, the adjustment unit monitors the utilization of computing resources in real time to monitor whether there are bottlenecks such as insufficient resources or uneven performance. If a performance bottleneck occurs, the dynamic mapping and reordering strategy can be adjusted, and the computing unit can be adjusted according to the adjusted strategy to optimize the utilization efficiency of computing resources and improve computing performance. For example, the computing tasks other than the current computing task include at least the first computing task and the second computing task. During the process of the skipped computing unit calculating the first computing task, if there is insufficient computing resources or uneven performance, the skipped computing unit will be assigned to the second computing task so that the skipped computing unit can load and execute the second computing task in advance, thereby realizing dynamic adjustment of the mapping and reordering strategy.

[0065] Through the above dynamic mapping and rearrangement workflow, the embodiment of the present invention can realize dynamic management and optimization of computing load and computing resources, thereby improving the computing performance and resource utilization efficiency of the chip system. This dynamic mapping and rearrangement strategy can be flexibly adjusted and optimized according to specific computing tasks and performance requirements to meet the needs of different application scenarios.

[0066] Through the above workflow of reorganizing and rearranging the computing units, the embodiment of the present invention can realize flexible skipping and mapping of computing units, thereby improving computing efficiency while maintaining the consistency of the computing results or the controllability of errors. This flexible skipping computing processing method can improve the computing performance of the chip without affecting the accuracy requirements of the computing tasks, and is suitable for computing tasks of various artificial neural networks, such as CNN, DNN, SNN, RNN, FC, Transformer, etc.

[0067] In one embodiment of the present invention, the error control module 4 includes an estimation unit and a control unit.

[0068] An estimation unit is used to perform error analysis and estimation on the reorganized computing units and the rearranged computing units respectively to obtain corresponding error results; a control unit is used to design an error control strategy based on the error results and control the error results through the error control strategy, wherein the error control strategy includes: recalculating the error results exceeding the limit value; isolating and controlling the error results using the error propagation control strategy; or adjusting the reorganization module and the rearrangement module to perform the reorganization and rearrangement strategies to optimize the selection and arrangement of the computing units.

[0069] Furthermore, the error control module 4 may also include a monitoring and correction unit and a verification unit.

[0070] The monitoring and correction unit is used to monitor the calculation results in real time during the calculation process, and determine whether the error value corresponding to the calculation result exceeds the set limit value. If so, the calculation result that produces the error is corrected until the error value does not exceed the limit value, which includes replacing the calculation unit for recalculation, or correcting the calculation result through algorithm correction technology. The verification unit is used to verify the calculation result after the calculation is completed, and to perform corresponding processing when the calculation result fails to pass the verification, which includes recalculating or adjusting the recombination and rearrangement strategies of the recombination module and the rearrangement module until the calculation result passes the verification.

[0071] Specifically, in the calculation unit estimation skip evaluation mechanism, the errors generated when calculating the calculation results are evaluated and controlled. Ensure the consistency of the calculation results or the controllability of the errors when skipping a calculation unit, thereby ensuring the reliability and stability of the calculation results. Specifically, the calculation result error control is to monitor and control the errors that may occur during the calculation process to ensure that the impact of skipping the calculation process on the calculation results is within an acceptable range. The specific workflow is as follows:

[0072] Error estimation: The estimation unit performs error analysis and estimation on the reorganized computing units and rearranged computing units respectively, so as to analyze and estimate the errors introduced by skipping the computing units and obtain error results. Error analysis can be performed based on mathematical models, historical data, simulation experiments and other methods to understand the type, size and distribution of errors that may be introduced by approximate computing processing;

[0073] Error control: The control unit designs a reasonable error control strategy based on the error results. A variety of strategies can be used to control the error, such as setting a limit value for the error. The calculation results exceeding the limit value need to be recalculated by the precise calculation unit; adopting an error propagation control strategy to isolate and control the error results to prevent the accumulation of errors during the calculation process; or by adjusting the strategy for reorganizing and rearranging the calculation units, optimizing the selection and arrangement of the calculation units, thereby reducing the error introduced by the approximate calculation process;

[0074] Error monitoring and correction: During the calculation process, the calculation results are monitored in real time to detect whether they exceed the set limit value. If the calculation result error is large and exceeds the set threshold, the error correction mechanism can be triggered to correct the calculation result that caused the error, such as replacing the calculation unit with a more accurate calculation unit for recalculation, or correcting the calculation result through algorithm correction technology.

[0075] Calculation result verification: After the calculation process is completed, the calculation results are verified to ensure that the impact of skipping processing on the final calculation results is within an acceptable range. The accuracy and reliability of the calculation results can be ensured by comparing with the precise calculation results, or by verifying experiments and test data.

[0076] Through the above error control workflow, the embodiment of the present invention can realize the control and correction of the calculation result error, thereby ensuring that the impact of skipping processing on the calculation result is within an acceptable range, ensuring that the chip does not sacrifice the accuracy and reliability of the calculation result while improving the calculation efficiency. This error control strategy can be adjusted and optimized according to specific calculation tasks and accuracy requirements to meet the needs of different application scenarios.

[0077] After completing the reorganization and rearrangement of the computing units and the error control of the computing results, the computing array performs calculations according to the dynamic mapping and rearranged task allocation, completes the computing tasks, and outputs the final computing results.

[0078] Computation result generation: After each computing unit completes the computing task, it generates the corresponding computing result, such as the prediction result of the output layer, the feature representation of the intermediate layer, etc. The computing result can be transmitted through the output interface, cache or other means.

[0079] Post-processing of calculation results: Post-process the calculation results, such as activation function processing, result aggregation, error checking, etc., to ensure the accuracy of the calculation results.

[0080] Output result transmission: The calculation results are transmitted to the output interface for subsequent processing by external systems or applications, such as outputting prediction results, generating images, generating speech, etc.

[0081] Through the above workflow, the chip system proposed in the embodiment of the present invention can flexibly skip some approximate calculation processing, improve the flexibility of the chip, the reliability of the calculation results and the utilization efficiency of the computing resources, so as to have better performance and effect when processing complex artificial neural network tasks.

[0082] In general, the embodiment of the present invention takes the computing array as the core, and the computing array contains multiple computing threads, and the computing threads contain multiple computing units. For artificial neural networks such as CNN, DNN, SNN, RNN, FC, Transformer, etc., some computing unit calculations are skipped by reorganizing and rearranging the computing units in the computing array, but the consistency of the calculation results or the controllability of the errors are finally achieved. Specifically, a computing unit estimated skip evaluation mechanism is set, which evaluates the feasibility of skipping a certain computing unit and the size of the error caused by the calculation results of past data. When the error is less than a certain limit value, the unit is skipped as a whole to achieve a more flexible computing array mapping method. Furthermore, the estimated skip evaluation mechanism is set on the computing array control side. After the skip is completed, the unoccupied computing units can be flexibly pre-arranged to enter other computing tasks, so as to achieve flexible skipping of partial approximation of the overall computing architecture to complete the computing tasks more efficiently.

[0083] The embodiments of the present invention can achieve highly parallelized and flexible task scheduling, provide powerful computing power, and thus support high-performance deep learning computing tasks. Through dynamic mapping and rearrangement strategies, computing resources can be fully utilized to improve computing efficiency and performance. Low power consumption: The design of computing arrays and computing units can complete complex computing tasks at low power consumption, thereby reducing the energy consumption of the chip. At the same time, through calculation result error control and dynamic mapping and rearrangement strategies, unnecessary calculations and data transmission can be reduced, and power consumption can be reduced. Flexibility and scalability: Technologies such as computing array construction and computing unit reorganization and rearrangement can be flexibly adjusted and optimized according to different computing loads and performance requirements, thereby having strong adaptability and scalability. At the same time, the architecture solution also supports different types of deep learning computing tasks, such as image processing, speech recognition, natural language processing, etc., and has a wide range of application fields and application scenarios. High-precision calculation results: Through technologies such as calculation result error control and post-processing, the present invention can ensure the accuracy and reliability of the calculation results, provide high-precision calculation results, and thus meet the requirements of deep learning applications for the accuracy of calculation results. Efficient computing resource utilization: Through dynamic mapping and rearrangement strategies, computing tasks can be reasonably allocated in the computing array, computing resources can be fully utilized, and waste of computing resources can be avoided, thereby improving the utilization efficiency of computing resources.

[0084] To sum up, the computing chip system based on reorganization and re-arrangement of the embodiment of the present invention has the beneficial effects of high-performance computing, low power consumption, flexibility and scalability, high-precision computing results and efficient computing resource utilization, and can play an important role in deep learning computing tasks.

[0085] In the present invention, unless otherwise clearly specified and limited, terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integrated connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements.

[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limitations on the present invention, and those of ordinary skill in the art can change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A computing chip system based on recombination and rearrangement, characterized in that: The invention comprises a computing array arranged on a chip, a recombination module, a rearrangement module and an error control module connected in sequence, wherein the recombination module, the rearrangement module and the error control module are all arranged on the control side of the computing array, the error control module is also connected to the recombination module, the computing array comprises a plurality of computing threads, and each computing thread comprises a plurality of computing units; A reorganization module is used to determine the computing unit corresponding to the current computing task, and evaluate each computing unit corresponding to the current computing task, and make a decision to skip or not skip the computing unit according to the evaluation result to obtain a decision result, and skip or not skip the computing unit according to the decision result, and reorganize the computing units corresponding to the current computing task so that the reorganized computing units can perform the current computing task; A rearrangement module, used to rearrange the computing paths of all computing units corresponding to the current computing task, specifically by adjusting the computing threads to achieve the rearrangement of the computing units, so that the rearranged computing units can perform the current computing task; The error control module is used to perform error analysis and estimation on the reorganized computing units and the rearranged computing units to obtain error results, and to control the error results.

2. The computing chip system based on recombination and rearrangement according to claim 1, characterized in that: Each computing thread performs computing tasks independently and communicates and works together with other computing threads to achieve parallel computing and data exchange.

3. The computing chip system based on recombination and rearrangement according to claim 1, characterized in that: The recombination module comprises: An acquisition unit, used to respectively acquire evaluation data of each computing unit corresponding to the current computing task; An evaluation unit, configured to perform a feasibility evaluation and an error evaluation of skipping the calculation unit based on the evaluation data of the calculation unit to obtain an evaluation result; A decision unit, used to make a decision to skip or not skip the calculation unit according to the evaluation result of the calculation unit, so as to decide the calculation unit to be skipped; A skip unit is used to reorganize the computing units corresponding to the current computing task after the decision is made, specifically including removing the computing units to be skipped from the computing path to realize skipping processing of the computing units; A reorganization unit is used to change multiple computing units of a first computing group that executes the current computing task into multiple computing units of a second computing group, so as to realize the reorganization of the computing units corresponding to the current computing task, wherein the first computing group is different from the second computing group, and the change is made in such a way that the skipped computing units are separated from the original computing units after being swapped in position, or the skipped computing units are merged into the original computing units.

4. The computing chip system based on recombination and rearrangement according to claim 3 is characterized in that: The evaluation data includes performance indicators and historical calculation results, the evaluation results include feasibility results and error values, and the decision unit is specifically used to: When the feasibility result in the evaluation result of the computing unit is feasible and the error value is less than the limit value, the computing unit is determined to be a computing unit that needs to be skipped; When the feasibility result in the evaluation result of the computing unit is infeasible, or the error value is greater than or equal to the limit value, it is determined that the computing unit is not a computing unit that needs to be skipped.

5. The computing chip system based on recombination and rearrangement according to claim 1, characterized in that: It also includes an allocation module for allocating the skipped computing unit to computing tasks other than the current computing task, so that the skipped computing unit can complete the loading and execution of computing tasks other than the current computing task in advance.

6. The computing chip system based on recombination and rearrangement according to claim 5, characterized in that: The rearrangement module comprises: An analysis unit, configured to analyze the computing load according to the input data and the properties of the current computing task to obtain a load analysis result; A monitoring unit, used to monitor the information of the computing unit corresponding to the current computing task in the computing array to obtain an information monitoring result; A design unit, used for designing a dynamic mapping and rearrangement strategy according to the load analysis result and the information monitoring result; An operation unit is used to perform mapping and reordering operations on the computing units corresponding to the current computing task in the computing array according to the dynamic mapping and reordering strategy, specifically including reordering the computing path according to the characteristics and conditions of the computing load and the performance of the computing units, that is, by adjusting the computing threads, the execution order between the computing units is reordered.

7. The computing chip system based on recombination and rearrangement according to claim 6, characterized in that: The rearrangement module also includes: An adjustment unit is used to monitor the utilization of computing resources during the computing process, and dynamically adjust the dynamic mapping and reordering strategy when there is insufficient computing resources or uneven performance. Specifically, it is used to load and execute a first computing task other than the current computing task in advance in the skipped computing unit, and in the process of calculating the first computing task, if there is insufficient computing resources or uneven performance, the skipped computing unit is allocated to a second computing task other than the current computing task, so that the skipped computing unit can load and execute the second computing task in advance, wherein the second computing task is different from the first computing task.

8. The computing chip system based on recombination and rearrangement according to claim 1, characterized in that: The error control module comprises: An estimation unit, used for performing error analysis and estimation on the reorganized computing unit and the rearranged computing unit respectively, so as to obtain corresponding error results; A control unit is used to design an error control strategy based on the error result and control the error result through the error control strategy, wherein the error control strategy includes: recalculating the error result exceeding the limit value; isolating and controlling the error result using an error propagation control strategy; or adjusting the reorganization and rearrangement strategies of the recombination module and the rearrangement module to optimize the selection and arrangement of the computing units.

9. The computing chip system based on recombination and rearrangement according to claim 8, characterized in that: The error control module also includes: A monitoring and correction unit is used to monitor the calculation result in real time during the calculation process, and determine whether the error value corresponding to the calculation result exceeds the set limit value. If so, the calculation result that generates the error is corrected until the error value does not exceed the limit value, specifically including replacing the calculation unit for recalculation, or correcting the calculation result by algorithm correction technology; The verification unit is used to verify the calculation result after the calculation is completed, and to perform corresponding processing when the calculation result fails to pass the verification, specifically including recalculating or adjusting the recombination and rearrangement strategies of the recombination module and the rearrangement module until the calculation result passes the verification.