A data processing method, device and storage medium

By generating operating status indicators for the graphics processing unit (GPU), performance analysis and load-focused analysis were performed, which solved the problems of temperature rise and excessive load during GPU operation, and improved the accuracy and efficiency of processor operation.

CN115375531BActive Publication Date: 2026-03-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211013573.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2026-03-03
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

GPUs experience temperature increases and excessive loads during operation, leading to decreased processing efficiency. Existing technologies, through overall adjustment, have relatively low accuracy.

Method used

By acquiring hardware count data from the graphics processor, operating status indicators are generated, including vertex processing, region mesh processing, interpolation operations, texture material operations, pixel point operations, mathematical operations, and bandwidth indicators. Performance analysis and load focus analysis are then performed, resource warning information and load focus information are generated, graphics processing instructions are optimized, and resource allocation and image post-processing are carried out.

Benefits of technology

It improves the accuracy and efficiency of graphics processing unit (GPU) operation, enables bidirectional information exchange between GPU and system resource manager, peripheral wrapper layer, post-processing unit and application, and optimizes GPU load and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115375531B_ABST
    Figure CN115375531B_ABST
Patent Text Reader

Abstract

The application discloses a data method, device and storage medium, the method comprises the following steps: obtaining hardware counting data of a graphics processor; compiling the hardware counting data to generate a working state index representing the working state of the graphics processor; and performing a processing operation associated with the graphics processor according to the working state index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data processing method, apparatus and storage medium. Background Technology

[0002] With the rapid development of artificial intelligence technology and the increasing number of high-throughput applications, the graphics processing unit (GPU) may experience temperature rise and excessive load during GPU operation, thus affecting the overall processing efficiency of the GPU.

[0003] Currently, to address potential issues like increased temperature and excessive load during GPU operation, the common approach is to increase the GPU's clock speed based on the overall temperature rise or load of the entire system. This method utilizes the overall information of the GPU for operational processing, but the accuracy of this process is relatively low. Summary of the Invention

[0004] To address the aforementioned technical problems, embodiments of this application provide a data processing method, apparatus, and storage medium that utilizes hardware counting data from a graphics processor to generate a working status index. This working status index can effectively characterize the working status of the graphics processor from different dimensions, thereby improving the accuracy of operation processing.

[0005] The technical solution of this application is implemented as follows:

[0006] This application provides a data processing method, the method comprising:

[0007] Obtain hardware count data from the graphics processor;

[0008] The hardware counting data is compiled to generate a working status index that characterizes the working state of the graphics processor.

[0009] Based on the operating status indicators, perform processing operations associated with the graphics processor.

[0010] In the above method, the working status indicators include at least one or more of the following: vertex processing status indicators, region mesh processing status indicators, interpolation operation usage status indicators, texture material operation status indicators, pixel operation status indicators, mathematical operation status indicators, and bandwidth indicators.

[0011] In the above method, the step of performing processing operations associated with the graphics processor based on the working status index includes:

[0012] The performance requirements of the graphics processor are analyzed using the aforementioned working status indicators, and resource warning information is generated.

[0013] Transmit the resource warning information to the system resource manager;

[0014] The system resource manager is invoked to allocate resources to the graphics processor based on the resource warning information.

[0015] In the above method, the step of performing processing operations associated with the graphics processor based on the working status index includes:

[0016] The graphics processor is subjected to load-focused analysis using the aforementioned working status indicators to generate load-focused information; the load-focused information is used to indicate the reasons why the graphics processor's load exceeds the limit.

[0017] The load-weighting information is transmitted to the peripheral packaging layer used by the graphics processor;

[0018] The outer wrapper layer is invoked to optimize graphics processing instructions and / or change the behavior of the graphics processor based on the load balancing information.

[0019] In the above method, the step of performing processing operations associated with the graphics processor based on the working status index includes:

[0020] Using the aforementioned working status indicators, reference information for supporting image post-processing is determined;

[0021] The reference information is transmitted to the post-processing unit;

[0022] The post-processing unit is invoked to perform post-processing on the image output by the graphics processor based on the reference information, thereby obtaining the processed image.

[0023] In the above method, the step of performing processing operations associated with the graphics processor based on the working status index includes:

[0024] The working status indicators are fed back to the application so that the application can adjust its settings based on the working status indicators to adjust the load of the graphics processor; the application is a program that uses the graphics processor to perform image processing.

[0025] In the above method, the step of performing processing operations associated with the graphics processor based on the working status index includes:

[0026] The working status indicators are uploaded to the cloud database as development guidance information associated with the graphics processor.

[0027] This application provides a data processing apparatus, including:

[0028] The acquisition module is used to acquire hardware count data of the graphics processor;

[0029] The indicator generation module is used to compile the hardware counting data and generate working status indicators that characterize the working status of the graphics processor.

[0030] The operation execution module is used to execute processing operations associated with the graphics processor based on the working status indicators.

[0031] This application provides a data processing apparatus, including: a processor, a memory, and a communication bus;

[0032] The communication bus is used to realize the communication connection between the processor and the memory;

[0033] The processor is used to execute the computer program stored in the memory to implement the above-described data processing method.

[0034] This application provides a computer-readable storage medium storing one or more computer programs that can be executed by one or more processors to implement the above-described data processing method.

[0035] This application provides a data processing method, apparatus, and storage medium. The method includes: acquiring hardware count data of a graphics processing unit (GPU); compiling the hardware count data to generate a working status index characterizing the working state of the GPU; and executing processing operations associated with the GPU based on the working status index. The technical solution provided by this application utilizes the GPU's hardware count data to generate a working status index. This working status index can effectively characterize the GPU's working state from different dimensions, thereby improving the accuracy of processing operations. Attached Figure Description

[0036] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0037] Figure 2 A schematic diagram illustrating an exemplary data processing procedure provided in an embodiment of this application;

[0038] Figure 3 A schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 1 ;

[0039] Figure 4 A schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 2 . Detailed Implementation

[0040] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings of the embodiments thereof. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant aspects of this application and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings.

[0041] This application provides a data processing method, implemented by a data processing device. Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 1 As shown, the main steps include:

[0042] S101. Obtain the hardware count data of the graphics processor.

[0043] In embodiments of this application, the data processing device acquires hardware count data of the graphics processor.

[0044] It should be noted that, in the embodiments of this application, the data processing device can directly obtain the hardware counter data of the graphics processor, which includes: drawing data when the drawing application calls the graphics processor to draw, and / or calculation data when the graphics processor is called to perform calculations.

[0045] S102. Compile the hardware counting data to generate a working status index that characterizes the working status of the graphics processor.

[0046] In the embodiments of this application, the data processing device compiles hardware counting data to generate a working status index characterizing the working state of the graphics processor.

[0047] It should be noted that, in the embodiments of this application, after the data processing device obtains the hardware count data of the graphics processor, it compiles the hardware count data to generate a working status index characterizing the working state of the graphics processor.

[0048] Specifically, in the embodiments of this application, the working status indicators include at least one or more of the following: vertex processing status indicators, region mesh processing status indicators, interpolation operation usage status indicators, texture material operation status indicators, pixel operation status indicators, mathematical operation status indicators, and bandwidth indicators.

[0049] It should be noted that, in the embodiments of this application, the vertex processing status index refers to the number of vertices used during graphics processing unit (GPU) drawing, for example, the number of vertices used, to characterize the GPU load during vertex drawing. The region mesh processing status index refers to the region mesh situation during GPU drawing; for example, the number of region meshes, to characterize the GPU load during region mesh drawing. The interpolation operation usage index refers to the interpolation operation situation during GPU drawing, characterizing the GPU load during interpolation operations. The texture material operation status index refers to the texture material operation situation during GPU drawing, characterizing the GPU load during texture material operations. The pixel operation status index refers to the pixel operation situation during GPU drawing, characterizing the GPU load during pixel operations. The mathematical operation status index refers to the mathematical operations used during GPU drawing or general computing, characterizing the GPU load during mathematical operations. The bandwidth index refers to the bandwidth used during GPU drawing or general computing, characterizing the GPU bandwidth requirements.

[0050] S103. Based on the working status indicators, execute the processing operations associated with the graphics processor.

[0051] In embodiments of this application, the data processing device performs processing operations associated with the graphics processor based on operating status indicators.

[0052] It should be noted that, in the embodiments of this application, after obtaining the working status index, the data processing device can perform processing operations associated with the graphics processor based on the working status index.

[0053] Specifically, in the embodiments of this application, the data processing device performs processing operations associated with the graphics processor based on the working status indicators, including: performing performance requirement analysis on the graphics processor using the working status indicators and generating resource warning information; transmitting the resource warning information to the system resource manager; and calling the system resource manager to allocate resources to the graphics processor based on the resource warning information.

[0054] It should be noted that, in the embodiments of this application, the data processing device can use operating status indicators to perform performance requirement analysis on the graphics processor and generate resource warning information. This resource warning information indicates that a certain resource in the graphics processor cannot support its normal operation. For example, the operating status indicators include mathematical operation status indicators that indicate insufficient mathematical operation capabilities of the graphics processor, or bandwidth indicators that indicate insufficient bandwidth of the graphics processor. At this time, the data processing device can transmit the resource warning information, including insufficient mathematical operation capabilities or insufficient bandwidth, to the System Resource Manager. Then, the System Resource Manager is invoked to allocate resources to the graphics processor according to the resource warning information; for example, increasing the mathematical operation capabilities of the graphics processor, increasing the bandwidth used by the graphics processor, increasing the voltage or frequency of the graphics processor, etc.

[0055] It should be noted that, in the embodiments of this application, after the data processing device performs performance requirement analysis on the graphics processor using working status indicators, it generates resource warning information. Then, the resource warning information is sent to the system resource manager to invoke the system resource manager, which allocates resources to the graphics processor in advance based on the resource warning information, thus ensuring the normal operation of the graphics processor.

[0056] Specifically, in the embodiments of this application, the data processing device performs processing operations associated with the graphics processor based on the working status indicators, including: performing load-weighting analysis on the graphics processor using the working status indicators to generate load-weighting information; the load-weighting information is used to indicate the cause of the graphics processor load exceeding the limit; transmitting the load-weighting information to the peripheral wrapping layer used by the graphics processor; and calling the peripheral wrapping layer to optimize graphics processing instructions and / or change the behavior of the graphics processor based on the load-weighting information.

[0057] It should be noted that, in the embodiments of this application, the data processing device can use working status indicators to perform load-focusing analysis on the graphics processor and generate load-focusing information. This load-focusing information indicates the reason why the graphics processor's load exceeds the limit. For example, the vertex processing status indicator obtained by the data processing device indicates that the number of vertices used by the graphics processor during drawing is too large, causing the graphics processor's load to exceed the limit during vertex drawing. In this case, the load-focusing information indicates that the number of vertices used by the graphics processor during drawing is too large. This information is then transmitted to the in-house wrapper used by the graphics processor, which then calls the in-house wrapper to optimize graphics processing instructions and / or change the behavior of the graphics processor based on the load-focusing information. For example, if the load-focusing information indicates that the number of vertices used by the graphics processor during drawing is too large, the in-house wrapper will reduce the number of vertices used by the graphics processor during vertex drawing to alleviate the excessive load on the graphics processor during vertex drawing. Specifically, reducing the number of vertices used by the graphics processor during vertex drawing can be achieved by changing the algorithm used for vertex drawing or other methods. The specific method can be set according to the actual situation or application scenario, and this application does not limit this.

[0058] It should be noted that, in the embodiments of this application, the outer wrapper layer is the outer wrapper layer of the standard interface used in graphics processor development, wherein the interface can be the Open Graphics Library (OpenGLES) or the graphics application programming interface (Vulkan).

[0059] Specifically, in the embodiments of this application, the data processing device performs processing operations associated with the graphics processor according to the working status index, including: using the working status index to determine reference information for supporting image post-processing; transmitting the reference information to the post-processing unit; and calling the post-processing unit to perform post-processing on the image output by the graphics processor according to the reference information to obtain the processed image.

[0060] It should be noted that, in the embodiments of this application, the data processing device can use the working status index to determine the reference information that supports image post-processing, and then transmit the reference information to the post-processing unit, and then call the post-processing unit to perform post-processing on the image output by the graphics processor according to the reference information to obtain the processed image.

[0061] It should be noted that in the embodiments of this application, if the graphics processor (GPU) performs fine-tuning or mitigation operations during the drawing process due to excessive load at a certain stage; for example, as mentioned above, if the GPU uses a large number of vertices during drawing, leading to excessive load during vertex drawing, the outer wrapper layer will reduce the number of vertices used by the GPU to alleviate the excessive load. In this case, reducing the number of vertices used in vertex drawing will result in reduced image quality and lower resolution. Therefore, Artificial Intelligence-Super Resolution (AI-SR) technology is needed to improve the resolution. At this point, the reference information can be directly related to image post-processing techniques, such as Artificial Intelligence-Variable Rate Shading (AI-VRS), AI-SR super-resolution, and denoising techniques. It can also be the result of fine-tuning or mitigable operations, such as reduced image quality or increased noise. Furthermore, it can be due to the graphics processor failing to meet expectations during image processing, such as encountering bottlenecks when handling ray tracing effects. The specific reference information can be set according to the actual situation and application requirements; this application does not limit its scope.

[0062] It should be noted that, in the embodiments of this application, the data processing device determines the reference information that supports image post-processing, and then transmits the reference information to the post-processing unit, thereby calling the post-processing unit to perform post-processing on the image output by the graphics processor according to the reference information to obtain the processed image. For example, the reference information is that a bottleneck is encountered when processing ray tracing effects. The data processing device provides this information to the post-processing unit, and then the post-processing unit performs noise reduction processing on the image output by the graphics processor according to the information.

[0063] Specifically, in the embodiments of this application, the data processing device performs processing operations associated with the graphics processor based on the working status indicators, including: feeding back the working status indicators to the application so that the application can adjust the application settings based on the working status indicators to realize the load adjustment of the graphics processor; the application is a program that uses the graphics processor to perform image processing.

[0064] It should be noted that, in the embodiments of this application, after the data processing device obtains the working status index, it feeds the working status index back to the application program so that the application program can adjust the application settings based on the working status index to realize the load adjustment of the graphics processor. The application program is a program that uses the graphics processor to perform image processing.

[0065] It should be noted that, in the embodiments of this application, the data processing device can feed back the working status indicators to the game program. Then, the game program adjusts the application settings based on the working status indicators to adjust the load of the graphics processor. For example, if the mathematical operation status indicators included in the working status indicators indicate that the mathematical operation capability of the graphics processor is insufficient, the game program can replace the algorithm with a more appropriate one or modify the accuracy settings in a timely manner to improve the GPU load situation and increase the smoothness of the game.

[0066] It should be noted that, in the embodiments of this application, the data processing device can feed back the working status indicators to the application, and then adjust the application settings based on the working status indicators to adjust the load of the graphics processor. This realizes two-way information interaction between the graphics processor and the application, and ensures the real-time adjustment and optimization of the application.

[0067] It should be noted that, in the embodiments of this application, the data processing device can also feed back the working status indicators to the developers or development companies of the upper-layer application of the graphics processor. Then, the developers or development companies can adjust the application settings based on the working status indicators through the upper-layer application to achieve the load adjustment of the graphics processor.

[0068] Specifically, in the embodiments of this application, the data processing device performs processing operations associated with the graphics processor based on the working status indicators, including: uploading the working status indicators as development guidance information associated with the graphics processor to a cloud database.

[0069] It should be noted that, in the embodiments of this application, after obtaining the working status indicators, the data processing device uploads these indicators as development guidance information associated with the graphics processor to the cloud database. This development guidance information can be fed back to developers as a basis for subsequent product planning, platform feedback, and future optimization directions for Internet Protocol (IP). For example, if the data stored in the cloud database shows that the GPU typically experiences the highest load during the region mesh generation process—meaning the graphics processor, as represented by the region mesh processing status indicator, is overloaded during the region mesh rendering process—the results analyzed by the cloud database will be fed back to developers as development guidance information, suggesting improvements to the graphics processor's processing capabilities during region mesh rendering.

[0070] Figure 2 This is a schematic diagram illustrating an exemplary data processing procedure provided for embodiments of this application. In the embodiments of this application, the GPU may be manufactured by different manufacturers according to different specifications, such as... Figure 2As shown, chip platform A, chip platform B, and chip platform C can each include GPUs from different manufacturers, and each chip platform A, chip platform B, and chip platform C contains one or more counters. Specifically, the data processing device can sample from the counters of each chip platform to obtain the GPU's hardware count data. Then, it compiles the hardware count data to generate a working status index characterizing the graphics processor's operating state. The working status index includes at least one or more of the following: vertex processing status index, region mesh processing status index, interpolation operation usage status index, texture material operation status index, pixel operation status index, mathematical operation status index, and bandwidth index. Finally, based on the working status index, it executes processing operations associated with the graphics processor. Specifically, as shown... Figure 2 As shown, the data processing device can use working status indicators to perform performance requirement analysis on the graphics processor (GPU), generate resource warning information, and then transmit it to the system resource manager to invoke the system resource manager and allocate resources to the GPU based on the resource warning information. The data processing device can also use working status indicators to perform load balancing analysis on the GPU, generate load balancing information, and then transmit the load balancing information to the outer wrapper layer to invoke the outer wrapper layer to perform fine-tuning or other mitigation operations on the GPU based on the load balancing information. Furthermore, the data processing device can use working status indicators to determine reference information to support image post-processing, and then notify the post-processing unit to invoke the post-processing unit to perform post-processing on the image output by the GPU based on the reference information: dynamic variable rate shading, super-resolution processing, and noise reduction processing, resulting in a processed image. The data processing device can also provide feedback on working status indicators to third-party objects, allowing them to adjust application settings based on the working status indicators to achieve GPU load adjustment. Finally, the data processing device can use working status indicators as development guidance information associated with the GPU and upload it to a cloud database as a reference for development direction.

[0071] This application provides a data processing method, which includes: acquiring hardware count data of a graphics processing unit (GPU); compiling the hardware count data to generate a working status index characterizing the working state of the GPU; and executing processing operations associated with the GPU based on the working status index. The data processing method provided in this application utilizes the GPU's hardware count data to generate a working status index. This working status index can effectively characterize the GPU's working state from different dimensions, thereby improving the accuracy of processing operations.

[0072] This application provides a data processing apparatus. Figure 3 A schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 1 .like Figure 3 As shown, it includes:

[0073] The acquisition module 301 is used to acquire hardware count data of the graphics processor;

[0074] The indicator generation module 302 is used to compile the hardware counting data and generate a working status indicator that characterizes the working status of the graphics processor.

[0075] The operation execution module 303 is used to execute processing operations associated with the graphics processor according to the working status indicators.

[0076] In one embodiment of this application, the working status indicators include at least one or more of the following: vertex processing status indicators, region mesh processing status indicators, interpolation operation usage status indicators, texture material operation status indicators, pixel operation status indicators, mathematical operation status indicators, and bandwidth indicators.

[0077] In one embodiment of this application, the operation execution module 303 is further configured to perform performance requirement analysis on the graphics processor using the working status indicators, generate resource warning information; transmit the resource warning information to the system resource manager; and call the system resource manager to allocate resources to the graphics processor according to the resource warning information.

[0078] In one embodiment of this application, the operation execution module 303 is further configured to perform load-side analysis on the graphics processor using the working status indicators, and generate load-side information; the load-side information is used to indicate the cause of the graphics processor load exceeding the limit; transmit the load-side information to the peripheral wrapping layer used by the graphics processor; and call the peripheral wrapping layer to optimize graphics processing instructions and / or change the behavior of the graphics processor according to the load-side information.

[0079] In one embodiment of this application, the operation execution module 303 is further configured to use the working status index to determine reference information for supporting image post-processing; transmit the reference information to the post-processing unit; and call the post-processing unit to perform post-processing on the image output by the graphics processor according to the reference information to obtain the processed image.

[0080] In one embodiment of this application, the operation execution module 303 is further configured to feed back the working status indicator to the application, so that the application can adjust the application settings based on the working status indicator to realize the load adjustment of the graphics processor; the application is a program that uses the graphics processor to perform image processing.

[0081] In one embodiment of this application, the operation execution module 303 is further configured to upload the working status indicators as development guidance information associated with the graphics processor to a cloud database.

[0082] This application provides a data processing apparatus. Figure 4 A schematic diagram of the structure of a device provided in an embodiment of this application. Figure 2 .like Figure 4 As shown, the device includes: a processor 401, a memory 402, and a communication bus 403;

[0083] The communication bus 403 is used to realize the communication connection between the processor 401 and the memory 402;

[0084] The processor 401 is used to execute the computer program stored in the memory 402 to implement the above-described data processing method.

[0085] This application provides a data processing apparatus that acquires hardware count data of a graphics processor (GPU); compiles the hardware count data to generate a working status index characterizing the GPU's operating state; and executes processing operations associated with the GPU based on the working status index. The data processing apparatus provided by this application utilizes the GPU's hardware count data to generate the working status index. This working status index can effectively characterize the GPU's operating state from different dimensions, thereby improving the accuracy of the processing operations.

[0086] This application provides a computer-readable storage medium storing one or more computer programs, which can be executed by one or more processors to implement the above-described data processing method. The computer-readable storage medium can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or it can be a device including one or any combination of the above-described memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.

[0087] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0088] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0089] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0090] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0091] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data processing method, characterized by, The method comprises: obtaining hardware counting data of a graphics processor; the hardware counting data comprises calculation data when the graphics processor is called for calculation; compiling the hardware counting data to generate a working state index representing a working state of the graphics processor from different dimensions; the working state index comprises one or more of a vertex processing condition index, a region grid processing condition index, an interpolation operation usage condition index, a texture material operation condition index, a pixel point operation condition index, a mathematical operation condition index, and a bandwidth index; performing a processing operation associated with the graphics processor according to the working state index; wherein the performing of the processing operation associated with the graphics processor according to the working state index comprises: determining reference information for supporting image post-processing using the working state index; transmitting the reference information to a post-processing unit; calling the post-processing unit to perform post-processing on an image output by the graphics processor according to the reference information, wherein the post-processing comprises dynamic variable rate shading processing, super-resolution processing, and noise reduction processing, to obtain a processed image.

2. The method of claim 1, wherein, The performing of the processing operation associated with the graphics processor according to the working state index comprises: performing performance requirement analysis on the graphics processor using the working state index to generate resource warning information; transmitting the resource warning information to a system resource manager; calling the system resource manager to perform resource allocation on the graphics processor according to the resource warning information.

3. The method of claim 1, wherein, The performing of the processing operation associated with the graphics processor according to the working state index comprises: performing load emphasis analysis on the graphics processor using the working state index to generate load emphasis information; the load emphasis information is used to indicate a cause of the load of the graphics processor exceeding a limit; transmitting the load emphasis information to a peripheral wrapper layer adopted by the graphics processor; calling the peripheral wrapper layer to optimize graphics processing instructions and / or change behaviors of the graphics processor according to the load emphasis information.

4. The method of claim 1, wherein, The performing of the processing operation associated with the graphics processor according to the working state index comprises: feeding back the working state index to an application program, so that the application program adjusts application settings based on the working state index to achieve load adjustment of the graphics processor; the application program is a program for image processing using the graphics processor.

5. The method of claim 1, wherein, The performing of the processing operation associated with the graphics processor according to the working state index comprises: uploading the working state index to a cloud database as development guidance information associated with the graphics processor.

6. A data processing apparatus, characterized by, comprises: an obtaining module configured to obtain hardware counting data of a graphics processor; the hardware counting data comprises calculation data when the graphics processor is called for calculation; ​ The index generation module is configured to compile the hardware counting data to generate a working state index representing the working state of the graphic processor from different dimensions; the working state index comprises at least one or more of a vertex processing condition index, a region grid processing condition index, an interpolation operation usage condition index, a texture material operation condition index, a pixel point operation condition index, a mathematical operation condition index, and a bandwidth index; The operation execution module is configured to execute a processing operation associated with the graphic processor according to the working state index; The operation execution module is further configured to determine reference information for supporting image post-processing by using the working state index, transmit the reference information to a post-processing unit, and call the post-processing unit to perform post-processing on the image output by the graphic processor according to the reference information, wherein the post-processing includes dynamic variable rate shading processing, super-resolution processing, and noise reduction processing, and the post-processing obtains a processed image.

7. A data processing apparatus, characterized by Comprise: a processor, a memory, and a communication bus; The communication bus is configured to realize the communication connection between the processor and the memory; The processor is configured to execute a computer program stored in the memory to realize the data processing method of any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to realize the data processing method of any one of claims 1-5.

Citation Information

Patent Citations

  • A GPU performance statistical analysis method based on a data flow model

    CN109697157A

  • Graphics Processing Unit Resource Dependency Viewer

    US20190370927A1