# US 2022/0366010 A1 · Integer matrix multiplication engine using pipelining

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

- Number: US 2022/0366010 A1
- Document ID: US20220366010A1
- Status: Published application
- Kind: A1
- Application number: 17/878,011
- Filed: 2022-07-31
- Published: 2022-11-17
- Earliest claimed: 2019-04-01
- Assignees: Wave Computing, Inc.
- Applicants: Wave Computing, Inc.
- Inventors: David John Simpson
- Web page: https://patentgrep.com/patent/US20220366010A1

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 7/16: Combined merging and sorting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for data manipulation using integer matrix multiplication using pipelining are disclosed. A first integer matrix with dimensions m×k and a second integer matrix with dimensions k×n are obtained for matrix multiplication within a processor. The first and second integer matrices employ a two's complement variable radix point data representation. The first and second integer matrices are distilled into (j×j) submatrices. A first variable radix point format and an initial value for an accumulator register are configured dynamically. A first variable radix point format is configured dynamically for the first integer matrix and a second variable radix point format is configured dynamically for the second integer matrix. Multiply-accumulate operations are executed in a pipelined fashion on the (j×j) submatrices of the first integer matrix and the second integer matrix, where a third variable radix point format is configured for the result.

## Claims

### Claim at position 1

1-27. (canceled)

### Claim 28

A processor-implemented method comprising:
obtaining a first integer matrix with dimensions m×k and a second integer matrix with dimensions k×n for matrix multiplication within a processor, wherein the first integer matrix and the second integer matrix employ a two's complement variable radix point data representation;
distilling the first integer matrix and the second integer matrix into (j×j) submatrices;
configuring dynamically both a variable radix point format and an initial value for an accumulator register;
executing multiply-accumulate (MAC) operations in a pipelined architecture on the (j×j) submatrices of the first integer matrix and the second integer matrix, wherein a third variable radix point format is configured for the result; and
using the executed MAC operations to process data in a data-flow architecture.

### Claim 29 (depends on 28)

The method of claim 28 further comprising configuring dynamically a first variable radix point format for the first integer matrix and a second variable radix point format for the second integer matrix.

### Claim 30 (depends on 29)

The method of claim 29 wherein the first variable radix point format and the second variable radix point format comprise a 16-bit data type.

### Claim 31 (depends on 29)

The method of claim 29 wherein the first variable radix point format and the second variable radix point format comprise a 4-bit primitive data type.

### Claim 32 (depends on 29)

The method of claim 29 wherein the first variable radix point format and the second variable radix point format comprise an 8-bit primitive data type.

### Claim 33 (depends on 28)

The method of claim 28 further comprising outputting results of the matrix multiplication to a storage element, wherein the outputting takes an additional (m×k) cycles.

### Claim 34 (depends on 28)

The method of claim 28 wherein the first integer matrix and the second integer matrix comprise subsections of an o-dimensional tensor, wherein o is greater than 2.

### Claim 35 (depends on 28)

The method of claim 28 wherein each multiply-accumulate (MAC) unit used for matrix multiplication in the processor is configured to have an accumulator depth of m.

### Claim 36 (depends on 28)

The method of claim 28 further comprising pipelining input elements to multiply-accumulate (MAC) units used for matrix multiplication in the processor through two input registers.

### Claim 37 (depends on 28)

The method of claim 28 wherein performing N multiply-accumulate (MAC) operations in parallel reduces an amount of time taken to perform the N MAC operations from an order of magnitude of N3 to an order of magnitude of N2.

### Claim 38 (depends on 28)

The method of claim 28 further comprising adding one or more idle or no operation (NOP) cycles after completion of a matrix multiply operation before starting a next matrix multiply operation.

### Claim 39 (depends on 28)

The method of claim 28 wherein a processor and memory subsystem is allocated as part of one or more clusters within a reconfigurable fabric to implement MAC units.

### Claim 40 (depends on 39)

The method of claim 39, wherein each cluster of the one or more clusters within the reconfigurable fabric is controlled by one or more circular buffers.

### Claim 41 (depends on 40)

The method of claim 40, wherein the one or more circular buffers are statically scheduled.

### Claim 42 (depends on 39)

The method of claim 39, wherein each cluster of the one or more clusters within the reconfigurable fabric comprises process elements, switching elements, or storage elements.

### Claim 43 (depends on 28)

The method of claim 28, wherein the data-flow architecture implements machine learning.

### Claim 44 (depends on 28)

The method of claim 28, wherein the machine learning utilizes one or more convolutional neural networks.

### Claim 45 (depends on 28)

The method of claim 28, wherein executing multiply-accumulate operations in a pipelined architecture is accomplished using systolic data flow.

### Claim 46

One or more non-transitory computer readable media embodying one or more instructions that are operable when executing by one or more processors to perform operations of:
obtaining a first integer matrix with dimensions m×k and a second integer matrix with dimensions k×n for matrix multiplication within a processor, wherein the first integer matrix and the second integer matrix employ a two's complement variable radix point data representation;
distilling the first integer matrix and the second integer matrix into (j×j) submatrices;
configuring dynamically both a variable radix point format and an initial value for an accumulator register;
executing multiply-accumulate operations in a pipelined architecture—on the (j×j) submatrices of the first integer matrix and the second integer matrix, wherein a third variable radix point format is configured for the result; and
using the executed MAC operations to process data in a data-flow architecture.

### Claim 47

A system comprising: a memory which stores instructions; and one or more processors coupled to the memory wherein the one or more processors, when executing the instructions, are configured to:
obtain a first integer matrix with dimensions m×k and a second integer matrix with dimensions k×n for matrix multiplication within a processor, wherein the first integer matrix and the second integer matrix employ a two's complement variable radix point data representation;
distill the first integer matrix and the second integer matrix into (j×j) submatrices;
configure dynamically both a variable radix point format and an initial value for an accumulator register; and
execute multiply-accumulate operations in a pipelined architecture on the (j×j) submatrices of the first integer matrix and the second integer matrix, wherein a third variable radix point format is configured for the result; and
use the executed MAC operations to process data in a data-flow architecture.
