DVFS Hardware Counting Active Memory Barriers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current dynamic voltage and frequency scaling (DVFS) technologies in processing units, such as GPUs, introduce delays due to software-implemented decision-making and are not well-suited for GPU architectures, failing to promptly adjust voltage or frequency in response to workload changes.

Innovation Solution

Implementing DVFS hardware that counts active memory barriers within compute unit islands to dynamically adjust operating voltages and frequencies based on changes in the number of active memory barriers, allowing for real-time modifications at predetermined intervals or hybrid techniques combining dynamic and static triggering.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If software-implemented DVFS is used, then flexibility in decision-making is improved, but response time and speed of voltage/frequency adjustment deteriorate

Engineering Contradiction:
Improveflexibility in decision-makingVSAvoidresponse time
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

The patent introduces hardware counters as an intermediary component between the software DVFS controller and the actual voltage/frequency adjustment mechanism. These counters directly track memory barrier events and trigger voltage/frequency changes without requiring continuous software intervention, thereby maintaining software flexibility while achieving hardware-speed response times.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the software-based decision-making mechanism with a hardware-based counting and triggering mechanism. The hardware counters automatically detect memory barrier events and generate trigger signals for DVFS, substituting the slow software polling and decision-making process with fast hardware-level operations that execute at the speed of the underlying hardware events.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Speed

If hardware DVFS counters are implemented, then response speed is improved, but device complexity increases

Engineering Contradiction:
Improveresponse speedVSAvoidhardware complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent leverages the existing memory barrier infrastructure already present in GPU architectures for its primary purpose of ensuring correct memory ordering. The same memory barrier events are repurposed to trigger DVFS actions, allowing the system to achieve fast hardware-level response without adding separate sensing mechanisms or increasing overall device complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The hardware counters automatically track memory barrier events and generate trigger signals without requiring external control or complex coordination logic. The system serves itself by using its own internal memory barrier events to drive the DVFS decisions, eliminating the need for additional sensors, controllers, or complex hardware management circuits.

Inventive Principle:
Principle #25Self-service

3Productivity

If frequent voltage/frequency adjustments are made, then performance optimization is improved, but energy overhead from adjustments increases

Engineering Contradiction:
Improveperformance optimizationVSAvoidenergy overhead
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent implements DVFS adjustments triggered by periodic memory barrier events rather than continuous monitoring. Each memory barrier event serves as a natural periodic checkpoint where the system evaluates whether voltage/frequency changes are needed, allowing performance optimization while avoiding unnecessary adjustments between barriers and thus reducing energy overhead from frequent changes.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS12124311B2Dynamic voltage frequency scaling based on active memory barriers
Publication Date: 2024.10.22 ADVANCED MICRO DEVICES INC
  • US12124311B2 patent drawing
  • US12124311B2 patent drawing
  • US12124311B2 patent drawing

AI summary

A processing unit includes compute units partitioned into one or islands that are provided with operating voltages and clock signals having clock frequencies independent of providing operating voltages or clock signals to other islands of compute units. The processing unit also includes dynamic voltage and frequency scaling (DVFS) hardware configured to compute one or more numbers of active memory barriers in the one or more islands. The DVFS hardware is also configured to modify the operating voltages or clock frequencies provided to the one or more islands in response to a change in numbers of active memory barriers in the one or more islands. In some cases, the operating voltage or clock frequency provided to an island is increased in response to the number of active memory barriers in the island decreasing. The operating voltage or clock frequency provided to the island is decreased in response to the number of active memory barriers in the island increasing.