SetHF32Mode
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function
Sets whether to enable the HF32 mode for the Mmad computation. After this mode is enabled, FP32 data in L0A/L0B is rounded off to HF32 before participating in the Mmad computation.
Prototype
1 | __aicore__ inline void SetHF32Mode(bool hf32Mode) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
hf32Mode |
Input |
Input parameter for controlling the Mmad HF32 mode. The value is of the Boolean type. The options are as follows:
|
Returns
None
Restrictions
None
Example
1 2 | bool hf32Mode = true; AscendC::SetHF32Mode(hf32Mode); |
Parent topic: Cube Computation