TSETHF32MODE¶
Tile Operation Diagram¶
Introduction¶
Configure HF32 transform mode (implementation-defined).
This instruction controls backend-specific HF32 transformation behavior used by supported compute paths.
Math Interpretation¶
No direct tensor arithmetic is produced by this instruction. It updates target mode state used by subsequent instructions.
Assembly Syntax¶
PTO-AS form: see docs/assembly/PTO-AS.md.
Schematic form:
tsethf32mode {enable = true, mode = ...}
IR Level 1 (SSA)¶
pto.tsethf32mode {enable = true, mode = ...}
IR Level 2 (DPS)¶
pto.tsethf32mode ins({enable = true, mode = ...}) outs()
C++ Intrinsic¶
Declared in include/pto/common/pto_instr.hpp:
template <bool isEnable, RoundMode hf32TransMode = RoundMode::CAST_ROUND, typename... WaitEvents>
PTO_INST RecordEvent TSETHF32MODE(WaitEvents &... events);
Constraints¶
- Available only when the corresponding backend capability macro is enabled.
- Exact mode values and hardware behavior are target-defined.
- This instruction has control-state side effects and should be ordered appropriately relative to dependent compute instructions.
Examples¶
#include <pto/pto-inst.hpp>
using namespace pto;
void example_enable_hf32() {
TSETHF32MODE<true, RoundMode::CAST_ROUND>();
}