ProtonOps
proton.record (triton::proton::RecordOp)
记录一个事件
语法
operation ::= `proton.record` (`start` $isStart^):(`end`)? $name attr-dict
此操作用于标注 IR 中记录事件的区域。事件可分为硬件事件或软件事件。硬件事件由后续将 Triton 转换为特定于目标的 IR 的过程中所获取的硬件性能计数器提供。软件事件由用户或编译器提供。
示例
proton.record start "name0"
...
proton.record end "name0"
作用域名称在同一函数内不可重复使用。
接口:MemoryEffectOpInterface (MemoryEffectOpInterface)
效果: MemoryEffects::Effect{MemoryEffects::Read on ::mlir::SideEffects::DefaultResource, MemoryEffects::Write on ::mlir::SideEffects::DefaultResource}
属性:
| 属性 | MLIR 类型 | 描述 |
|---|---|---|
isStart | ::mlir::UnitAttr | 单元属性 |
name | ::mlir::StringAttr | 字符串属性 |