Graphics processors and graphics processing units having dot product accumulate instruction for hybrid floating point format
Graphics processors and graphics processing units having dot product accumulate instructions for a hybrid floating point format are disclosed. In one embodiment, a graphics multiprocessor comprises an instruction unit to dispatch instructions and a processing resource coupled to the instruction unit. The processing resource is configured to receive a dot product accumulate instruction from the instruction unit and to process the dot product accumulate instruction using a bfloat16 number (BF16) format.
1 . An apparatus comprising:
processing circuitry coupled to a memory, the processing circuitry comprising graphics processing circuitry comprising:
an instruction unit to dispatch instructions; and
a processing resource coupled to the instruction unit, the processing resource to receive an instruction of the dispatched instructions and process the instruction using a hybrid floating point data format.
2 . The apparatus of claim 1 , wherein the hybrid floating point data format is a cross between a first floating point number format and a second floating point number format, wherein the instruction includes a dot product accumulate instruction that causes a second source operand to multiply a third source operand while adding a first source operand with output from multiplying the second source operand and the third source operand.
3 . The apparatus of claim 2 , wherein the first source operand comprises a single-precision floating point format while at least one of the second source operand or the third source operand comprises a bfloat16 number (BF16) format.
4 . The apparatus of claim 2 , wherein at least one of the first source operand or the destination are based on one or more of a half-precision floating point format, a single-precision floating point format, or a bfloat16 number (BF16) format.
5 . The apparatus of claim 1 , wherein the processing resource comprises a floating point unit (FPU) to execute the dot product accumulate instruction based on the BF16 format, wherein the graphics processing circuitry comprises graphics multiprocessing circuitry.
6 . The apparatus of claim 1 , wherein the dispatched instructions comprise single instruction multiple data (SIMD) instructions.
7 . A method comprising:
dispatching, by an instruction unit of processing circuitry of a computing device, instructions; and
receiving, by a processing resource of the processing circuitry, an instruction of the dispatched instructions and processing the instruction using a hybrid floating point data format.
8 . The method of claim 7 , wherein the hybrid floating point data format is a cross between a first floating point number format and a second floating point number format, wherein the instruction includes a dot product accumulate instruction that causes a second source operand to multiply a third source operand while adding a first source operand with output from multiplying the second source operand and the third source operand.
9 . The method of claim 8 , wherein the first source operand comprises a single-precision floating point format while at least one of the second source operand or the third source operand comprises a bfloat16 number (BF16) format.
10 . The method of claim 8 , wherein at least one of the first source operand or the destination are based on one or more of a half-precision floating point format, a single-precision floating point format, or a bfloat16 number (BF16) format.
11 . The method of claim 8 , wherein the processing resource comprises a floating point unit (FPU) to execute the dot product accumulate instruction based on the BF16 format, wherein the processing circuitry is coupled to a memory, wherein the dispatched instructions comprise single instruction multiple data (SIMD) instructions the processing circuitry comprises graphics processing circuitry having graphics multiprocessing circuitry.
12 . A system comprising:
graphics multiprocessor coupled to a memory, the graphics multiprocessor having
an instruction unit to dispatch instructions; and
a processing resource coupled to the instruction unit, the processing resource to receive an instruction of the dispatched instructions and process the instruction using a hybrid floating point data format.
13 . The system of claim 12 , wherein the hybrid floating point data format is a cross between a first floating point number format and a second floating point number format, wherein the instruction includes a dot product accumulate instruction that causes a second source operand to multiply a third source operand while adding a first source operand with output from multiplying the second source operand and the third source operand.
14 . The system of claim 13 , wherein the first source operand comprises a single-precision floating point format while at least one of the second source operand or the third source operand comprises a bfloat16 number (BF16) format.
15 . The system of claim 14 , wherein at least one of the first source operand or the destination are based on one or more of a half-precision floating point format, a single-precision floating point format, or a bfloat16 number (BF16) format.
16 . The system of claim 13 , wherein the processing resource comprises a floating point unit (FPU) to execute the dot product accumulate instruction based on the BF16 format, wherein the dispatched instructions comprise single instruction multiple data (SIMD) instructions, wherein the graphics processing circuitry comprises graphics multiprocessing circuitry.