GPU occupancy rate determination method and device, processing system and storage medium
A technology to determine the method and occupancy rate, which is applied in the direction of electrical digital data processing, instruments, hardware monitoring, etc., and can solve the problem that the occupancy of resources in the working state is not monitored.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] This embodiment provides a method for determining the GPU occupancy rate of a graphics processor, which can determine the occupancy rate of the GPU, can determine the occupancy rate of the GPU in the processing system, and can also determine the occupancy rate of the working modules in the GPU in the GPU, for example: Determine the occupancy rate of working modules such as 2D module and 3D module.
[0024] In practical applications, the method for determining the GPU occupancy rate of a graphics processor can be implemented by a computer program, such as application software, etc.; or, the method can also be implemented as a medium storing related computer programs, such as a U disk, a cloud disk, etc.; Alternatively, the method may also be implemented by an entity device integrated or installed with a relevant computer program, such as a chip, a mobile smart device, and the like.
[0025] figure 1 It is a flow chart of the method for determining the GPU occupancy rate...
Embodiment 2
[0040] This embodiment optimizes the foregoing method for determining the GPU occupancy rate on the basis of the foregoing embodiments, and provides a specific implementation manner.
[0041] figure 2 It is a flow chart of the method for determining the GPU occupancy rate provided in Embodiment 2 of the present application. Such as figure 2 As shown, the method for determining the GPU occupancy rate provided in this embodiment includes:
[0042] Step 201 , within a preset period, acquire the working status of the GPU according to the preset sampling frequency, and add 1 to the sampling counter after acquiring the working status once.
[0043] The working state of the GPU includes a busy state and an idle state. In a preset period, the working state of the GPU is acquired multiple times according to the preset sampling frequency. And set a sampling counter, clear the sampling counter at the beginning of the preset period, and add 1 to the sampling counter after obtaining ...
Embodiment 3
[0061] This embodiment optimizes the method for determining the GPU occupancy rate on the basis of the above-mentioned embodiments, and in particular provides a specific implementation method:
[0062] image 3 It is a flow chart of the method for determining the GPU occupancy provided in Embodiment 3 of the present application. Such as image 3 As shown, the determination method includes:
[0063] Step 301 , start a working state acquisition timer.
[0064] The timing time of the timer is a preset period, and the following steps are executed after the timer is started. After the timer stops, execution of the following steps stops.
[0065] Step 302, initialize the sampling counter and the working state counter.
[0066] Specifically, the sampling counter and the working state counter are cleared.
[0067] Step 303: Add 1 to the sampling counter.
[0068] Step 304, read the flag bit corresponding to the GPU in the status register.
[0069] The value of this flag bit is...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


