hottub.patents
US 12,379,927 B2#3478137 Most CitedActiveUnited States (USPTO)Utility

BFLOAT16 scale and/or reduce instructions

0Forward Citations (#3478137 Global)
0.0/yrCitation Velocity (#3478137 Global)
0.00Citation PageRank (#3478137 Global)
26Prior Art Cited
8Claims (2 Indep. · 6 Dep.)
0Drawings / Sheets

Abstract

Techniques for scale and reduction of BF16 data elements are described. An exemplary instruction includes fields for an having fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of the exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data 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 — 2 Independent, 6 Dependent)

  1. Claim 1Independent Claim

    An apparatus comprising: decode circuitry to decode an instance of a single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of an exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data destination operand; and the execution circuitry to execute the decoded instruction according to the opcode.

  2. Claim 2Depends on #1

    The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a vector register.

  3. Claim 3Depends on #1

    The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a memory location.

  4. Claim 4Depends on #1

    The apparatus of claim 1, wherein the execution circuitry is to use a round to nearest even rounding mode during execution of the decoded instruction.

  5. Claim 5Depends on #1

    The apparatus of claim 1, wherein the floor value is a zero when the data element of the second packed data source is a denormal.

  6. Claim 6Depends on #1

    The apparatus of claim 1, wherein the data element of the first packed data source is a zero when the data element of the first packed data source is a denormal.

  7. Claim 7Depends on #1

    The apparatus of claim 1, wherein the instruction is to further include one or more fields for a writemask register.

  8. Claim 8Independent Claim

    A system comprising: memory to store an instance of a single instruction; decode circuitry to decode the instance of the single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of an exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data destination operand; and the execution circuitry to execute the deco

Technical Overview & Description

BACKGROUND In recent years fused-multiply-accumulate (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 calculate a scale of BF16 data elements. FIG. 3 illustrates an embodiment of method performed by a processor to process a calculate a scale of BF16 data elements instruction. FIG. 4 illustrates exemplary embodiments of pseudo code representing the execution and format of a calculate a scale of BF16 data elements instruction FIG. 5 illustrates embodiments of execution of an extract a reduced argument of BF16 data elements instruction according to some embodiments. FIG. 6 illustrates embodiments of an exemplary method performed by a processor to process an instruction to extract a reduced argument of BF16 data elements according to some embodiments. FIG. 7 illustrates exemplary embodiments of pseudo code representing the execution and format of an extract a reduced argument of BF16 data elements instruction. FIG. 8 illustrates embodiments of execution of a round BF16 data elements instruction according to some embodiments. FIG. 9 illustrates embodiments of an exemplary method performed by a processor to process an instruction to round BF16 data elements according to some embodiments. FIG. 10 illustrates exemplary embodiments of pseudo code representing the execution and format of a round BF16 data elements instruction.

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)

PatentTitleYearCitations

Non-Patent Literature (10)

  • European Search Report and Search Opinion, EP App. No. 22185939.0, Jan. 20, 2023, 9 pages.
  • European Search Report and Search Opinion, EP App. No. 22185990.3, Jan. 20, 2023, 10 pages.
  • Extended European Search Report and Search Opinion for Application No. 22183762.8, Dec. 21, 2022, 9 pages.
  • Intel,
  • “
  • Intel (registered) 64 and IA-32 Architectures Software Developer's Manual
  • ”
  • , vol. 2 (2A, 2B
  • &
  • 2C): Instruction Set Reference, A-Z, Order No. 325383-055US, Jun. 2015, 1011 pages.