# US 2017/0293487 A1 · Flexible framework to support memory synchronization operations

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

- Number: US 2017/0293487 A1
- Document ID: US20170293487A1
- Status: Published application
- Kind: A1
- Application number: 15/096,205
- Filed: 2016-04-11
- Published: 2017-10-12
- Earliest claimed: 2016-04-11
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Shuai Che; Marc S. Orr; Bradford M. Beckmann
- Web page: https://patentgrep.com/patent/US20170293487A1

## CPC

- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0815: Cache consistency protocols
- G06F 12/0837: with software control, e.g. non-cacheable data
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 12/10: Address translation
- G06F 2212/1016: Performance improvement
- G06F 2212/452: Instruction code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of performing memory synchronization operations is provided that includes receiving, at a programmable cache controller in communication with one or more caches, an instruction in a first language to perform a memory synchronization operation of synchronizing a plurality of instruction sequences executing on a processor, mapping the received instruction in the first language to one or more selected cache operations in a second language executable by the cache controller and executing the one or more cache operations to perform the memory synchronization operation. The method further comprises receiving a second mapping that provides mapping instructions to map the received instruction to one or more other cache operations, mapping the received instruction to one or more other cache operations and executing the one or more other cache operations to perform the memory synchronization operation.

## Claims

### Claim 1

A method of performing memory synchronization operations comprising:
receiving, at a cache controller in communication with one or more caches, an instruction in a first language to perform a memory synchronization operation of synchronizing a plurality of instruction sequences executing on a processor;
mapping, by the cache controller, the received instruction in the first language to one or more cache operations in a second language executable by the cache controller; and
executing, by the cache controller, the one or more cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences executing on the processor.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, at the cache controller, a second mapping providing mapping instructions to map the received instruction to one or more other cache operations selected from a plurality of selectable cache operations in the second language,
mapping, by the cache controller, the received instruction to one or more other cache operations in the second language executable by the cache controller; and
executing, by the cache controller, the one or more other cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences executing on the processor.

### Claim 3 (depends on 1)

The method of claim 1, wherein each of the one or more cache operations comprises processing data in the one or more caches.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the one or more cache operations is a sequence of cache operations each comprising processing data in the one or more caches.

### Claim 5 (depends on 3)

The method of claim 3, wherein the cache controller is in communication with a lower cache level and a higher cache level.

### Claim 6 (depends on 3)

The method of claim 3, wherein the cache controller is a second level cache controller in communication with: (i) a plurality of first level cache controllers each configured to control a first cache of one of a plurality of processor cores; and (ii) one or more second level caches each shared by two or more of a plurality of processor cores.

### Claim 7 (depends on 1)

The method of claim 1, further comprising synchronizing the plurality of instruction sequences executing on a GPU.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first language is a machine instruction set architecture (ISA) language and the second language is a set of specific machine instructions executable by the cache controller to control the one or more caches.

### Claim 9 (depends on 8)

The method of claim 8, wherein the machine ISA language is compiled from an intermediate language (IL) and the instruction to perform the memory synchronization operation is a high-level instruction that is maintained when the machine ISA language is compiled from the IL.

### Claim 10

A processing apparatus comprising:
at least one processor;
one or more cache controllers in communication with one or more caches, the one or more cache controllers configured to:
receive an instruction in a first language to perform a memory synchronization operation of synchronizing a plurality of instruction sequences executing on the at least one processor;
map the received instruction to one or more cache operations in a second language executable by the cache controller; and
execute the one or more cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences.

### Claim 11 (depends on 10)

The processing apparatus of claim 10, wherein each of the one or more cache controllers is a programmable cache controller configured to receive mapping instructions to map the received instruction to one or more other cache operations from a plurality of selectable cache operations in the second language, and
the one or more cache controllers are further configured to:
map the received instruction to one or more other cache operations in the second language executable by the cache controller; and
execute the one or more other cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences.

### Claim 12 (depends on 10)

The processing apparatus of claim 10, wherein each of the one or more cache operations comprises processing data in the one or more caches.

### Claim 13 (depends on 10)

The processing apparatus of claim 10, wherein each of the one or more cache operations is a sequence of cache operations each comprising processing data in the one or more caches.

### Claim 14 (depends on 12)

The processing apparatus of claim 12, wherein each of the one or more cache controllers is in communication with a lower cache level and a higher cache level.

### Claim 15 (depends on 12)

The processing apparatus of claim 12, wherein each of the one or more cache controllers is a second level cache controller in communication with: (i) a plurality of first level cache controllers each configured to control a first cache of one of a plurality of processor cores; and (ii) one or more second level caches each shared by two or more of a plurality of the processor cores.

### Claim 16 (depends on 10)

The processing apparatus of claim 10, wherein the first language is a machine instruction set architecture (ISA) language and the second language is a set of specific machine instructions executable by the cache controller to control the one or more caches.

### Claim 17

A tangible, non-transitory computer readable medium comprising instructions for causing a computer to execute a method of performing memory synchronization operations, the instructions comprising:
receiving, at a cache controller in communication with one or more caches, an instruction in a first language to perform a memory synchronization operation of synchronizing a plurality of instruction sequences executing on a processor;
mapping, by the cache controller, the received instruction to one or more cache operations in a second language executable by the cache controller; and
executing, by the cache controller, the one or more cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences executing on the processor.

### Claim 18 (depends on 17)

The computer readable medium of claim 17, the instructions further comprising:
receiving, at the cache controller, a second mapping providing mapping instructions to map the received instruction to one or more other cache operations selected from a plurality of selectable cache operations in the second language,
mapping, by the cache controller, the received instruction to one or more other cache operations in the second language executable by the cache controller; and
executing, by the cache controller, the one or more other cache operations to perform the memory synchronization operation of synchronizing the plurality of instruction sequences executing on the processor.

### Claim 19 (depends on 17)

The computer readable medium of claim 17, wherein each of the one or more cache operations is a sequence of cache operations each comprising processing data in the one or more caches.

### Claim 20 (depends on 17)

The computer readable medium of claim 17, wherein the cache controller is in communication with a lower cache level and a higher cache level.
