Work Item-Aware GPU Cache Policy Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current graphics processing unit (GPU) cache policies are inefficient as they apply a single policy across different work items, leading to sub-optimal performance and increased power consumption due to varying traffic patterns within GPU workloads.

Innovation Solution

Implementing work item-aware cache policies that detect and differentiate between various work items based on performance counters and traffic patterns, using static, dynamic, or hybrid policies optimized through offline and runtime learning models to adjust cache allocation and replacement strategies.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If a single cache policy is applied across all work items, then device complexity is reduced and ease of operation is improved, but cache hit rate decreases and power consumption increases

Engineering Contradiction:
Improvecache policy managementVSAvoidpower consumption
Core Design Contradiction:
Ease of operationVSLoss of energy

Solution Approach 1:

The patent segments the cache policy management by introducing work item identification and classification mechanisms. Different cache policies are assigned to different work items based on their characteristics, allowing the system to optimize for each work item type while maintaining manageable complexity through structured policy selection logic.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic cache policy selection that adapts to different work items. The policy selection logic dynamically determines appropriate cache policies based on work item characteristics, enabling the cache system to respond to varying traffic patterns and optimize performance without requiring manual reconfiguration.

Inventive Principle:
Principle #15Dynamics

2Productivity

If a single cache policy is applied across all work items, then device complexity is reduced, but cache hit rate and performance decrease

Engineering Contradiction:
ImproveGPU performanceVSAvoidcache policy management
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments cache policy management into distinct components: work item identification, policy selection logic, and policy application. This segmentation allows the system to implement multiple specialized policies for different work item types while keeping the overall management structured and manageable.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces policy selection logic as an intermediary component between the cache memory hierarchy and work items. This intermediary automatically selects appropriate cache policies based on work item characteristics, shielding the complexity of multiple policies from the user while enabling performance optimization.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If cache policies are tailored to specific work items, then cache hit rate increases and power consumption decreases, but device complexity and difficulty of policy selection increase

Engineering Contradiction:
Improvecache hit rateVSAvoidcache policy management
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the cache system into work item-aware components that can identify and classify different work items. This segmentation enables targeted cache policies for each work item type, improving cache hit rates while managing complexity through structured classification and policy mapping.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements self-service mechanisms where the cache system automatically monitors performance counters and adjusts cache policies based on observed work item characteristics. This automation reduces the need for manual policy configuration and selection, managing complexity while maintaining high cache hit rates.

Inventive Principle:
Principle #25Self-service

4Loss of substance

If work item-aware cache policies are implemented, then data movement is reduced and efficiency improves, but device complexity and monitoring requirements increase

Engineering Contradiction:
Improvedata movementVSAvoidmonitoring infrastructure
Core Design Contradiction:
Loss of substanceVSDevice complexity

Solution Approach 1:

The patent implements performance counters with multiple functions: they monitor work item characteristics for identification, track cache performance metrics, and provide input for policy selection. This multi-functionality reduces the need for separate monitoring infrastructure while enabling work item-aware cache policies that minimize data movement.

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

Data Source

PatentUS11610281B2Methods and apparatus for implementing cache policies in a graphics processing unit
Publication Date: 2023.03.21 SAMSUNG ELECTRONICS CO LTD
  • US11610281B2 patent drawing
  • US11610281B2 patent drawing
  • US11610281B2 patent drawing

AI summary

A method of processing a workload in a graphics processing unit (GPU) may include detecting a work item of the workload in the GPU, determining a cache policy for the work item, and operating at least a portion of a cache memory hierarchy in the GPU for at least a portion of the work item based on the cache policy. The work item may be detected based on information received from an application and/or monitoring one or more performance counters by a driver and/or hardware detection logic. The method may further include monitoring one or more performance counters, wherein the cache policy for the work item may be determined and/or changed based on the one or more performance counters. The cache policy for the work item may be selected based on a runtime learning model.