# US 2022/0284075 A1 · Computing device, computing apparatus and method of warp accumulation

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

- Number: US 2022/0284075 A1
- Document ID: US20220284075A1
- Status: Published application
- Kind: A1
- Application number: 17/686,409
- Filed: 2022-03-04
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Shanghai Biren Technology Co., Ltd
- Applicants: Shanghai Biren Technology Co.,Ltd
- Inventors: YuFei ZHANG; Zhu LIANG; Min GAO
- Web page: https://patentgrep.com/patent/US20220284075A1

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 7/509: for multiple operands, e.g. digital integrators
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 9/3009: {Thread control instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The embodiments of the disclosure relate to a computing device, a computing apparatus, and a method of warp accumulation and relate to the field of computers. The computing device includes a storage unit and an accumulation computing unit coupled to the storage unit. The accumulation computing unit is configured to receive, from a vector processing unit coupled to the computing device, a first warp accumulation instruction, a plurality of first values corresponding to a warp lane number, and a first storage address; generate a current accumulation result based on the plurality of first values in response to the first warp accumulation instruction; and store the current accumulation result in the first storage address in the storage unit to be read by the vector processing unit. In this way, accumulation in a warp may be decoupled to dedicated hardware for processing, and overall accumulation performance may thus be significantly improved.

## Claims

### Claim 1

A computing device, comprising:
a storage unit; and
an accumulation computing unit, coupled to the storage unit, wherein the accumulation computing unit is configured to:
receive, from a vector processing unit coupled to the computing device, a first warp accumulation instruction, a plurality of first values corresponding to a warp lane number, and a first storage address;
generate a current accumulation result based on the plurality of first values in response to the first warp accumulation instruction; and
store the current accumulation result in the first storage address in the storage unit to be read by the vector processing unit.

### Claim 2 (depends on 1)

The computing device according to claim 1, wherein the accumulation computing unit is further configured to:
obtain, from the first storage address in the storage unit, a stored accumulation result in response to the first warp accumulation instruction; and
generate the current accumulation result based on the stored accumulation result and the plurality of first values.

### Claim 3 (depends on 1)

The computing device according to claim 1, wherein the accumulation computing unit is further configured to:
sequentially accumulate a predetermined number of first values among the plurality of first values to generate a plurality of intermediate accumulation results in response to the first warp accumulation instruction; and
accumulate the plurality of intermediate accumulation results to generate the current accumulation result.

### Claim 4 (depends on 1)

The computing device according to claim 1, wherein the accumulation computing unit is further configured to:
receive, from the vector processing unit, a second warp accumulation instruction, a plurality of second values corresponding to the warp lane number, and a second storage address;
determine whether the second storage address and the first storage address are identical in response to the second warp accumulation instruction;
store the current accumulation result in the first storage address in the storage unit to be read by the vector processing unit if it is determined that the second storage address is different from the first storage address; and
update the current accumulation result based on the plurality of second values if it is determined that the second storage address and the first storage address are identical.

### Claim 5 (depends on 1)

The computing device according to claim 1, wherein the computing device comprises a load store unit.

### Claim 6 (depends on 1)

A computing apparatus, comprising:
the computing device according to claim 1; and
the vector processing unit, coupled to the computing device, wherein the vector processing unit is configured to:
send the first warp accumulation instruction, the plurality of first values corresponding to the warp lane number, and the first storage address to the accumulation computing unit in the computing device; and
read the current accumulation result from the first storage address in the storage unit in the computing device.

### Claim 7

A method of warp accumulation, comprising
sending, by a vector processing unit, a first warp accumulation instruction, a plurality of first values corresponding to a warp lane number, and a first storage address to an accumulation computing unit;
generating, by the accumulation computing unit, a current accumulation result based on the plurality of first values in response to the first warp accumulation instruction;
storing, by the accumulation computing unit, the current accumulation result in the first storage address in a storage unit coupled to the accumulation computing unit to be read by the vector processing unit; and
reading, by the vector processing unit, the current accumulation result from the first storage address in the storage unit.

### Claim 8 (depends on 7)

The method according to claim 7, wherein generating, by the accumulation computing unit, the current accumulation result further comprises:
obtaining, by the accumulation computing unit, a stored accumulation result from the first storage address in the storage unit in response to the first warp accumulation instruction; and
generating, by the accumulation computing unit, the current accumulation result based on the stored accumulation result and the plurality of first values.

### Claim 9 (depends on 7)

The method according to claim 7, wherein generating, by the accumulation computing unit, the current accumulation result further comprises:
sequentially accumulating, by the accumulation computing unit, a predetermined number of first values among the plurality of first values to generate a plurality of intermediate accumulation results in response to the first warp accumulation instruction; and
accumulating, by the accumulation computing unit, the plurality of intermediate accumulation results to generate the current accumulation result.

### Claim 10 (depends on 7)

The method according to claim 7, further comprising:
sending, by the vector processing unit, a second warp accumulation instruction, a plurality of second values corresponding to the warp lane number, and a second storage address to the accumulation computing unit;
determining, by the accumulation computing unit, whether the second storage address and the first storage address are identical in response to the second warp accumulation instruction;
storing, by the accumulation computing unit, the current accumulation result in the first storage address in the storage unit to be read by the vector processing unit if it is determined that the second storage address is different from the first storage address; and
updating, by the accumulation computing unit, the current accumulation result based on the plurality of second values if it is determined that the second storage address and the first storage address are identical.
