# US 8,577,950 B2 · Matrix multiplication operations with data pre-conditioning in a high performance computing architecture

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

- Number: US 8,577,950 B2
- Document ID: US8577950B2
- Status: Granted
- Kind: B2
- Application number: 12/542,255
- Filed: 2009-08-17
- Published: 2011-02-17
- Granted: 2013-11-05
- Earliest claimed: 2009-08-17
- Assignees: International Business Machines Corporation
- Applicants: Alexandre E. Eichenberger; Michael K. Gschwind; John A. Gunnels
- Inventors: Alexandre E. Eichenberger; Michael K. Gschwind; John A. Gunnels
- Web page: https://patentgrep.com/patent/US8577950B2

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 9/30014: {with variable precision}
- G06F 9/30029: {Logical and Boolean instructions, e.g. XOR, NOT}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/30094: {Condition code generation, e.g. Carry, Zero flag}
- G06F 9/30109: {having multiple operands in a single register}
- G06F 9/3013: {according to data content, e.g. floating-point registers, address registers}
- G06F 9/3885: {using a plurality of independent parallel functional units}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Mechanisms for performing matrix multiplication operations with data pre-conditioning in a high performance computing architecture are provided. A vector load operation is performed to load a first vector operand of the matrix multiplication operation to a first target vector register. A load and splat operation is performed to load an element of a second vector operand and replicating the element to each of a plurality of elements of a second target vector register. A multiply add operation is performed on elements of the first target vector register and elements of the second target vector register to generate a partial product of the matrix multiplication operation. The partial product of the matrix multiplication operation is accumulated with other partial products of the matrix multiplication operation.

## Claims

### Claim 1

A method, in a data processing system, for performing a matrix multiplication operation, comprising:
performing a vector load operation to load a first vector operand of the matrix multiplication operation to a first target vector register of the data processing system:
performing a load and splat operation to load an element of a second vector operand and replicating the element to each of a plurality of elements of a second target vector register of the data processing system;
performing a multiply add operation on elements of the first target vector register and elements of the second target vector register to generate a partial product of the matrix multiplication operation; and
accumulating the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation, wherein a reorganization of data is performed by the load and splat operation and the accumulation of the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation is performed without issuing a separate register to register operation via an issue slot.

### Claim 2 (depends on 1)

The method of claim 1, wherein the element of the second vector operand has a scalar value.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing the multiply add operation comprises performing the multiply add operation on elements of the first target vector register with correspondingly indexed elements of the second target vector register.

### Claim 4 (depends on 1)

The method of claim 1, wherein accumulating the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation is performed without performing a separate data reorganization operation.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first vector is a strided vector of stride greater than 1.

### Claim 6 (depends on 1)

The method of claim 1, wherein the load and splat operation replicates the element directly from a load unit of the data processing system.

### Claim 7

A computer program product comprising a computer-readable storage medium having a computer readable program stored thereon, wherein the computer readable program, when executed on a computing device, causes the computing device to:
perform a vector load operation to load a first vector operand of the matrix multiplication operation to a first target vector register of the data processing system;
perform a load and splat operation to load an element of a second vector operand and replicating the element to each of a plurality of elements of a second target vector register of the data processing system;
perform a multiply add operation on elements of the first target vector register and elements of the second target vector register to generate a partial product of the matrix multiplication operation; and
accumulate the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation, wherein a reorganization of data is performed by the load and splat operation and the accumulation of the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation is performed without issuing a separate register to register operation via an issue slot.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the element of the second vector operand has a scalar value.

### Claim 9 (depends on 7)

The computer program product of claim 7, wherein the computer readable program causes the computing device to perform the multiply add operation by performing the multiply add operation on elements of the first target vector register with correspondingly indexed elements of the second target vector register.

### Claim 10 (depends on 7)

The computer program product of claim 7, wherein the computer readable program causes the computing device to accumulate the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation without performing a separate data reorganization operation.

### Claim 11 (depends on 7)

The computer program product of claim 7, wherein the first vector is a strided vector of stride greater than 1.

### Claim 12 (depends on 7)

The computer program product of claim 7, wherein the load and splat operation replicates the element directly from a load unit of the data processing system.

### Claim 13

An apparatus, comprising:
a processor; and
a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to:
perform a vector load operation to load a first vector operand of the matrix multiplication operation to a first target vector register of the data processing system;
perform a load and splat operation to load an element of a second vector operand and replicating the element to each of a plurality of elements of a second target vector register of the data processing system;
perform a multiply add operation on elements of the first target vector register and elements of the second target vector register to generate a partial product of the matrix multiplication operation; and
accumulate the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation, wherein a reorganization of data is performed by the load and splat operation and the accumulation of the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation is performed without issuing a separate register to register operation via an issue slot.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the element of the second vector operand has a scalar value.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the instructions cause the processor to perform the multiply add operation by performing the multiply add operation on elements of the first target vector register with correspondingly indexed elements of the second target vector register.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the instructions cause the processor to perform to accumulate the partial product of the matrix multiplication operation with other partial products of the matrix multiplication operation without performing a separate data reorganization operation.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the load and splat operation replicates the element directly from a load unit of the data processing system.
