20 #ifndef TVM_META_SCHEDULE_POSTPROC_H_ 21 #define TVM_META_SCHEDULE_POSTPROC_H_ 29 namespace meta_schedule {
64 static constexpr
const char*
_type_key =
"meta_schedule.Postproc";
111 TVM_DLL
static Postproc DisallowDynamicLoop();
116 TVM_DLL
static Postproc DisallowAsyncStridedMemCopy();
122 TVM_DLL
static Postproc RewriteCooperativeFetch();
128 TVM_DLL
static Postproc RewriteParallelVectorizeUnroll();
133 TVM_DLL
static Postproc RewriteReductionBlock();
139 TVM_DLL
static Postproc RewriteUnboundBlock(
int max_threadblocks);
146 TVM_DLL
static Postproc RewriteTensorize(
bool vectorize_init_loop =
false);
162 TVM_DLL
static Postproc RewriteLayout();
206 static constexpr
const char*
_type_key =
"meta_schedule.PyPostproc";
213 #endif // TVM_META_SCHEDULE_POSTPROC_H_ The postprocessor with customized methods on the python-side.
Definition: postproc.h:180
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
runtime::TypedPackedFunc< void(const TuneContext &)> FInitializeWithTuneContext
The function type of InitializeWithTuneContext method.
Definition: postproc.h:78
Managed reference to PostprocNode.
Definition: postproc.h:72
FInitializeWithTuneContext f_initialize_with_tune_context
The packed function to the InitializeWithTuneContext function.
Definition: postproc.h:187
runtime::TypedPackedFunc< Postproc()> FClone
Clone the postprocessor.
Definition: postproc.h:89
base class of all object containers.
Definition: object.h:167
FApply f_apply
The packed function to the Apply function.
Definition: postproc.h:189
#define TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:744
Managed reference to ScheduleNode.
Definition: schedule.h:813
Managed reference to TuneContextNode.
Definition: tune_context.h:95
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
runtime::TypedPackedFunc< String()> FAsString
Get the postprocessor function as string with name.
Definition: postproc.h:94
static constexpr const char * _type_key
Definition: postproc.h:64
bool VerifyGPUCode(const PrimFunc &func, Map< String, PrimExpr > constraints)
Verify the correctness of a GPU code It will check the whether the amount of memory usage or the numb...
Rules to apply a postprocessor to a schedule.
Definition: postproc.h:37
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Please refer to TypedPackedFunc<R(Args..)>.
Definition: packed_func.h:60
Base class of all object reference.
Definition: object.h:511
TVM_DECLARE_BASE_OBJECT_INFO(PostprocNode, Object)
virtual Postproc Clone() const =0
Clone the postprocessor.
FClone f_clone
The packed function to the Clone function.
Definition: postproc.h:191
A managed object in the TVM runtime.
#define TVM_DECLARE_FINAL_OBJECT_INFO(TypeName, ParentType)
helper macro to declare type information in a final class.
Definition: object.h:671
FAsString f_as_string
The packed function to the AsString function.
Definition: postproc.h:193
virtual void InitializeWithTuneContext(const TuneContext &context)=0
Initialize the design space generator with tuning context.
runtime::TypedPackedFunc< bool(const tir::Schedule &)> FApply
Apply a postprocessor to the given schedule.
Definition: postproc.h:84
virtual bool Apply(const tir::Schedule &sch)=0
Apply a postprocessor to the given schedule.
bool VerifyVTCMLimit(const PrimFunc &func, Integer limit)
Verifies that the VTCM usage of the given prim_func is within the provided limit. ...
virtual ~PostprocNode()=default
Virtual destructor.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:195
Reflection and serialization of compiler IR/AST nodes.
Type-erased function used across TVM API.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:42