|
tvm
|
The context information of the kernel required by op dispatch. More...
#include <tirx_op.h>
Public Member Functions | |
| void | AddAllocBuffer (Buffer buffer) |
| Add a buffer to be allocated in the kernel. More... | |
| void | AddInitStmt (Stmt stmt, bool host=false) |
| Add an initialization statement to be inserted. More... | |
| void | AddPostBufferDefStmt (Buffer buffer, Stmt stmt) |
| Add a statement to be inserted after a buffer's definition. More... | |
| void | SharedStateSet (ffi::String key, ffi::ObjectRef value) |
| Set a value in the shared state cache. More... | |
| ffi::Optional< ffi::ObjectRef > | SharedStateGet (ffi::String key) |
| Get a value from the shared state cache. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.DispatchContext", DispatchContextNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| Target | target |
| The target of the kernel. More... | |
| ExecScope | exec_scope |
| The exec scope of the operator. More... | |
| ffi::Map< ffi::String, IterVar > | launch_params |
| The kernel launch parameters. More... | |
| ffi::Map< Var, Range > | var_range_map |
| A map from loop variables to their ranges. More... | |
| bool | alloc_only |
| Whether the dispatch context is only used for buffer allocation. More... | |
| ffi::Map< ffi::String, ffi::ObjectRef > | callbacks |
| Callback to be handled when the operator is scheduled. More... | |
| ffi::Map< ffi::String, ffi::ObjectRef > | shared_state |
| Shared state that persists across dispatch calls within a single lowering pass. More... | |
| ffi::Map< ffi::String, ffi::Array< PrimExpr > > | inter |
| ExecContext inter-team view at this op site. More... | |
| ffi::Map< ffi::String, ffi::Array< PrimExpr > > | intra |
ExecContext intra-team view. Same encoding as inter. More... | |
| ffi::String | scope_kind |
| Scope kind string ("kernel"/"cta"/"warpgroup"/"warp"/"thread"/"cluster"). More... | |
The context information of the kernel required by op dispatch.
| void tvm::tirx::DispatchContextNode::AddAllocBuffer | ( | Buffer | buffer | ) |
Add a buffer to be allocated in the kernel.
| void tvm::tirx::DispatchContextNode::AddInitStmt | ( | Stmt | stmt, |
| bool | host = false |
||
| ) |
Add an initialization statement to be inserted.
Add a statement to be inserted after a buffer's definition.
|
inlinestatic |
| ffi::Optional<ffi::ObjectRef> tvm::tirx::DispatchContextNode::SharedStateGet | ( | ffi::String | key | ) |
Get a value from the shared state cache.
| void tvm::tirx::DispatchContextNode::SharedStateSet | ( | ffi::String | key, |
| ffi::ObjectRef | value | ||
| ) |
Set a value in the shared state cache.
| tvm::tirx::DispatchContextNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tirx.DispatchContext" | , |
| DispatchContextNode | , | ||
| ffi::Object | |||
| ) |
| bool tvm::tirx::DispatchContextNode::alloc_only |
Whether the dispatch context is only used for buffer allocation.
| ffi::Map<ffi::String, ffi::ObjectRef> tvm::tirx::DispatchContextNode::callbacks |
Callback to be handled when the operator is scheduled.
| ExecScope tvm::tirx::DispatchContextNode::exec_scope |
The exec scope of the operator.
| ffi::Map<ffi::String, ffi::Array<PrimExpr> > tvm::tirx::DispatchContextNode::inter |
ExecContext inter-team view at this op site.
Maps axis name ("laneid"/"warpid"/"cta_id"/"wid_in_wg"/"wgid") to a 2-element [extent, offset] PrimExpr array. Empty map = no ExecContext tracking available (fallback for unresolved filters, pre-Phase-4 call sites, etc.); dispatchers should fall back to exec_scope.name in that case.
| ffi::Map<ffi::String, ffi::Array<PrimExpr> > tvm::tirx::DispatchContextNode::intra |
ExecContext intra-team view. Same encoding as inter.
| ffi::Map<ffi::String, IterVar> tvm::tirx::DispatchContextNode::launch_params |
The kernel launch parameters.
| ffi::String tvm::tirx::DispatchContextNode::scope_kind |
Scope kind string ("kernel"/"cta"/"warpgroup"/"warp"/"thread"/"cluster").
| ffi::Map<ffi::String, ffi::ObjectRef> tvm::tirx::DispatchContextNode::shared_state |
Shared state that persists across dispatch calls within a single lowering pass.
| Target tvm::tirx::DispatchContextNode::target |
The target of the kernel.
A map from loop variables to their ranges.