Hardware for floating-point arithmetic in multiple formats
Abstract
A floating-point number in a first format representation is received. Based on an identification of a floating-point format type of the floating-point number, different components of the first format representation are identified. The different components of the first format representation are placed in corresponding components of a second format representation of the floating-point number, wherein a total number of bits of the second format representation is larger than a total number of bits of the first format representation. At least one of the components of the second format representation is padded with one or more zero bits. The floating-point number in the second format representation is stored in a register. A multiplication using the second format representation of the floating-point number is performed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (13)
- Claim 1Independent Claim
A device, comprising: a multiplication unit configured to: receive a floating-point number in a first format representation; based on an identification of a floating-point format type of the floating-point number, identify different components of the first format representation; place the different components of the first format representation in corresponding components of a second format representation of the floating-point number, wherein: a total number of bits of the second format representation is larger than a total number of bits of the first format representation; and a number of bits of a component of the second format representation is equal to a number of bits of a corresponding component of the first format representation; pad at least one of the components of the second format representation with one or more zero bits; and perform a multiplication using the second format representation of the floating-point number; and a register configured to store the floating-point number in the second format representation prior to the multiplication.
- Claim 2Depends on #1
The device of claim 1 , wherein the first format representation comprises a sign bit, five exponent bits, and ten mantissa bits.
- Claim 3Depends on #1
The device of claim 1 , wherein the first format representation comprises a sign bit, eight exponent bits, and seven mantissa bits.
- Claim 4Depends on #1
The device of claim 1 , wherein the identification of the floating-point format type includes a flag that specifies the floating-point format type.
- Claim 5Depends on #1
The device of claim 1 , wherein the multiplication unit is further configured to receive a multiply operation instruction that specifies the floating-point format type.
- Claim 6Depends on #1
The device of claim 1 , wherein the different components of the first format representation include a sign bit component, an exponent bits component, and a mantissa bits component.
- Claim 7Depends on #1
The device of claim 1 , wherein the total number of bits of the first format representation is sixteen.
- Claim 8Depends on #1
The device of claim 1 , wherein the total number of bits of the second format representation is at least nineteen.
- Claim 9Depends on #1
The device of claim 1 , wherein the second format representation comprises a sign bit, eight exponent bits, and ten mantissa bits.
- Claim 10Depends on #1
The device of claim 1 , wherein the multiplication unit is configured to pad at least one of the components of the second format representation with one or more zero bits including by being configured to place one or more zeros in one or more exponent bit locations of the second format representation in response to a determination that the floating-point format type of the floating-point number is half precision binary floating-point format.
- Claim 11Depends on #1
The device of claim 1 , wherein the multiplication unit is configured to pad at least one of the components of the second format representation with one or more zero bits including by being configured to place one or more zeros in one or more mantissa bit locations of the second format representation in response to a determination that the floating-point format type of the floating-point number is Brain Floating Point format.
- Claim 12Depends on #1
The device of claim 1 , wherein the multiplication unit is configured to perform the multiplication using the second format representation of the floating-point number including by being configured to add an exponent component of the second format representation to an exponent component of a different floating-point number.
- Claim 13Depends on #1
The device of claim 1 , wherein the multiplication unit is configured to perform the multiplication using the second format representation of the floating-point number including by being configured to multiply a mantissa component of the second format representation wit
Technical Overview & Description
BACKGROUND OF THE INVENTION A whole class of complex artificial intelligence problems can be solved using neural networks. One common operation required by many neural networks is a multiplication operation, for example, when performing matrix operations. Since artificial intelligence problems are often computationally and data intensive, hardware solutions are often beneficial for improving performance. However, the hardware to implement a floating-point multiplication operation is expensive. Moreover, different neural networks can require different number formats, which in turn can each have different hardware requirements. It is a technical challenge to create a hardware platform compatible with multiple number formats and capable of efficiently performing matrix multiplication operations. Therefore, there exists a need for a high throughput matrix multiplication scheme that is compatible with multiple number formats without introducing significant hardware complexity and expense. BRIEF DESCRIPTION OF THE DRAWINGS Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings. FIG. 1 is a block diagram illustrating an embodiment of a system for solving artificial intelligence problems using a neural network. FIG. 2 is a block diagram illustrating an embodiment of a processing element for solving artificial intelligence problems using a neural network. FIG. 3 is a flow chart illustrating an embodiment of a process for performing an operation associated with a matrix compute engine. FIG. 4 is a flow chart illustrating an embodiment of a process for performing a floating-point multiplication using a format representation compatible with multiple floating-point number formats. FIG. 5 is a diagram illustrating various floating-point number formats. FIG. 6 is a flow chart illustrating an embodiment of a process
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 (8)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- “Document No. 338302-001 US BFLOAT16—Hardware Numerics Definition”, Nov. 1, 2018, retrieved from URL: <https://software.intel.com/sites/default/files/managed/40/8b/bf16-hardware-numerics-definition-white-paper.pdf?source=techstories.org?.
- Extended European Search Report for European Application No. 21152465.7, dated Jun. 28, 2021, 09 Pages.