# US 8,578,097 B2 · Scatter-gather intelligent memory architecture for unstructured streaming data on multiprocessor systems

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

- Number: US 8,578,097 B2
- Document ID: US8578097B2
- Status: Granted
- Kind: B2
- Application number: 13/280,117
- Filed: 2011-10-24
- Published: 2012-02-16
- Granted: 2013-11-05
- Earliest claimed: 2006-05-10
- Assignees: Intel Corporation
- Applicants: Daehyun Kim; Christopher J. Hughes; Yen-Kuang Chen; Partha Kundu
- Inventors: Daehyun Kim; Christopher J. Hughes; Yen-Kuang Chen; Partha Kundu
- Web page: https://patentgrep.com/patent/US8578097B2

## CPC

- G06F 12/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0815: Cache consistency protocols
- G06F 12/0817: using directory methods
- G06F 12/0862: with prefetch
- G06F 12/0877: Cache access modes
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G11C 7/1072: {for memories with random access ports synchronised on clock signal pulse trains, e.g. synchronous memories, self timed memories}
- G11C 7/1075: {for multiport memories each having random access ports and serial ports, e.g. video RAM}
- G06F 2212/6026: Prefetching based on access pattern detection, e.g. stride based prefetch
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A scatter/gather technique optimizes unstructured streaming memory accesses, providing off-chip bandwidth efficiency by accessing only useful data at a fine granularity, and off-loading memory access overhead by supporting address calculation, data shuffling, and format conversion.

## Claims

### Claim 1

An apparatus comprising:
a core including a computation processor and a scatter/gather engine coupled to the computation processor, the scatter/gather engine to generate sub-cache line sized non-sequential data accesses to an off-chip memory based on an access pattern, to communicate sub-cache line sized data with the off-chip memory, wherein the scatter/gather engine includes an access processor to compute memory addresses for the sub-cache line sized non-sequential data accesses and perform data format conversion, and an access pattern generator to generate the sub-cache line sized non-sequential data accesses to the off-chip memory based on a program defined access pattern; and
a cache coupled to the core, data to be transferred between the cache and the off-chip memory using full-cache line sized transfers.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the access pattern generator is to generate the sub-cache line sized non-sequential data accesses to the off-chip memory based on a stride-based access pattern.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the access pattern generator is to generate the sub-cache line sized non-sequential data accesses to the off-chip memory based on an indirect access pattern.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the scatter/gather engine further comprises:
a stream port coupled to the computation processor, the stream port including a buffer capable of storing ordered data accessible by the access processor and the computation processor.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the scatter/gather engine further comprises:
a cache interface coupled to the cache, the cache interface in conjunction with the cache to provide data coherence when a same data is accessed through both the cache and the scatter/gather engine.

### Claim 6 (depends on 1)

The apparatus of claim 1, further comprising:
a memory controller coupled to the scatter/gather engine and the off-chip memory, the memory controller to support both cache line and sub-cache line sized data accesses to the off-chip memory.

### Claim 7

A method comprising:
transferring full-cache line sized data between a cache of a multicore processor and an off-chip memory;
generating, by a scatter/gather engine of the multicore processor, sub-cache line sized non-sequential data accesses to the off-chip memory based on an access pattern to transfer sub-cache line sized data between the multicore processor and the off-chip memory, the sub-cache line sized data having less bits than the data transferred using the full-cache line sized data transfers; and
computing memory addresses for the sub-cache line sized non-sequential data accesses, performing data format conversion, and generating the sub-cache line sized non-sequential data access addresses for the off-chip memory based on a stride-based access pattern.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
allocating a stream port in the scatter/gather engine to handle the sub-cache line sized data; and
directing access to the off-chip memory through the allocated stream port.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
allocating a stream port in the scatter/gather engine to a thread in the multicore processor; and
in response to a thread context switch, releasing the stream port after write data stored in the stream port has been written to the off-chip memory.

### Claim 10 (depends on 7)

The method of claim 7, further comprising generating the sub-cache line sized non-sequential data access addresses for the off-chip memory based on an indirect access pattern.

### Claim 11 (depends on 7)

The method of claim 7, further comprising enforcing data coherency when a same data is accessed through both the cache and the scatter/gather engine.

### Claim 12 (depends on 7)

The method of claim 7, further comprising enforcing data coherency via a mutual exclusion of the data in a buffer in the scatter/gather engine or in the cache.

### Claim 13 (depends on 12)

The method of claim 12, further comprising enforcing the data coherency via an address range check in a directory.

### Claim 14

A system comprising:
a processor including:
a computation processor;
a scatter/gather engine including a stream port, an access processor, and a cache interface, wherein the scatter/gather engine includes an access pattern generator to generate sub-cache line sized non-sequential data accesses to an off-chip memory based on a program defined access pattern; and
a cache memory coupled to the computation processor and the scatter/gather engine, to communicate sub-cache line sized data with the off-chip memory; and
a dynamic random access memory (DRAM) coupled to the processor.

### Claim 15 (depends on 14)

The system of claim 14, wherein the computation processor is to allocate a stream port and to map an access pattern to the allocated stream port, the access processor to execute a handler to obtain data of a matrix multiplication operation and place the data in the allocated stream port, and the computation processor to access the placed data to perform the matrix multiplication operation.

### Claim 16 (depends on 14)

The system of claim 14, wherein the computation processor is to perform a computation on operands obtained by the scatter/gather engine.

### Claim 17 (depends on 14)

The system of claim 14, wherein the DRAM corresponds to the off-chip memory.
