GPU Workload Prediction via Command Buffer Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing GPU power management techniques fail to synchronize operating levels with rapidly fluctuating workloads due to delayed sampling and adjustment, leading to inefficiencies and reduced performance.

Innovation Solution

A system that predicts incoming workloads to a GPU by analyzing command buffers, graphics calls, and APIs, identifying an operational floor to configure the GPU's operating level, including voltage, frequency, and bandwidth, to ensure timely and efficient processing, synchronizing with workload fluctuations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If sampling-based power management is used to adjust GPU operating level, then power consumption is reduced, but the GPU operating level becomes out of sync with rapidly fluctuating workloads

Engineering Contradiction:
Improvepower consumptionVSAvoidsynchronization between operating level and workload
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The patent applies preliminary action by predicting the future workload before it actually occurs. The workload prediction module analyzes command buffers, graphics calls, and API calls to forecast upcoming workload characteristics, allowing the GPU operating level to be adjusted in advance rather than reactively after sampling delays. This enables the system to proactively configure the GPU at the appropriate operating level before the workload arrives, eliminating the synchronization problem caused by delayed sampling-based approaches.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If the GPU operating level is increased to handle high workload, then processing speed is improved, but power consumption increases

Engineering Contradiction:
Improveprocessing speedVSAvoidpower consumption
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The patent implements dynamics by making the GPU operating level adaptive and continuously adjustable based on predicted workload characteristics. Instead of using fixed or periodically sampled workload levels, the system dynamically configures the GPU operating level (voltage, frequency, power state) in real-time according to the forecasted workload. This allows the GPU to operate at the minimum necessary power level for the anticipated workload, optimizing the trade-off between processing speed and power consumption.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies parameter changes by adjusting multiple GPU operating parameters (voltage, frequency, power state) based on predicted workload characteristics. The workload prediction module forecasts workload intensity, complexity, and duration, and the GPU configuration module translates these predictions into appropriate operating parameter settings. This enables precise control over the GPU's power consumption and performance characteristics, allowing the system to optimize for either speed or power savings depending on the anticipated workload requirements.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If sampling interval is extended to reduce processing overhead, then power management efficiency is improved, but response time to workload changes increases

Engineering Contradiction:
Improvepower management efficiencyVSAvoidresponse time to workload changes
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent eliminates the trade-off between sampling interval and response time by using preliminary workload prediction. Instead of waiting for workload samples to accumulate over extended intervals, the system continuously monitors workload indicators (command buffers, graphics calls, API calls) and predicts future workload characteristics. This allows the GPU operating level to be adjusted immediately in response to predicted workload changes, achieving both high power management efficiency and rapid response time without the delays inherent in traditional sampling approaches.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9984431B2GPU workload prediction and management
Publication Date: 2018.05.29 APPLE INC
  • US9984431B2 patent drawing
  • US9984431B2 patent drawing
  • US9984431B2 patent drawing

AI summary

The disclosed embodiments provide a system that configures a graphics-processing unit (GPU) in a computer system. During operation, the system predicts an incoming workload to the GPU. Next, the system identifies an operational floor for the GPU based on the incoming workload. Finally, the system uses the operational floor to configure the subsequent execution of the GPU, wherein the operational floor facilitates processing of the incoming workload by the GPU.