# US 2021/0081774 A1 · Specialized fixed function hardware for efficient convolution

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

- Number: US 2021/0081774 A1
- Document ID: US20210081774A1
- Status: Published application
- Kind: A1
- Application number: 17/083,080
- Filed: 2020-10-28
- Published: 2021-03-18
- Earliest claimed: 2017-04-24
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Rajkishore Barik; Elmoustapha Ould-Ahmed-Vall; Xiaoming Chen; Dhawal Srivastava; Anbang Yao; Kevin Nealis; Eriko Nurvitadhi; Sara S. Baghsorkhi; Balaji Vembu; Tatiana Shpeisman; Ping T. Tang
- Web page: https://patentgrep.com/patent/US20210081774A1

## CPC

- G06N 3/063: using electronic means
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F 9/30196: {using decoder, e.g. decoder per instruction set, adaptable or programmable decoders}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/3895: {for complex operations, e.g. multidimensional or interleaved address generators, macros}
- G06F 16/17: Details of further file system functions
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/098: Distributed learning, e.g. federated learning
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

One embodiment provides for a general-purpose graphics processing unit including a scheduler to schedule multiple matrix operations for execution by a general-purpose graphics processing unit. The multiple matrix operations are determined based on a single machine learning compute instruction. The single machine learning compute instruction is a convolution instruction and the multiple matrix operations are associated with a convolution operation.

## Claims

### Claim 1

A compute apparatus comprising:
a general-purpose graphics processing unit including a scheduler to schedule multiple matrix operations for execution by a general-purpose graphics processing unit, the multiple matrix operations determined based on a single machine learning compute instruction, wherein the single machine learning compute instruction is a convolution instruction and the multiple matrix operations are associated with a convolution operation.

### Claim 2 (depends on 1)

The compute apparatus as in claim 1, the general-purpose graphics processing unit additionally including a machine learning firmware module configured to determine the multiple matrix operations to be performed based on the single machine learning compute instruction.

### Claim 3 (depends on 2)

The compute apparatus as in claim 2, wherein the machine learning firmware module is updatable to expand a set of supported machine learning compute instructions.

### Claim 4 (depends on 1)

The compute apparatus as in claim 1, the general-purpose graphics processing unit additionally including a convolution acceleration logic configured to select a convolution implementation for the convolution instruction.

### Claim 5 (depends on 4)

The compute apparatus as in claim 4, wherein the convolution acceleration logic is configured to select the convolution implementation based on a size of a convolution filter.

### Claim 6 (depends on 5)

The compute apparatus as in claim 5, wherein to select the convolution implementation includes to select the multiple matrix operations to execute based on the convolution instruction.

### Claim 7 (depends on 1)

The compute apparatus as in claim 1, wherein the general-purpose graphics processing unit includes an array of programmable compute units and fixed function circuit to perform matrix multiplication.

### Claim 8 (depends on 7)

The compute apparatus as in claim 7, wherein the scheduler is configured to schedule the multiple matrix operations to one of the array of programmable compute units and the fixed function circuit based on parameters associated with the multiple matrix operations.

### Claim 9 (depends on 8)

The compute apparatus as in claim 8, wherein the parameters include a size of image data input, a number of data channels of the image data, or a size of a convolution filter.

### Claim 10

A method comprising:
scheduling, via a scheduler, multiple matrix operations for execution by a general purpose graphics processing unit, the multiple matrix operations determined based on a single machine learning compute instruction, wherein the single machine learning compute instruction is a convolution instruction and the multiple matrix operations are associated with a convolution operation; and
executing the multiple matrix operations via parallel processing resources of the general purpose graphics processing unit.

### Claim 11 (depends on 10)

The method as in claim 10, further comprising determining the multiple matrix operations to be performed via a machine learning firmware module, the machine learning firmware module updatable to expand a set of supported machine learning compute instructions.

### Claim 12 (depends on 10)

The method as in claim 10, further comprising selecting, via convolution acceleration logic, a convolution implementation for the convolution instruction, wherein selecting the convolution implementation includes determining a set of multiple matrix operations to execute based on the convolution instruction and the convolution implementation is determined based on a size of a convolution filter.

### Claim 13 (depends on 10)

The method as in claim 10, further comprising schedule the multiple matrix operations to a processing resource of the general purpose graphics processing unit, wherein the processing resource is one of an array of programmable compute units and matrix multiplication logic.

### Claim 14 (depends on 11)

The method as in claim 11, further comprising scheduling the multiple matrix operations based on parameters associated with the multiple matrix operations, wherein the parameters include a size of image data input, a number of data channels of the image data, or a size of a convolution filter.

### Claim 15

A system comprising:
a memory; and
a general-purpose graphics processing unit including:
a scheduler to schedule multiple matrix operations for execution by a general-purpose graphics processing unit, the multiple matrix operations determined based on a single machine learning compute instruction, wherein the single machine learning compute instruction is a convolution instruction and the multiple matrix operations are associated with a convolution operation; and
processing resources including an array of programmable compute units and a fixed function matrix multiplication circuit.

### Claim 16 (depends on 15)

The system as in claim 15, wherein the scheduler is configured to schedule the multiple matrix operations to one of the array of programmable compute units and the fixed function matrix multiplication circuit.

### Claim 17 (depends on 16)

The system as in claim 16, wherein the scheduler is configured to schedule the multiple matrix operations to one of the processing resources based on parameters associated with the multiple matrix operations.

### Claim 18 (depends on 17)

The system as in claim 17, wherein the parameters include a size of image data input.

### Claim 19 (depends on 18)

The system as in claim 18, wherein the parameters include a number of data channels of the image data.

### Claim 20 (depends on 18)

The system as in claim 18, wherein the parameters include a size of a convolution filter.
