# US 2018/0322095 A1 · Efficient extended-precision processing

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

- Number: US 2018/0322095 A1
- Document ID: US20180322095A1
- Status: Published application
- Kind: A1
- Application number: 15/847,440
- Filed: 2017-12-19
- Published: 2018-11-08
- Earliest claimed: 2017-05-08
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: LESTER ANDERSON LONGLEY; MISAEL LOPEZ CRUZ; VICTOR CHENG
- Web page: https://patentgrep.com/patent/US20180322095A1

## CPC

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

## Abstract

Systems and methods are provided for performing a dot product. Each of a first series of numbers is divided into a first value, comprising the N most significant bits of the number, and a second value to form first and second sets of values. Each of a second series of numbers is divided into a third value, comprising the N most significant bits of the number, and a fourth value to form third and fourth sets of values. A dot product of the first and fourth sets of values is computed to provide a first partial sum. A dot product of the first and third sets of values is computed to provide a second partial sum. A dot product of the second and third sets of values is computed to provide a third partial sum. The partial sums are summed to provide a result for the dot product.

## Claims

### Claim 1

A method for performing a dot product between a first series of numbers and a second series of numbers at a processing unit comprising:
dividing each of the first series of numbers into a first value, comprising the N most significant bits of the number, where N is an integer greater than two, and a second value, comprising a plurality of less significant bits of the number, to form a first set of values, comprising the first values across the first series of numbers, and a second set of values, comprising the second values across the first series of numbers;
dividing each of the second series of numbers into a third value, comprising the N most significant bits of the number, and a fourth value, comprising a plurality of less significant bits of the number, to form a third set of values, comprising the third values across the second series of numbers, and a fourth set of values, comprising the fourth values across the second series of numbers;
computing a dot product of the first set of values and the fourth set of values to provide a first partial sum;
computing a dot product of the first set of values and the third set of values to provide a second partial sum;
computing a dot product of the second set of values and the third set of values to provide a third partial sum; and
summing the first partial sum, the second partial sum, and the third partial sum to provide a result for the dot product between the first series of numbers and the second series of numbers.

### Claim 2 (depends on 1)

The method of claim 1, further comprising computing a dot product of the second set of values and the fourth set of values to provide a fourth partial sum, wherein summing the first partial sum, the second partial sum, and the third partial sum to provide the result for the dot product between the first series of numbers and the second series of numbers comprises summing the first partial sum, the second partial sum, the third partial sum, and the fourth partial sum.

### Claim 3 (depends on 1)

The method of claim 1, wherein dividing each of the first series of numbers comprises dividing each of the first series of numbers into the first value, the second value, and a fifth value, comprising a plurality of least significant bits of the number, to form the first set of values, the second set of values, and a fifth set of values, comprising the fifth values across the first series of numbers.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the first series of numbers and the second series of numbers contain M values, where M is an integer less than 257, and each of the first partial sum, the second partial sum, and the third partial sum are represented as a value having 2N+8 bits.

### Claim 5 (depends on 1)

The method of claim 1, wherein N is selected to be equal to a native precision for a multiply-accumulate operation of the processing unit.

### Claim 6 (depends on 1)

The method of claim 1, wherein the steps of computing the dot product of the first set of values and the second set of values to provide the first partial sum and computing the dot product of the first set of values and the third set of values to provide the second partial sum are performed in parallel at the processing unit.

### Claim 7

A system comprising:
a memory; and
one or more processors coupled to the memory, and configured to:
divide each of the first series of numbers into a first value, comprising the N most significant bits of the number, where N is an integer greater than two, and a second value, comprising a plurality of less significant bits of the number, to form a first set of values, comprising the first values across the first series of numbers, and a second set of values, comprising the second values across the first series of numbers and divides each of the second series of numbers into a first value, comprising the N most significant bits of the number, and a second value, comprising a plurality of less significant bits of the number, to form a third set of values, comprising the first values across the second series of numbers, and a fourth set of values, comprising the second values across the second series of numbers;
compute a first dot product of the first set of values and the fourth set of values to provide a first partial sum;
compute a second dot product of the first set of values and the third set of values to provide a second partial sum;
compute a third dot product of the second set of values and the third set of values to provide a third partial sum; and
sum the first partial sum, the second partial sum, and the third partial sum to provide a result for the dot product between the first series of numbers and the second series of numbers.

### Claim 8 (depends on 7)

The system of claim 7, wherein the one or more processors are further configured to compute a dot product of the second set of values and the fourth set of values to provide a fourth partial sum, sum the first partial sum, the second partial sum, the third partial sum, and the fourth partial sum to provide the result for the dot product between the first series of numbers and the second series of numbers.

### Claim 9 (depends on 7)

The system of claim 7, wherein the one or more processors are further configured to divide each of the first series of numbers into the first value, the second value, and a fifth value, comprising a plurality of least significant bits of the number, to form the first set of values, the second set of values, and a fifth set of values, comprising the fifth values across the first series of numbers and divides each of the second series of numbers into the third value, the fourth value, and a sixth value, comprising a plurality of least significant bits of the number, to form the third set of values, the fourth set of values, and a sixth set of values, comprising the sixth values across the second series of numbers.

### Claim 10 (depends on 9)

The system of claim 9, wherein the one or more processors are further configured to:
compute a dot product of the second set of values and the fourth set of values to provide a fourth partial sum;
compute a dot product of the first set of values and the sixth set of values to provide a fifth partial sum; and
compute a dot product of the second set of values and the fifth set of values to provide a sixth partial sum;
sum the first partial sum, the second partial sum, the third partial sum, the fourth partial sum, the fifth partial sum, and the sixth partial sum to provide the result for the dot product between the first series of numbers and the second series of numbers.

### Claim 11 (depends on 7)

The system of claim 7, wherein each of the first series of numbers and the second series of numbers contain M values, where M is an integer less than 257, and each of the first partial sum, the second partial sum, and the third partial sum are represented as a value stored as at least 2N+8 bits.

### Claim 12 (depends on 7)

The system of claim 7, wherein N is selected according to a native precision of the one or more processors.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more processors have a native resolution of sixteen bits, N is equal to sixteen, and each of the first partial sum, the second partial sum, and the third partial sum are represented as a value stored as at least forty bits.

### Claim 14 (depends on 7)

The system of claim 7, wherein the one or more processors are configured to calculate the first, second, and third dot products in parallel and substantially simultaneously.

### Claim 15

A non-transitory computer readable medium storing machine readable instructions, that when executed by a processor, cause one or more processors to:
divide each of a first series of numbers into a first value, comprising the N most significant bits of the number, where N is an integer greater than two that is determined according to a native resolution of the processor, and a second value, comprising a plurality of less significant bits of the number, to form a first set of values, comprising the first values across the first series of numbers, and a second set of values, comprising the second values across the first series of numbers;
divide each of a second series of numbers into a third value, comprising the N most significant bits of the number, and a fourth value, comprising a plurality of less significant bits of the number, to form a third set of values, comprising the third values across the second series of numbers, and a fourth set of values, comprising the fourth values across the second series of numbers;
compute a dot product of the first set of values and the fourth set of values to provide a first partial sum;
compute a dot product of the first set of values and the third set of values to provide a second partial sum;
compute a dot product of the second set of values and the third set of values to provide a third partial sum; and
sum the first partial sum, the second partial sum, and the third partial sum to provide a result for the dot product between the first series of numbers and the second series of numbers.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the instructions further cause the one or more processors to compute a dot product of the second set of values and the fourth set of values to provide a fourth partial sum, wherein the instructions that cause the one or more processors to sum the first partial sum, the second partial sum, and the third partial sum include instructions that cause the one or more processors to sum the first partial sum, the second partial sum, the third partial sum, and the fourth partial sum.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the instructions that cause the one or more processors to divide each of the first series of numbers include instructions that cause the one or more processors to divide each of the first series of numbers into the first value, the second value, and a fifth value, comprising a plurality of least significant bits of the number, to form the first set of values, the second set of values, and a fifth set of values, comprising the fifth values across the first series of numbers.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein each of the first series of numbers and the second series of numbers contains M values, where M is an integer less than 257, and each of the first partial sum, the second partial sum, and the third partial sum are represented as a value having 2N+8 bits.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the instructions that cause the one or more processors to compute the dot product of the first set of values and the second set of values to provide the first partial sum and compute the dot product of the first set of values and the third set of values to provide the second partial sum are performed in parallel at the one or more processors.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the one or more processors have a native resolution of sixteen bits, N is equal to sixteen, and each of the first partial sum, the second partial sum, and the third partial sum are represented as a value stored as at least forty bits.
