# US 2021/0173796 A1 · Memory request priority assignment techniques for parallel processors

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

- Number: US 2021/0173796 A1
- Document ID: US20210173796A1
- Status: Published application
- Kind: A1
- Application number: 16/706,421
- Filed: 2019-12-06
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Sooraj Puthoor; Kishore Punniyamurthy; Onur Kayiran; Xianwei Zhang; Yasuko Eckert; Johnathan Alsop; Bradford Michael Beckmann
- Web page: https://patentgrep.com/patent/US20210173796A1

## CPC

- G06F 13/18: based on priority control (G06F13/1605 takes precedence)
- G06F 13/1668: {Details of memory controller}
- 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)
- 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

Systems, apparatuses, and methods for implementing memory request priority assignment techniques for parallel processors are disclosed. A system includes at least a parallel processor coupled to a memory subsystem, where the parallel processor includes at least a plurality of compute units for executing wavefronts in lock-step. The parallel processor assigns priorities to memory requests of wavefronts on a per-work-item basis by indexing into a first priority vector, with the index generated based on lane-specific information. If a given event is detected, a second priority vector is generated by applying a given priority promotion vector to the first priority vector. Then, for subsequent wavefronts, memory requests are assigned priorities by indexing into the second priority vector with lane-specific information. The use of priority vectors to assign priorities to memory requests helps to reduce the memory divergence problem experienced by different work-items of a wavefront.

## Claims

### Claim 1

A processor comprising:
a memory subsystem configured to process each memory request according to a corresponding priority;
a compute unit comprising a plurality of lanes configured to execute work-items of a wavefront in parallel; and
control logic configured to:
assign a priority to each lane of the plurality of lanes of the compute unit based on a first mapping of priorities to lanes, wherein the first mapping of priorities to lanes reduces wait time latency divergence by increasing a priority of memory requests that delay completion of a first wavefront;
assign a priority to a memory request of each work-item of the first wavefront based on a priority of a corresponding lane; and
execute work-items of the first wavefront.

### Claim 2 (depends on 1)

The processor as recited in claim 1, wherein the control logic is further configured to:
apply an update to the first mapping to generate a second mapping of priorities to lanes responsive to detecting a first event during execution of the first wavefront;
subsequent to the first event:
assign a priority to each lane based on the second mapping of priorities to lanes; and
assign a priority to a memory request of each work-item based on a priority of a corresponding lane.

### Claim 3 (depends on 2)

The processor as recited in claim 2, wherein the first event is completion of a last memory request for a given instruction of the first wavefront.

### Claim 4 (depends on 1)

The processor as recited in claim 1, wherein the control logic is further configured to:
perform a lookup for each memory request based on static information and dynamic system state information to retrieve a priority; and
for each memory request, assign the retrieved priority to the memory request.

### Claim 5 (depends on 1)

The processor as recited in claim 1, wherein each separate type of event has a corresponding update to apply to a mapping of priorities to lanes which is different from updates of other types of events.

### Claim 6 (depends on 5)

The processor as recited in claim 5, wherein the control logic is further configured to apply an update to a mapping of priorities to lanes so as to minimize a memory divergence between different work-items of the first wavefront.

### Claim 7 (depends on 5)

The processor as recited in claim 5, wherein each application executed by the processor has a separate mapping of priorities to lanes assigned to the application.

### Claim 8

A method comprising:
assigning a priority to each lane of a plurality of lanes of a compute unit based on a first mapping of priorities to lanes, wherein the first mapping of priorities to lanes reduces wait time latency divergence by increasing a priority of memory requests that delay completion of a first wavefront;
assigning a priority to a memory request of each work-item of the first wavefront based on a priority of a corresponding lane;
executing work-items of the first wavefront; and
processing, by a memory subsystem, each memory request according to a corresponding priority.

### Claim 9 (depends on 8)

The method as recited in claim 8, further comprising:
applying an update to the first mapping to generate a second mapping of priorities to lanes responsive to detecting a first event during execution of the first wavefront;
subsequent to the first event:
assigning a priority to each lane based on the second mapping of priorities to lanes; and
assigning a priority to a memory request of each work-item based on a priority of a corresponding lane.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein the first event is completion of a last memory request for a given instruction of the first wavefront.

### Claim 11 (depends on 8)

The method as recited in claim 8, further comprising:
performing a lookup for each memory request based on static information and dynamic system state information to retrieve a priority; and
for each memory request, assigning the retrieved priority to the memory request.

### Claim 12 (depends on 8)

The method as recited in claim 8, wherein each separate type of event has a corresponding update to apply to a mapping of priorities to lanes which is different from priority promotion vectors of other types of events.

### Claim 13 (depends on 12)

The method as recited in claim 12, further comprising applying an update to a mapping of priorities to lanes so as to minimize a memory divergence between different work-items of the first wavefront.

### Claim 14 (depends on 12)

The method as recited in claim 12, wherein each application has a separate mapping of priorities to lanes assigned to the application.

### Claim 15

A system comprising:
a memory subsystem configured to process each memory request according to a corresponding priority; and
a processor coupled to the memory subsystem, wherein the processor is configured to:
execute work-items of a first wavefront in parallel, wherein each work-item executes on a corresponding lane of a compute unit;
assign a priority to each lane of the plurality of lanes of the compute unit based on a first mapping of priorities to lanes, wherein the first mapping of priorities to lanes reduces wait time latency divergence by increasing a priority of memory requests that delay completion of the first wavefront;
assign a priority to a memory request of each work-item of the first wavefront based on a priority of a corresponding lane.

### Claim 16 (depends on 15)

The system as recited in claim 15, wherein the processor is further configured to:
apply an update to the first mapping to generate a second mapping of priorities to lanes responsive to detecting a first event during execution of the first wavefront;
subsequent to the first event:
assign a priority to each lane based on the second mapping of priorities to lanes; and
assign a priority to a memory request of each work-item based on a priority of a corresponding lane.

### Claim 17 (depends on 16)

The system as recited in claim 16, wherein the first event is completion of a last memory request for a given instruction of the first wavefront.

### Claim 18 (depends on 15)

The system as recited in claim 15, wherein the processor is further configured to:
perform a lookup for each memory request based on static information and dynamic system state information to retrieve a priority; and
for each memory request, assign the retrieved priority to the memory request.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein each separate type of event has a corresponding update to apply to a mapping of priorities to lanes which is different from updates of other types of events.

### Claim 20 (depends on 19)

The system as recited in claim 19, wherein the processor is further configured to apply an update to a mapping of priorities to lanes so as to minimize a memory divergence between different work-items of the first wavefront.
