BFLOAT16 fused multiply instructions
Abstract
Techniques for performing BF16 FMA in response to an instruction are described. In some examples, an instruction has fields for an opcode, an identification of location of a packed data source/destination operand (a first source), an identification of a location of a second packed data source operand, an identification of a location of a third packed data source operand, and an identification of location of a packed data source/destination operand, wherein the opcode is to indicate operand ordering and that execution circuitry is to, per data element position, perform a BF16 value fused multiply-accumulate operation using the first, second, and third source operands and store a result in a corresponding data element position of the source/destination operand.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
An apparatus comprising: decoder circuitry to decode a single instruction, the single instruction to include fields for an opcode, an identification of location of a packed data source/destination operand (a first source), an identification of a location of a second packed data source operand, an identification of a location of a third packed data source operand, and an identification of location of a packed data source/destination operand, wherein the opcode is to indicate operand ordering and that execution circuitry is to, per data element position, perform a BF16 value fused multiply-accumulate operation using the first, second, and third source operands and store a result in a corresponding data element position of the source/destination operand; and execution circuitry to execute the decoded single instruction according to the opcode.
- Claim 2Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element position multiplication of the BF16 value from the first source operand with the BF16 value in the third source operand to generate an infinite precision intermediate result, an addition of the infinite precision intermediate result negated to the BF16 values in the second source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 3Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the second source operand with the BF16 value in the first source operand to generate an infinite precision intermediate result, an addition of the infinite precision intermediate result negated to the BF16 value in the third source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 4Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the second source to the BF16 value in the third source operand to generate an infinite precision intermediate result, an addition of the infinite precision intermediate result negated to the BF16 value in the first source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 5Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the second source operand to the BF16 value in the first source operand to generate an infinite precision intermediate result, an addition of a the BF16 value in the third source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 6Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the first source operand to the BF16 value in the third source operand to generate an infinite precision intermediate result, an addition of a the BF16 value in the second source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 7Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the second source to the BF16 value in the third source operand to generate an infinite precision intermediate result, an addition the BF16 value in the first source operand to generate an infinite precision addition result, and a round of the infinite precision addition result.
- Claim 8Depends on #1
The apparatus of claim 1, wherein the opcode is to indicate the fused multiply accumulation operation is per data element multiplication of the BF16 value from the first source operand to the BF16 value in the third source operand to generate an infinite precision intermediate result, a subtraction of the infinite precision intermediate result negated to the BF16 value in the second source operand to generate an infinite precision subtraction result, and a round of the infinite precision addition result.
Technical Overview & Description
BACKGROUND In recent years fused-multiply-add (FMA) units with lower-precision multiplications and higher-precision accumulation have proven useful in machine learning/artificial intelligence applications, most notably in training deep neural networks due to their extreme computational intensity. Compared to classical IEEE-754 32-bit (FP32) and 64-bit (FP64) arithmetic, this reduced precision arithmetic can naturally be sped up disproportional to their shortened width. BRIEF DESCRIPTION OF DRAWINGS Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which: FIG. 1 illustrates different floating point representation formats. FIG. 2 illustrates an exemplary execution of an instruction to perform fused multiply add or fused multiply subtract operations on BF16 data elements. FIG. 3 illustrates embodiments of a FMA circuit. FIG. 4 illustrates an embodiment of method performed by a processor to process a BF16 FMA instruction. FIG. 5 illustrates exemplary embodiments of pseudo code representing the execution and format of BF16 FMA instruction. FIG. 6 illustrates exemplary embodiments of pseudo code representing the execution and format of BF16 FMA instruction. FIG. 7 illustrates embodiments of hardware to process an instruction such as the BF16 FMA instructions FIG. 8 illustrates embodiments of an exemplary system. FIG. 9 illustrates a block diagram of embodiments of a processor that may have more than one core, may have an integrated memory controller, and may have integrated graphics. FIG. 10 (A) is a block diagram illustrating both an exemplary in-order pipeline and an exemplary register renaming, out-of-order issue/execution pipeline according to embodiments of the invention. FIG. 10 (B) is a block diagram illustrating both an exemplary embodiment of an in-order architecture core and an exemplary register renaming, out-of-order issue/execution architecture core to be included in a processor according to emb
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (26)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Office Action , EP App. No. 22185939.0, Aug. 22, 2023, 05 pages.
- Office Action , EP App. No. 22185990.3, Aug. 22, 2023, 05 pages.
- Wikipedia,
- “
- bfloat16 floating-point format
- ”
- , available online at
- <
- https://en.wikipedia_org/w/index.php?title=Bfloat16_floating-point_format
- &