A high-efficiency dynamic balance operation method for a unified dye array

By dynamically adjusting the number of computing cores of the unified dyeing array, combined with scene characteristics and cost analysis, the problem of high power consumption of the unified dyeing array in simple scene tasks is solved, achieving satisfactory GPU performance and reducing system power consumption.

CN112579284BActive Publication Date: 2024-10-11西安翔腾微电子科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011404171.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-05
Publication Date
2024-10-11
Estimated Expiration
2040-12-05

AI Technical Summary

Technical Problem

When the unified dyeing array handles simple scene tasks, the computing resources cannot be fully utilized, resulting in excessive power consumption. The existing technology cannot effectively achieve high-performance dynamic balance.

Method used

By extracting scene features, analyzing the necessity of configuration switching, analyzing scheduling and driver overhead, and running high-performance balancing strategies, we dynamically adjust the number of enabled dye cores, reduce the occupation of computing resources, and achieve high-performance dynamic balance of the unified dye array.

Benefits of technology

On the premise of meeting the performance of the GPU, the chip power consumption is reduced, the number of computing cores is dynamically adjusted, and a high-performance balance of the unified dyeing array is achieved to avoid waste of computing resources and reduce system power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579284B_ABST
    Figure CN112579284B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for high-efficiency dynamic balance operation of a unified dyeing array. The present invention comprises the following steps: 1) scene feature extraction; a host reads a drawing scene and records scene features; 2) configuration switching necessity analysis; through calculation, it is evaluated whether it is necessary to dynamically adjust the number of dyeing kernels enabled; 3) analysis of scheduling overhead; 4) analysis of driving overhead; 5) running a high-efficiency balance strategy; 6) configuring a dyeing array operation mode. The present invention reduces the number of computing resources occupied while meeting the performance requirements of a unified dyeing array, thereby achieving the purpose of dynamically reducing GPU power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer graphics, and in particular relates to a high-efficiency dynamic balance operation method of a unified dyeing array. Background Art

[0002] The unified dyeing array is an important component of the GPU, and its computing power directly affects the computing power of the GPU. At the beginning of GPU design, the data transmission bit width of the upper task scheduling unit and the lower dye output control unit of the unified dyeing array pipeline is usually designed to be slightly larger than the computing power when the unified dyeing array is running at full load, so as to ensure that the computing unit that occupies the largest physical area of ​​the chip serves as the performance bottleneck. However, when the scene tasks to be processed by the dyeing array are relatively simple, if the peak computing power of all computing cores is greater than the data transmission bit width, the computing resources cannot be fully utilized. At this time, if a certain number of computing cores are turned off to reduce power consumption, the effect of high-efficiency dynamic balance of the unified dyeing array can be achieved. However, no such technology has been found so far. Summary of the invention

[0003] In order to solve the above-mentioned technical problems existing in the background technology, the present invention provides a unified dye array high-efficiency dynamic balance operation method, which reduces energy consumption when the GPU performance meets the demand.

[0004] The technical solution of the present invention is: the present invention is a method for high-efficiency dynamic balance operation of a unified dyeing array, which is special in that: the method comprises the following steps:

[0005] 1) Scene feature extraction: the host reads the drawing scene and records the scene features;

[0006] 2) Necessity analysis of configuration switching: evaluate through calculation whether it is necessary to dynamically adjust the number of dye cores enabled;

[0007] 3) Analyze scheduling overhead;

[0008] 4) Analyze driver overhead;

[0009] 5) Implement high-performance balancing strategies;

[0010] 6) Configure the staining array operation mode.

[0011] Preferably, in step 1), before reading the drawing scene, a storage area is initialized for recording scene features to avoid feature parameters being left over from the previous scene and causing errors in the description of scene features. The result output of this step directly affects the calculation of the overhead.

[0012] Preferably, the scene features in step 1) include enable switch, mode configuration, and number of dyeing tasks, which provide necessary data input for step 2) configuration switching necessity analysis, step 3) analysis of scheduling overhead, and step 4) analysis of driving overhead.

[0013] Preferably, step 2) specifically comprises the following steps:

[0014] 2.1) The estimated value η′ of the driver overhead is calculated according to a certain functional relationship η′f(x, y, z...) based on the scene feature data input in step 1), wherein the functional relationship f(x, y, z...) is a multivariate linear equation, the independent variables x, y, z... are the enabling information and the number of tasks counted in step 1), and the weight coefficient is obtained by testing and analyzing the coloring driver at the beginning of design and testing; η′ may not be accurate, but it can reflect the complexity of scene drawing, the amount of coloring tasks and the number of clock cycles required for the coloring driver to complete drawing to a certain extent;

[0015] 2.2) Calculate δ max =N max *τ max +ω max , where τ max and ω max N is the number of clock cycles required for the task scheduling unit to assemble and schedule all attributes and the number of clock cycles required for the dye output control unit to handle all attributes. max is the total number of stained nuclei;

[0016] 2.3) If the estimated value η′ is greater than δ max Then jump to step 5); if the estimated value η′ is less than δ max Then proceed to step 3) and step 4).

[0017] Only when the number of tasks reaches a certain level and the estimated value of the driving cost η′ is greater than δ max If yes, skip to step 5).

[0018] Preferably, step 3) is specifically as follows: analyzing the data collected in step 1), focusing on the configuration of each enable switch and mode parameter. When a certain function is enabled, the number of attributes that the task scheduling unit and the dye output control unit need to schedule, assemble and transport can be obtained by analyzing its mode configuration, thereby knowing the number of cycles τ required for the task scheduling unit to schedule a dye core and the number of cycles ω required for the dye output control unit to transport the output data of a dye core in the drawing scenario.

[0019] Preferably, step 4) specifically includes: analyzing the data collected in step 1), focusing on each enabling switch, and when a certain function is enabled, the drive execution path is obtained through analysis and a relatively accurate drive execution cycle number T can be estimated.

[0020] Preferably, the high-efficiency balance strategy of step 5) is: Generally, δ max It is smaller than the number of clock cycles T that the dye driver executes once. However, when the rendering scene is relatively simple, δ max If it is greater than T, even if the task scheduling unit and the dye output control unit assemble and move data at peak speed, all the computing cores of the dye array cannot work simultaneously, which causes a waste of computing resources. At this time, some computing cores should be dynamically shut down to reduce chip power.

[0021] Preferably, the specific steps of step 5) are as follows:

[0022] 5.1) receiving input from step 2), step 3) or step 4);

[0023] 5.2) If the input comes from step 2), it means that the computational complexity is high, then the dye array control module is controlled to configure all computational cores to be turned on;

[0024] 5.3) If the input comes from step 3) or step 4), calculate Where N is the number of stained nuclei at the time of performance equilibrium, T is input from step 4), τ and ω are input from step 3); proceed to step 6).

[0025] Preferably, step 6) is specifically as follows: the number of dyeing cores that need to be enabled can be known according to N in step 5), and unnecessary computing resources are dynamically closed to achieve the purpose of high-efficiency dynamic balance of the unified dyeing array.

[0026] The present invention aims at the unified dyeing array of GPU, reduces chip power consumption under the premise of meeting the functional performance, starts from the scene, combines the task processing capabilities of the analysis task scheduling module and the dye output control module, reduces the number of computing resources occupied under the premise of meeting the functional performance of the unified dyeing array, and thus achieves the purpose of dynamically reducing GPU power consumption. Therefore, the present invention has the following advantages:

[0027] 1) The host estimates whether to run the unified dye array high-efficiency dynamic balance evaluation system, and estimates the necessity of subsequent calculations and dye array computing core number configuration changes with extremely low time costs;

[0028] 2) Dynamically adjust the number of dye cores enabled to reduce system power consumption without affecting the chip's functionality and performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0030] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0031] See also Figure 1 , a unified dye array high-efficiency dynamic balance operation method in a specific embodiment of the present invention, the method comprises the following steps:

[0032] 1) Scene feature extraction: the host reads the drawing scene and records the scene features;

[0033] Before reading the drawing scene, a storage area is initialized to record scene features to avoid feature parameters being left over from the previous scene and causing errors in scene feature description. The result output of this step directly affects the calculation of the cost.

[0034] The scenario features include enable switches, mode configurations, and the number of dyeing tasks, which provide necessary data input for step 2) configuration switching necessity analysis, step 3) scheduling overhead analysis, and step 4) driving overhead analysis.

[0035] 2) Necessity analysis of configuration switching: evaluate through calculation whether it is necessary to dynamically adjust the number of dye cores enabled;

[0036] 2.1) The scene feature data input in step 1) is used to calculate the estimated value η′ of the driver overhead according to a certain functional relationship η′f(x, y, z...), wherein the functional relationship f(x, y, z...) is a multivariate linear equation, the independent variables x, y, z... are the enabling information and the number of tasks counted in step 1), and the weight coefficient is obtained by testing and analyzing the coloring driver at the beginning of design and testing; η′ may not be accurate, but it can reflect the complexity of scene drawing, the amount of coloring tasks and the number of clock cycles required for the coloring driver to complete drawing to a certain extent.

[0037] 2.2) Calculate δ max =N max *τ max +ω max , where τ max and ω max N is the number of clock cycles required for the task scheduling unit to assemble and schedule all attributes and the number of clock cycles required for the dye output control unit to handle all attributes. max is the total number of stained nuclei;

[0038] 2.3) If the estimated value η′ is greater than δ max Then jump to step 5); if the estimated value η′ is less than δ max Then proceed to step 3) and step 4).

[0039] In general, only when the number of tasks reaches a certain level and the estimated value of the driving cost η′ is greater than δ max If yes, skip to step 5).

[0040] 3) Analyze scheduling overhead;

[0041] Analyze the data collected in step 1), focusing on the configuration of each enable switch and mode parameter. When a function is enabled, the number of attributes that the task scheduling unit and the dye output control unit need to schedule, assemble and transport can be obtained by analyzing its mode configuration. In this way, the number of cycles τ required for the task scheduling unit to schedule a dye core and the number of cycles ω required for the dye output control unit to transport the output data of a dye core in this drawing scenario can be known.

[0042] 4) Analyze driver overhead;

[0043] Analyze the data collected in step 1), focusing on each enabling switch. When a function is enabled, the drive execution path is obtained through analysis and a relatively accurate drive execution cycle number T can be estimated.

[0044] 5) Implement high-performance balancing strategies;

[0045] The high-efficiency balance strategy is: In general, δ max It is smaller than the number of clock cycles T that the dye driver executes once. However, when the rendering scene is relatively simple, δ max If it is greater than T, even if the task scheduling unit and the dye output control unit assemble and move data at peak speed, all the computing cores of the dye array cannot work at the same time, which causes a waste of computing resources. At this time, some computing cores should be dynamically shut down to reduce chip power. The specific steps are as follows:

[0046] 5.1) receiving input from step 2), step 3) or step 4);

[0047] 5.2) If the input comes from step 2), it means that the computational complexity is high, then the dye array control module is controlled to configure all computational cores to be turned on;

[0048] 5.3) If the input comes from step 3) or step 4), calculate Where N is the number of dye cores at performance equilibrium, T is input from step 4), and τ and ω are input from step 3); proceed to step 6). 6) Configure the dye array operation mode.

[0049] 6) Configure the staining array operation mode.

[0050] According to N in step 5), the number of dyeing cores that need to be opened can be known, so unnecessary computing resources are dynamically closed to achieve the purpose of high-efficiency dynamic balance of unified dyeing array.

[0051] Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 invention.

Claims

1. A high-efficiency dynamic balance operation method for a unified dye array, Its characteristics are: The method comprises the following steps: 1) Scene feature extraction: the host reads the drawing scene and records the scene features; the scene features include enable switch, mode configuration, and the number of dyeing tasks; 2) Necessity analysis of configuration switching: evaluate through calculation whether it is necessary to dynamically adjust the number of dye cores enabled; 2.1) The estimated value η′ of the driver overhead is calculated according to a certain functional relationship η′=f(x, y, z...) based on the scene feature data input in step 1), wherein the functional relationship f(x, y, z...) is a multivariate linear equation, the independent variables x, y, z... are the enabling information and the number of tasks counted in step 1), and the weight coefficient is obtained by testing and analyzing the coloring driver at the beginning of design and testing; η′ may not be accurate, but it can reflect the complexity of scene drawing, the amount of coloring tasks and the number of clock cycles required for the coloring driver to complete drawing to a certain extent; 2.2) Calculate δ max =N max *τ max +ω max , where τ max and ω max N is the number of clock cycles required for the task scheduling unit to assemble and schedule all attributes and the number of clock cycles required for the dye output control unit to handle all attributes. max is the total number of stained nuclei; 2.3) If the estimated value η is greater than δ max Then jump to step 5); if the estimated value η′ is less than δ max Then proceed to step 3) and step 4); 3) Analyze scheduling overhead; Analyze the data collected in step 1), focusing on the configuration of each enable switch and mode parameter. When a function is enabled, the number of attributes that the task scheduling unit and the dye output control unit need to schedule, assemble and transport can be obtained by analyzing its mode configuration. In this way, the number of cycles τ required for the task scheduling unit to schedule a dye core and the number of cycles ω required for the dye output control unit to transport the output data of a dye core in this drawing scenario can be known; 4) Analyze driver overhead; Analyze the data collected in step 1), focusing on each enabling switch. When a function is enabled, the drive execution path can be obtained through analysis and a relatively accurate drive execution cycle number T can be estimated; 5) Implement high-performance balancing strategies; 5.1) receiving input from step 2), step 3) or step 4); 5.2) If the input comes from step 2), it means that the computational complexity is high, then the dye array control module is controlled to configure all computational cores to be turned on; 5.3) If the input comes from step 3) or step 4), calculate Where N is the number of stained nuclei at the time of performance equilibrium, T is input from step 4), τ and ω are input from step 3); proceed to step 6); 6) Configure the staining array operation mode; According to N in step 5), the number of dyeing cores that need to be enabled can be known, and unnecessary computing resources can be dynamically disabled.

2. The high-efficiency dynamic balance operation method of the unified dyeing array according to claim 1, Features: In the step 1), before reading the drawing scene, a storage area is initialized for recording scene features.

3. The high-efficiency dynamic balance operation method of the unified dyeing array according to claim 2, Features: The high-efficiency balancing strategy of step 5) is: In general, δ max It is smaller than the number of clock cycles T that the dye driver executes once. However, when the rendering scene is relatively simple, δ max If it is greater than T, even if the task scheduling unit and the dye output control unit assemble and move data at peak speed, all the computing cores of the dye array cannot work simultaneously.