# US 2013/0159630 A1 · Selective cache for inter-operations in a processor-based environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159630 A1
- Document ID: US20130159630A1
- Status: Published application
- Kind: A1
- Application number: 13/332,260
- Filed: 2011-12-20
- Published: 2013-06-20
- Earliest claimed: 2011-12-20
- Assignees: ATI Technologies ULC
- Inventors: Yury Lichmanov
- Web page: https://patentgrep.com/patent/US20130159630A1

## CPC

- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides embodiments of methods and apparatuses for selective caching of data for inter-operations in a heterogeneous computing environment. One embodiment of a method includes allocating a portion of a first cache for caching for two or more processing elements and defining a replacement policy for the allocated portion of the first cache. The replacement policy restricts access to the first cache to operations associated with more than one of the processing elements.

## Claims

### Claim 1

A method, comprising:
allocating a portion of a first cache for caching data for at least two processing elements; and
defining a replacement policy for the allocated portion of the first cache, wherein the replacement policy restricts access to the first cache to operations associated with more than one of said at least two processing elements.

### Claim 2 (depends on 1)

The method of claim 1, comprising caching data in the first cache according to the replacement policy in response to the data being evicted from at least one of said at least two processing elements.

### Claim 3 (depends on 2)

The method of claim 2, comprising determining that the evicted data is eligible to be written to the first cache based on a flag associated with the evicted data.

### Claim 4 (depends on 3)

The method of claim 3, comprising setting the flag associated with the data to indicate that the data is eligible to be written to the first cache when the data is associated with inter-operations performed by more than one of said at least two processing elements.

### Claim 5 (depends on 3)

The method of claim 3, wherein the flag associated with the data is not set when the data is associated with an operation performed by only one of said at least two processing elements, and wherein the evicted data bypasses the first cache when the flag associated with the data is not set.

### Claim 7 (depends on 2)

The method of claim 2, wherein caching the data in the first cache comprises caching data that has been evicted from at least one of an L1 cache, an L2 cache, or a write/combine buffer in a central processing unit.

### Claim 8 (depends on 2)

The method of claim 2, wherein caching the data in the first cache comprises caching data that has been evicted from a cache in a graphics processing unit.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first cache is part of a through-silicon-via memory stack that is communicatively coupled to said at least two processing elements by an interposer.

### Claim 10 (depends on 1)

The method of claim 1, wherein said at least two processing elements comprises at least two processor cores.

### Claim 11

A method, comprising:
caching data in a cache memory that is communicatively coupled to at least two processing elements according to a replacement policy that restricts access to the cache memory to data for operations associated with more than one of said at least two processing units.

### Claim 12 (depends on 11)

The method of claim 11, comprising caching data that has been evicted from memory associated with one of said at least two processing elements in response to determining that the evicted data is eligible to be written to the cache memory based on a flag associated with the evicted data.

### Claim 13 (depends on 11)

The method of claim 11, wherein caching the data in the cache memory comprises caching data that has been evicted from at least one of an L1 cache, an L2 cache, or a write/combine buffer in a central processing unit.

### Claim 14 (depends on 11)

The method of claim 11, wherein caching the data in the cache memory comprises caching data that has been evicted from a cache in a graphics processing unit.

### Claim 15 (depends on 11)

The method of claim 11, wherein the cache memory is part of a through-silicon-via memory stack that is communicatively coupled to said at least two processing elements by an interposer.

### Claim 16 (depends on 11)

The method of claim 11, wherein said at least two processing units comprise at least two processor cores.

### Claim 17

An apparatus, comprising:
means for allocating a portion of a first cache for caching data for at least two processing elements; and
means for defining a replacement policy for the allocated portion of the first cache, wherein the replacement policy restricts access to the first cache to operations associated with more than one of said at least two processing elements.

### Claim 18

An apparatus comprising:
a cache for caching data in a cache memory that is communicatively coupled to at least two processing elements according to a replacement policy that restricts access to the cache memory to data for operations associated with more than one of said at least two processing elements.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the cache comprises a cache management unit, said cache management unit enforcing said replacement policy.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein said cache management unit allocates a portion of the cache for caching data for the least two processing elements.

### Claim 21

An apparatus, comprising:
at least two processing elements; and
a first cache that is communicatively coupled to said at least two processing elements, wherein the first cache is adaptable to cache data according to a replacement policy that restricts access to the first cache to operations associated with more than one of said at least two processing elements.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein said at least two processing elements are configured to write data to the first cache in response to determining that the evicted data is eligible to be written to the first cache based on a flag associated with the evicted data.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein each processing element is configured to set the flag associated with the data to indicate that the data is eligible to be written to the first cache when the data is associated with inter-operations performed by more than one of said at least two processing elements.

### Claim 24 (depends on 22)

The apparatus of claim 22, wherein the flag associated with the data is not set when the data is associated with an operation performed by only one of said at least two processing elements, and wherein the evicted data bypasses the first cache when the flag associated with the data is not set.

### Claim 25 (depends on 21)

The apparatus of claim 21, wherein said at least two processing elements comprise a central processing unit and a graphics processing unit.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the central processing unit comprises at least one of an L1 cache, an L2 cache, or a write/combine buffer, and wherein the graphics processing unit comprises at least one cache.

### Claim 27 (depends on 21)

The apparatus of claim 21, wherein said at least two processing elements comprise at least two processor cores.

### Claim 28 (depends on 21)

The apparatus of claim 21, comprising:
a substrate;
an interposer formed on the substrate; and
a through-silicon-via memory stack that is communicatively coupled to said at least two processing elements via the interposer, and wherein the first cache is part of the through-silicon-via memory stack.
