A graphics acceleration system and acceleration method based on a sunway processor
By adjusting the graphics acceleration requirements in the Shenwei processor and splitting the graphics file, and matching the appropriate CPU core units for acceleration, the problem of insufficient matching between graphics files and CPU core units was solved, achieving more efficient graphics acceleration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JIANGSU DONGLAN INFORMATION TECH CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-07-03
AI Technical Summary
The existing Shenwei processors cannot effectively match the acceleration capabilities and compatibility between graphics files and CPU core units during graphics acceleration, resulting in limited overall acceleration capabilities or low resource utilization.
The graphics acceleration requirements are adjusted through the requirements acquisition module, and the graphics files are segmented according to different requirements through the acceleration matching module. Appropriate CPU core units are matched for acceleration, and optimization and correction are made by taking into account the acceleration matching degree of graphics block files.
It improves graphics acceleration capabilities, reduces acceleration time, optimizes resource utilization, and enhances acceleration accuracy and efficiency, avoiding overall capability limitations caused by solely considering acceleration capabilities.
Smart Images

Figure CN116089073B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of graphics acceleration technology, and specifically to a graphics acceleration system and method based on the Shenwei processor. Background Technology
[0002] The Shenwei processor is a computing platform independently developed in my country. It adopts a heterogeneous many-core architecture that combines on-chip computing array clusters and distributed shared memory, and typically uses the 64-bit Shenwei instruction set. The Shenwei heterogeneous many-core processor has various types and numbers of computing cores and storage hardware, making it suitable for a wide range of data processing tasks. Correspondingly, the computing power, graphics acceleration capabilities, and acceleration compatibility with different graphics files vary among different CPU core units.
[0003] When graphics acceleration requirements manifest as an overall acceleration time requirement for the graphics file, the number of graphics chunk files cannot be precisely determined. Therefore, a large number of graphics chunk files leads to more computations by each CPU core, impacting the overall acceleration process. Conversely, fewer graphics chunk files result in active CPU cores handling a significant amount of graphics acceleration work, while inactive CPU cores remain idle with low utilization. When graphics acceleration requirements prioritize specific graphics components, the graphics acceleration capability of each CPU core is often considered the sole factor. Prioritizing the acceleration of the most important parts of the graphics file can easily lead to neglecting the matching degree between CPU cores and graphics chunk files, thus limiting overall graphics acceleration capabilities. Furthermore, when graphics acceleration requirements manifest as a sequential acceleration requirement for the entire graphics file, the overall acceleration time is often determined by the CPU core with the weakest acceleration capability. Therefore, simply considering the graphics acceleration capability of each CPU core can reduce overall graphics acceleration if the CPU core with the strongest acceleration capability but the weakest matching degree with the graphics chunk file is matched to the graphics chunk file with the highest acceleration requirement.
[0004] Therefore, in order to address the defects and shortcomings of the existing technologies in the data processing process, it is necessary to provide a graphics acceleration system and acceleration method based on the Shenwei processor to solve the above problems. Summary of the Invention
[0005] To address the shortcomings and deficiencies in existing technologies, this invention provides a graphics acceleration system and method based on the Shenwei processor.
[0006] The specific solution provided by this invention is as follows:
[0007] A graphics acceleration system based on a Shenwei processor, the system comprising:
[0008] A request input module is connected to the user, who inputs their request for graphic acceleration through the request input module.
[0009] The requirement acquisition module has one end connected to the requirement input module to save and adjust the user's input requirements for graphics acceleration; the other end of the requirement acquisition module is connected to the acceleration matching module.
[0010] A graphics input module for inputting graphics files;
[0011] The image segmentation module has one end connected to the image input module to segment the input image file; the other end of the image segmentation module is connected to the accelerated matching module.
[0012] The CPU core control module has one end connected to each CPU core unit to receive parameters from the corresponding CPU core unit and control the corresponding CPU core unit to achieve graphics acceleration; the other end of the CPU core control module is connected to the acceleration matching module.
[0013] An acceleration matching module is provided, with one end connected to both the demand acquisition module and the graphics segmentation module to segment graphics files according to graphics acceleration requirements; the other end of the acceleration matching module is connected to the CPU core control module to match the corresponding acceleration method to the segmented graphics block files according to the graphics acceleration requirements.
[0014] Its features are:
[0015] The requirement acquisition module adjusts the user's input graphics acceleration requirements to include at least:
[0016] Accelerating time requirements;
[0017] Prioritize and accelerate demand; and
[0018] Sequential acceleration of requirements;
[0019] When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that are consistent with the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0020] When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module so that the graphics segmentation module segments the part of the input graphics file that needs to be accelerated first into graphics block files, and then sends a priority control instruction to the CPU core control module so as to control at least two CPU core units to match the graphics block file and accelerate the graphics block file accordingly.
[0021] When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0022] As a further preferred embodiment of the present invention, in the requirement acquisition module adjusting the user's input graphics acceleration requirement, the acceleration time requirement refers to the time required to accelerate the entire graphics file in priority.
[0023] As a further preferred embodiment of the present invention, in the requirement acquisition module adjusting the user's input graphics acceleration requirement, the priority acceleration requirement refers to prioritizing the acceleration time required for the parts of the graphics file that need to be accelerated first.
[0024] As a further preferred embodiment of the present invention, in the requirement acquisition module adjusting the user's input graphics acceleration requirements, the sequential acceleration requirements refer to considering the acceleration time required for the entire graphics file as well as the acceleration time required for the parts of the graphics file that need to be accelerated first.
[0025] As a further preferred embodiment of the present invention, the parameters received by the CPU core control module for the corresponding CPU core unit include at least: the number of CPU core units, the graphics acceleration capability of the CPU core unit, and the acceleration matching degree between the CPU core unit and the graphics block file.
[0026] As a further preferred embodiment of the present invention, when the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the CPU core control module controls each CPU core unit to match each graphics block file and accelerate each graphics block file according to the graphics acceleration capability.
[0027] As a further preferred embodiment of the present invention, when the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the CPU core control module controls two CPU core units with the maximum graphics acceleration capability and the optimal acceleration matching degree to match the graphics block file and accelerate the graphics block file accordingly.
[0028] As a further preferred embodiment of the present invention, when the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the CPU core control module controls each CPU core unit to match each graphics block file and accelerate each graphics block file according to the acceleration matching degree and graphics acceleration capability, and the reference priority of the acceleration matching degree is higher than the reference priority of the graphics acceleration capability.
[0029] As a further preferred embodiment of the present invention, a matching feedback module is also included. One end of the matching feedback module is connected to the acceleration matching module, and the other end is connected to each CPU core unit, so as to feed back the matched graphics acceleration result to the matching feedback module, and optimize and correct the graphics acceleration capability of the CPU core unit and the acceleration matching degree between the CPU core unit and the graphics block file through the matching feedback module.
[0030] Furthermore, the present invention also provides an acceleration method for a graphics acceleration system based on a Shenwei processor, comprising the following steps:
[0031] 1) Users input their graphics acceleration requirements through the requirement input module;
[0032] 2) The requirement acquisition module saves and adjusts the user's input requirements for graphics acceleration;
[0033] 3) Input graphic files through the graphics input module;
[0034] 4) The CPU core control module receives parameters from the corresponding CPU core unit;
[0035] 5) The acceleration matching module first segments the graphics file according to the graphics acceleration requirements, and then matches the corresponding acceleration method to the segmented graphics block file according to the graphics acceleration requirements.
[0036] When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that are consistent with the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0037] When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module so that the graphics segmentation module segments the part of the input graphics file that needs to be accelerated first into graphics block files, and then sends a priority control instruction to the CPU core control module so as to control at least two CPU core units to match the graphics block file and accelerate the graphics block file accordingly.
[0038] When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0039] Compared with existing technologies, the technical effects that this invention can achieve include:
[0040] 1) This invention provides a graphics acceleration system and method based on the Shenwei processor. It includes a demand acquisition module to store and adjust user-inputted graphics acceleration demands, and an acceleration matching module to control a graphics segmentation module to segment graphics files according to these demands. Then, it matches corresponding acceleration methods to the segmented graphics block files based on the graphics acceleration demands. This allows for graphics segmentation based on different acceleration requirements, and matching corresponding acceleration methods to the segmented graphics block files. While meeting acceleration demands, it improves graphics acceleration capabilities and reduces acceleration time. Furthermore, by considering the degree of acceleration matching with the graphics block files, it optimizes and corrects the graphics acceleration capabilities of the CPU core units and the degree of acceleration matching between the CPU core units and the graphics block files based on the graphics acceleration results, while ensuring graphics acceleration capabilities.
[0041] 2) This invention provides a graphics acceleration system and method based on the Shenwei processor. When the graphics acceleration requirement is manifested as an overall graphics acceleration time requirement, the number of graphics block files divided into graphics files is kept consistent with the number of CPU core units. This ensures that each CPU core unit participates in graphics acceleration calculations and maintains a graphics acceleration calculation count of 1. This avoids the situation where dividing into more graphics block files would lead to more calculations by each CPU core unit, affecting the overall graphics file acceleration process. Conversely, fewer graphics block files would cause the CPU core units in the working state to handle a large amount of graphics acceleration work, while the CPU core units not in the working state would be idle and have low utilization. By controlling each CPU core unit to match each graphics block file according to the graphics acceleration capability, the overall graphics acceleration time is reduced.
[0042] 3) This invention provides a graphics acceleration system and method based on the Shenwei processor. When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the part of the input graphics file that needs priority acceleration is divided into graphics block files. Then, at least two CPU core units are controlled to match the corresponding graphics block files to accelerate the graphics block files. While meeting the acceleration demand, the graphics acceleration capability is improved and the acceleration time is reduced. At the same time, by considering the degree of acceleration matching with the graphics block files, while ensuring the graphics acceleration capability, the graphics acceleration capability of the CPU core units and the degree of acceleration matching between the CPU core units and the graphics block files are optimized and corrected according to the graphics acceleration results. This avoids treating the graphics acceleration capability as the only consideration factor, which may easily lead to the limitation of graphics acceleration capability due to neglecting the acceleration matching degree between the CPU core units and the graphics block files when ensuring the priority acceleration of the parts of the graphics file. Through optimization and correction, the acceleration accuracy and efficiency of the system and method are further improved.
[0043] 4) This invention provides a graphics acceleration system and method based on the Shenwei processor. When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the number of graphics block files divided into the input graphics file is consistent with the number of CPU core units. Then, each CPU core unit is controlled to accelerate each graphics block file corresponding to its best matching graphics block file. By considering the degree of acceleration matching with the graphics block file, the graphics acceleration result is verified and optimized while ensuring the graphics acceleration capability. By simultaneously referring to the degree of acceleration matching and the graphics acceleration capability, each CPU core unit is controlled to match each graphics block file and accelerate each graphics block file. The reference priority of the degree of acceleration matching is set higher than the reference priority of the graphics acceleration capability to avoid the reduction of the overall graphics acceleration capability when the CPU core unit with the strongest graphics acceleration capability but the weakest matching degree with the graphics block file is matched to the graphics block file with the highest acceleration demand. Attached Figure Description
[0044] Figure 1 The diagram shown is a logical structure diagram of the present invention.
[0045] Figure 2 The diagram shown is a schematic of the graphics acceleration requirements adjusted according to the present invention.
[0046] Figure 3 The diagram shown is a logical representation of the adjusted graphics acceleration requirement as an acceleration time requirement according to the present invention.
[0047] Figure 4 The diagram shown is a logical schematic of the graphics acceleration requirement adjusted by the present invention as a priority acceleration requirement.
[0048] Figure 5 The diagram shown is a logical representation of the adjusted graphics acceleration requirement as a sequential acceleration requirement according to the present invention.
[0049] Figure 6 The diagram shown is a flowchart of the steps of this invention. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] In the description of this invention, it should be noted that the terms "upper," "lower," "inner," "outer," "front end," "rear end," "both ends," "one end," and "the other end," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0052] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installed," "equipped with," "connected," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral 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 a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0053] [First Embodiment]
[0054] like Figure 1 The first embodiment of the present invention is shown, which discloses a graphics acceleration system based on a Shenwei processor. The system includes:
[0055] A request input module is connected to the user, who inputs their request for graphic acceleration through the request input module.
[0056] The requirement acquisition module has one end connected to the requirement input module to save and adjust the user's input graphics acceleration requirements. The adjustment determines which type of graphics acceleration requirement the user input belongs to in the requirement input module. The other end of the requirement acquisition module is connected to the acceleration matching module to transmit the adjusted graphics acceleration requirements to the acceleration matching module.
[0057] A graphics input module for inputting graphics files;
[0058] A graphics segmentation module is provided, with one end connected to a graphics input module to segment the input graphics file and the other end connected to an acceleration matching module. On the one hand, the graphics segmentation module is controlled to segment the input graphics file according to the graphics acceleration requirements provided by the acceleration matching module; on the other hand, the segmented graphics block files are matched with each CPU core unit to achieve graphics acceleration.
[0059] A CPU core control module is configured such that one end is connected to each CPU core unit to receive parameters from the corresponding CPU core unit and simultaneously controls the corresponding CPU core unit to achieve graphics acceleration; the other end of the CPU core control module is connected to an acceleration matching module. Preferably, the parameters received by the CPU core control module from the corresponding CPU core unit include at least: the number of CPU core units, the graphics acceleration capability of the CPU core unit, and the degree of acceleration matching between the CPU core unit and the graphics block file. The number of CPU core units can be used as a reference for image file segmentation, while the graphics acceleration capability of the CPU core unit and the degree of acceleration matching between the CPU core unit and the graphics block file can be used as references for matching the corresponding acceleration method to the segmented graphics block file.
[0060] An acceleration matching module is provided, with one end connected to both the demand acquisition module and the graphics segmentation module to segment graphics files according to graphics acceleration requirements; the other end of the acceleration matching module is connected to the CPU core control module to match the corresponding acceleration method to the segmented graphics block files according to the graphics acceleration requirements.
[0061] In this embodiment,
[0062] like Figure 2 As shown, the requirement acquisition module adjusts the user-inputted graphics acceleration requirements to include at least:
[0063] Accelerating time requirements;
[0064] Prioritize and accelerate demand; and
[0065] Sequential acceleration of requirements;
[0066] In this embodiment, as Figure 3 As shown, in the requirement acquisition module, the acceleration time requirement refers to the acceleration time required for the overall graphics file, taking into account the user's input. The graphics segmentation module segments the graphics file into graphics block file 1, graphics block file 2, ..., graphics block file n-1, and graphics block file n. The acceleration time of each segment through the corresponding CPU core unit is T1, T2, ..., Tn-1, Tn. Since each CPU core unit accelerates synchronously, the acceleration time requirement TA is the maximum value among T1, T2, ..., Tn-1, Tn.
[0067] In this embodiment, as Figure 4As shown, in the requirement acquisition module's adjustment of the user-inputted graphics acceleration requirements, the priority acceleration requirement refers to prioritizing the acceleration time of the parts of the graphics file that require priority acceleration. For example, if the part requiring priority acceleration is graphics block file 1, then its acceleration time through the corresponding CPU core unit is T1 and T2. Therefore, the priority acceleration requirement TB is the minimum value between T1 and T2.
[0068] In this embodiment, as Figure 5 As shown, in the requirement acquisition module, the sequential acceleration requirement refers to considering the acceleration time required for the entire graphics file while also considering the acceleration time required for the parts of the graphics file that need to be accelerated first. That is, the sequential acceleration requirement TC is the maximum value among T1, T2, ..., Tn-1, Tn, and each of T1, T2, ..., Tn-1, Tn needs to be as small as possible.
[0069] When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module, so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file. By keeping the number of graphics block files in the graphics file consistent with the number of CPU core units, each CPU core unit participates in the graphics acceleration calculation, and the number of graphics acceleration calculations remains at 1. This avoids the situation where dividing the graphics file into too many graphics block files would lead to too many calculations by each CPU core unit, affecting the overall graphics file acceleration process, while too few graphics block files would cause the CPU core units in the working state to handle a large amount of graphics acceleration work alone, while the CPU core units not in the working state would be idle, resulting in low utilization. In this embodiment, as... Figure 3 As shown, when the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the CPU core control module controls each CPU core unit to match each graphics block file and accelerate each graphics block file according to the graphics acceleration capability. Since the overall graphics acceleration time is often determined by the CPU core unit with the weakest acceleration capability, by controlling each CPU core unit to match each graphics block file and accelerate each graphics block file according to the graphics acceleration capability, the overall graphics acceleration time is reduced.
[0070] When the demand acquisition module adjusts the user-inputted graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module, causing the graphics segmentation module to segment the parts of the input graphics file that need priority acceleration into graphics block files. Then, it sends a priority control instruction to the CPU core control module to control at least two CPU core units to match and accelerate the corresponding graphics block files. This satisfies the acceleration demand while improving graphics acceleration capability and reducing acceleration time. Simultaneously, by considering the degree of acceleration matching with the graphics block files, while ensuring graphics acceleration capability, the system optimizes and corrects the graphics acceleration capability of the CPU core units and the degree of acceleration matching between the CPU core units and the graphics block files based on the graphics acceleration results. This avoids treating graphics acceleration capability as the sole consideration, which could easily lead to limited graphics acceleration capability due to neglecting the acceleration matching degree between the CPU core units and the graphics block files when prioritizing the parts of the graphics file that need priority acceleration. Through optimization and correction, the system and method further improve their acceleration accuracy and efficiency. Figure 4 As shown, when the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the CPU core control module controls two CPU core units with the maximum graphics acceleration capability and the optimal acceleration matching degree to match the graphics block file and accelerate that graphics block file. This ensures that the user's priority acceleration demand for the parts of the graphics file that need to be accelerated can be met through the maximum graphics acceleration capability. Furthermore, the acceleration result can be verified by using the CPU core unit with the best acceleration matching degree. Based on the acceleration results from both methods, the graphics acceleration capability of each CPU core unit and the acceleration matching degree between the CPU core unit and the graphics block file are optimized and corrected.
[0071] When the requirement acquisition module adjusts the user's input graphics acceleration requirement to a sequential acceleration requirement, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module, ensuring that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module, controlling each CPU core unit to match each graphics block file and accelerate that block. When the requirement acquisition module adjusts the user's input graphics acceleration requirement to a sequential acceleration requirement, the CPU core control module, referencing the acceleration matching degree and graphics acceleration capability, controls each CPU core unit to match each graphics block file and accelerate that block, with the acceleration matching degree having a higher reference priority than the graphics acceleration capability. By considering the degree of acceleration matching with the graphics block file, the graphics acceleration results are verified and optimized while ensuring graphics acceleration capabilities. By simultaneously referencing the degree of acceleration matching and graphics acceleration capabilities, each CPU core unit is matched with each graphics block file for acceleration. Furthermore, the reference priority of the degree of acceleration matching is set higher than the reference priority of graphics acceleration capabilities. This avoids the reduction in overall graphics acceleration capabilities that would occur if the CPU core unit with the strongest graphics acceleration capability but the weakest matching degree with the graphics block file were matched with the graphics block file with the highest acceleration requirements.
[0072] In a preferred embodiment, a matching feedback module is also included. One end of the matching feedback module is connected to the acceleration matching module, and the other end is connected to each CPU core unit. This allows the matched graphics acceleration results to be fed back to the matching feedback module, which then optimizes and corrects the graphics acceleration capabilities of the CPU core units and the acceleration matching degree between the CPU core units and the graphics block files. Preferably, in this embodiment, the optimization and correction process can be specifically set as follows: when the acceleration results of the acceleration time requirement and the sequential acceleration requirement are inconsistent, firstly, if the acceleration time for the same graphics block file in the sequential acceleration requirement is less than the acceleration time for the same graphics block file in the acceleration time requirement, then an increasing flag of 1 is added to the acceleration matching degree of the corresponding CPU core unit; secondly, if in the priority acceleration requirement, the acceleration time of the CPU core unit with the best graphics acceleration capability is greater than the acceleration time of the CPU core unit with the best acceleration matching degree, it indicates that the graphics block file that needs to be accelerated first is more matched with the CPU core unit with the best acceleration matching degree. Therefore, in the CPU core control module... The acceleration matching degree of the CPU core unit with the best acceleration matching degree is marked with an upward marker 2. When the acceleration time of the CPU core unit with the best graphics acceleration capability is greater than that of the CPU core unit with the best acceleration matching degree, it means that the graphics block file that needs to be accelerated first is more matched with the CPU core unit with the best graphics acceleration capability. Therefore, an upward marker 3 is added to the acceleration matching degree of the CPU core unit with the best graphics acceleration capability in the CPU core control module. The upward level must be satisfied: upward marker 2 is higher than upward marker 3 is higher than upward marker 1. After a certain period of use, the acceleration matching degree of each CPU core unit with different graphics block files is dynamically adjusted according to the upward level.
[0073] [Second Embodiment]
[0074] like Figure 6 The image shows a second embodiment of the present invention, which provides an acceleration method for a graphics acceleration system based on a Shenwei processor, comprising the following steps:
[0075] 1) Users input their graphics acceleration requirements through the requirement input module;
[0076] 2) The requirement acquisition module saves and adjusts the user's input requirements for graphics acceleration;
[0077] 3) Input graphic files through the graphics input module;
[0078] 4) The CPU core control module receives parameters from the corresponding CPU core unit;
[0079] 5) The acceleration matching module first segments the graphics file according to the graphics acceleration requirements, and then matches the corresponding acceleration method to the segmented graphics block file according to the graphics acceleration requirements.
[0080] When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that are consistent with the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0081] When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module so that the graphics segmentation module segments the part of the input graphics file that needs to be accelerated first into graphics block files, and then sends a priority control instruction to the CPU core control module so as to control at least two CPU core units to match the graphics block file and accelerate the graphics block file accordingly.
[0082] When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
[0083] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. A graphics acceleration system based on a Shenwei processor, the system comprising: A request input module is connected to the user, who inputs their request for graphic acceleration through the request input module. A requirement acquisition module, one end of which is connected to a requirement input module, to save and adjust the user's input requirements for graphics acceleration; The other end of the demand acquisition module is connected to the accelerated matching module; A graphics input module for inputting graphics files; The image segmentation module has one end connected to the image input module to segment the input image file; the other end of the image segmentation module is connected to the accelerated matching module. The CPU core control module has one end connected to each CPU core unit to receive parameters from the corresponding CPU core unit and control the corresponding CPU core unit to achieve graphics acceleration; the other end of the CPU core control module is connected to the acceleration matching module. An acceleration matching module is provided, with one end connected to both the demand acquisition module and the graphics segmentation module, to send corresponding segmentation instructions to the graphics segmentation module according to the graphics acceleration demand so that the graphics segmentation module can segment the graphics file; the other end of the acceleration matching module is connected to the CPU core control module to match the corresponding acceleration method to the segmented graphics block file according to the graphics acceleration demand. Its features are: The requirement acquisition module adjusts the user's input graphics acceleration requirements to include at least: Accelerating time requirements; Prioritize and accelerate demand; and Sequential acceleration of requirements; When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that are consistent with the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file. When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module so that the graphics segmentation module segments the part of the input graphics file that needs to be accelerated first into graphics block files, and then sends a priority control instruction to the CPU core control module so as to control at least two CPU core units to match the graphics block file and accelerate the graphics block file accordingly. When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.
2. The graphics acceleration system based on Sunway processor according to claim 1, characterized in that: In the requirement acquisition module, the acceleration time requirement refers to the acceleration time required for the overall graphics file, taking into account the user's input.
3. The graphics acceleration system based on the Shenwei processor according to claim 1, characterized in that: In the requirement acquisition module, the user-inputted graphics acceleration requirement refers to prioritizing the acceleration time of the parts of the graphics file that need to be accelerated first.
4. A graphics acceleration system based on a Shenwei processor according to claim 1, characterized in that: In the requirement acquisition module, the user-inputted graphics acceleration requirement refers to prioritizing the acceleration time required for the entire graphics file while also considering the acceleration time required for the parts of the graphics file that need to be accelerated first.
5. A graphics acceleration system based on a Shenwei processor according to claim 1, characterized in that: The parameters received by the CPU core control module for the corresponding CPU core unit include at least the number of CPU core units, the graphics acceleration capability of the CPU core unit, and the acceleration matching degree between the CPU core unit and the graphics block file.
6. A graphics acceleration system based on a Shenwei processor according to claim 5, characterized in that: When the requirement acquisition module adjusts the user's input graphics acceleration requirement to an acceleration time requirement, the CPU core control module controls each CPU core unit to match each graphics block file and accelerate each graphics block file according to the graphics acceleration capability.
7. A graphics acceleration system based on a Shenwei processor according to claim 5, characterized in that: When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the CPU core control module controls two CPU core units with the maximum graphics acceleration capability and the best acceleration matching degree to match the graphics block file and accelerate the graphics block file accordingly.
8. A graphics acceleration system based on a Shenwei processor according to claim 5, characterized in that: When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the CPU core control module controls each CPU core unit to match each graphics block file and accelerate each graphics block file according to the acceleration matching degree and graphics acceleration capability, and the reference priority of the acceleration matching degree is higher than the reference priority of the graphics acceleration capability.
9. A graphics acceleration system based on a Shenwei processor according to claim 5, characterized in that: It also includes a matching feedback module, one end of which is connected to the acceleration matching module and the other end is connected to each CPU core unit, so as to feed back the matched graphics acceleration results to the matching feedback module, and optimize and correct the graphics acceleration capability of the CPU core unit and the acceleration matching degree between the CPU core unit and the graphics block file through the matching feedback module.
10. The acceleration method for a graphics acceleration system based on a Shenwei processor according to any one of claims 1-9, comprising the following steps: 1) Users input their graphics acceleration requirements through the requirement input module; 2) The requirement acquisition module saves and adjusts the user's input requirements for graphics acceleration; 3) Input graphic files through the graphics input module; 4) The CPU core control module receives parameters from the corresponding CPU core unit; 5) The acceleration matching module first sends the corresponding segmentation instruction to the graphics segmentation module according to the graphics acceleration requirements so that the graphics segmentation module can segment the graphics file, and then matches the corresponding acceleration method to the segmented graphics block file according to the graphics acceleration requirements. When the demand acquisition module adjusts the user's input graphics acceleration demand to an acceleration time demand, the acceleration matching module first sends a time segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that are consistent with the number of CPU core units. Then, it sends a time control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file. When the demand acquisition module adjusts the user's input graphics acceleration demand to a priority acceleration demand, the acceleration matching module first sends a priority segmentation instruction to the graphics segmentation module so that the graphics segmentation module segments the part of the input graphics file that needs to be accelerated first into graphics block files, and then sends a priority control instruction to the CPU core control module so as to control at least two CPU core units to match the graphics block file and accelerate the graphics block file accordingly. When the demand acquisition module adjusts the user's input graphics acceleration demand to a sequential acceleration demand, the acceleration matching module first sends a sequential segmentation instruction to the graphics segmentation module so that the graphics segmentation module divides the input graphics file into a number of graphics block files that match the number of CPU core units. Then, it sends a sequential control instruction to the CPU core control module to control each CPU core unit to match each graphics block file and accelerate each graphics block file.