# US 2021/0081201 A1 · Utilizing structured sparsity in systolic arrays

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

- Number: US 2021/0081201 A1
- Document ID: US20210081201A1
- Status: Published application
- Kind: A1
- Application number: 17/107,823
- Filed: 2020-11-30
- Published: 2021-03-18
- Earliest claimed: 2020-11-30
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Subramaniam Maiyuran; Jorge Parra; Ashutosh Garg; Chandra Gurram; Chunhui Mei; Durgesh Borkar; Shubra Marwaha; Supratim Pal; Varghese George; Wei Xiong; Yan Li; Yongsheng Liu; Dipankar Das; Sasikanth Avancha; Dharma Teja Vooturi; Naveen K. Mellempudi
- Web page: https://patentgrep.com/patent/US20210081201A1

## CPC

- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30101: {Special purpose registers}
- G06F 9/3893: {controlled in tandem, e.g. multiplier-accumulator}
- G06F 15/8046: {Systolic arrays}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus to facilitate utilizing structured sparsity in systolic arrays is disclosed. The apparatus includes a processor comprising a systolic array to receive data from a plurality of source registers, the data comprising unpacked source data, structured source data that is packed based on sparsity, and metadata corresponding to the structured source data; identify portions of the unpacked source data to multiply with the structured source data, the portions of the unpacked source data identified based on the metadata; and output, to a destination register, a result of multiplication of the portions of the unpacked source data and the structured source data.

## Claims

### Claim 1

An apparatus comprising:
a processor comprising a systolic array to:
receive data from a plurality of source registers, the data comprising unpacked source data, structured source data that is packed based on sparsity, and metadata corresponding to the structured source data;
identify portions of the unpacked source data to multiply with the structured source data, the portions of the unpacked source data identified based on the metadata; and
output, to a destination register, a result of multiplication of the portions of the unpacked source data and the structured source data.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the systolic array to perform dot product accumulate operations.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the systolic array further comprises a plurality of multiplexor circuits to select the portions of the unpacked source data to multiply with the structured source data based on the metadata.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the structured source data that is packed based on sparsity comprises elements of a broadcast register of the systolic array.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the structured source data that is packed based on sparsity comprises elements of an index register of the systolic array.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the systolic array to execute an instruction for sparse systolic dot product with accumulate to identify the portions of the unpacked source data to multiply with the structured source data using the metadata and to perform a dot product multiplication of the portions with the structured source data multiplication, and wherein the metadata is provided in a source register of the plurality of source registers called by the instruction.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein packed source data comprises at least one of a half-float datatype that packs two 16-bit elements into a channel, a bfloat datatype that packs two 16-bit elements into a channel, an int8 datatype that packs four 8-bit elements into a channel, an int4 datatype that packs eight 4-bit elements into a channel, or an int2 datatype that packs sixteen 2-bit elements into a channel.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the metadata indicates a position of non-zero elements in an original form of the structured source data prior to packing into the structured source data.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the original form of the structured source data is pre-processed by an external agent to pack into the structured source data by removing sparse elements from the original form, and wherein the external agent generates the metadata.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the external agent comprises at least one of a central processing unit (CPU) or an intelligent sensor.

### Claim 11 (depends on 1)

The apparatus of claim 1, wherein the processor comprises a general-purpose graphics processing unit (GPGPU).

### Claim 12

At least one non-transitory machine readable storage medium comprising instructions that, when executed, cause at least one processor to at least:
receiving, by a systolic array of the at least one processor, data from a plurality of source registers, the data comprising unpacked source data, structured source data that is packed based on sparsity, and metadata corresponding to the structured source data;
identifying portions of the unpacked source data to multiply with the structured source data, the portions of the unpacked source data identified based on the metadata; and
outputting, to a destination register, a result of multiplication of the portions of the unpacked source data and the structured source data.

### Claim 13 (depends on 12)

The at least one non-transitory machine readable storage medium of claim 12, wherein the systolic array to perform dot product accumulate operations.

### Claim 14 (depends on 12)

The at least one non-transitory machine readable storage medium of claim 12, wherein the systolic array further comprises a plurality of multiplexor circuits to select the portions of the unpacked source data to multiply with the structured source data based on the metadata.

### Claim 15 (depends on 12)

The at least one non-transitory machine readable storage medium of claim 12, wherein the systolic array to execute an instruction for sparse systolic dot product with accumulate to identify the portions of the unpacked source data to multiply with the structured source data using the metadata and to perform a dot product multiplication of the portions with the structured source data multiplication, and wherein the metadata is provided in a source register of the plurality of source registers called by the instruction.

### Claim 16 (depends on 12)

The at least one non-transitory machine readable storage medium of claim 12, wherein the metadata indicates a position of non-zero elements in an original form of the structured source data prior to packing into the structured source data.

### Claim 17

A method comprising:
receiving, by a systolic array of a processing device, data from a plurality of source registers of the processing device, the data comprising unpacked source data, structured source data that is packed based on sparsity, and metadata corresponding to the structured source data;
identifying portions of the unpacked source data to multiply with the structured source data, the portions of the unpacked source data identified based on the metadata; and
outputting, to a destination register of the processing device, a result of multiplication of the portions of the unpacked source data and the structured source data.

### Claim 18 (depends on 17)

The method of claim 17, wherein the systolic array to perform dot product accumulate operations.

### Claim 19 (depends on 17)

The method of claim 17, wherein the systolic array further comprises a plurality of multiplexor circuits to select the portions of the unpacked source data to multiply with the structured source data based on the metadata.

### Claim 20 (depends on 17)

The method of claim 17, wherein the systolic array to execute an instruction for sparse systolic dot product with accumulate to identify the portions of the unpacked source data to multiply with the structured source data using the metadata and to perform a dot product multiplication of the portions with the structured source data multiplication, and wherein the metadata is provided in a source register of the plurality of source registers called by the instruction.
