SetMadType

Function Usage

Sets whether to enable the HF32 mode. Not supported in the current version.

Prototype

1
int32_t SetMadType(MatrixMadType madType)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

madType

Input

Matmul mode. The MatrixMadType type is defined as follows.

1
2
3
4
enum class MatrixMadType : int32_t {
NORMAL = 0,
HF32 = 1, 
}; 
  • MatrixMadType::NORMAL: normal mode, which is different from the HF32 mode.
  • MatrixMadType::HF32: HF32 mode.

Returns

-1: setting failed; 0: setting succeeded.

Precautions

None