25 #ifndef TVM_AUTO_SCHEDULER_SEARCH_TASK_H_ 26 #define TVM_AUTO_SCHEDULER_SEARCH_TASK_H_ 33 namespace auto_scheduler {
60 v->Visit(
"num_cores", &num_cores);
61 v->Visit(
"vector_unit_bytes", &vector_unit_bytes);
62 v->Visit(
"cache_line_bytes", &cache_line_bytes);
63 v->Visit(
"max_shared_memory_per_block", &max_shared_memory_per_block);
64 v->Visit(
"max_local_memory_per_block", &max_local_memory_per_block);
65 v->Visit(
"max_threads_per_block", &max_threads_per_block);
66 v->Visit(
"max_vthread_extent", &max_vthread_extent);
67 v->Visit(
"warp_size", &warp_size);
78 static constexpr
const char*
_type_key =
"auto_scheduler.HardwareParams";
130 v->Visit(
"compute_dag", &compute_dag);
131 v->Visit(
"workload_key", &workload_key);
132 v->Visit(
"desc", &desc);
133 v->Visit(
"target", &target);
134 v->Visit(
"target_host", &target_host);
135 v->Visit(
"hardware_params", &hardware_params);
136 v->Visit(
"layout_rewrite_option", &layout_rewrite_option);
137 v->Visit(
"task_input_names", &task_input_names);
140 static constexpr
const char*
_type_key =
"auto_scheduler.SearchTask";
171 #endif // TVM_AUTO_SCHEDULER_SEARCH_TASK_H_ Managed reference to ComputeDAGNode.
Definition: compute_dag.h:219
TVM_DECLARE_FINAL_OBJECT_INFO(HardwareParamsNode, Object)
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
int cache_line_bytes
The size of cache line in bytes.
Definition: search_task.h:45
String workload_key
The workload key for the compute declaration.
Definition: search_task.h:115
void VisitAttrs(tvm::AttrVisitor *v)
Definition: search_task.h:59
base class of all object containers.
Definition: object.h:167
void VisitAttrs(tvm::AttrVisitor *v)
Definition: search_task.h:129
int max_local_memory_per_block
The max local memory per block in bytes.
Definition: search_task.h:51
static HardwareParams GetDefaultHardwareParams(const Target &target, const Target &target_host)
Get the default hardware params.
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
A device-independent managed NDArray abstraction.
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Managed reference to HardwareParamsNode.
Definition: search_task.h:86
int vector_unit_bytes
The width of vector units in bytes.
Definition: search_task.h:43
The parameters of target hardware used to guide the SearchPolicy.
Definition: search_task.h:38
The computation information and hardware parameters for a specific schedule search task...
Definition: search_task.h:110
Array< String > task_input_names
Names of some user defined input data used in program measuring.
Definition: search_task.h:127
LayoutRewriteOption
Options for applying layout rewrite. This is an optimization to rewrite the layout of input tensors a...
Definition: compute_dag.h:201
int warp_size
The thread numbers of a warp.
Definition: search_task.h:57
Reference to string objects.
Definition: string.h:98
String desc
The description string of this task.
Definition: search_task.h:117
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:713
static constexpr const char * _type_key
Definition: search_task.h:78
Target target
The target device of this search task.
Definition: search_task.h:119
Managed reference class to TargetNode.
Definition: target.h:183
The auto-scheduler's computational graph and related program analyses.
Base class of all object reference.
Definition: object.h:511
#define TVM_DEFINE_OBJECT_REF_COW_METHOD(ObjectName)
Define CopyOnWrite function in an ObjectRef.
Definition: object.h:785
int num_cores
The number of cores.
Definition: search_task.h:41
ComputeDAG compute_dag
The ComputeDAG for the compute declaration.
Definition: search_task.h:113
int max_vthread_extent
The max vthread extent.
Definition: search_task.h:55
int max_shared_memory_per_block
The max shared memory per block in bytes.
Definition: search_task.h:49
int max_threads_per_block
The max number of threads per block.
Definition: search_task.h:53
Compilation target object.
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Target target_host
The target host device of this search task.
Definition: search_task.h:121
LayoutRewriteOption layout_rewrite_option
The layout rewrite option used for measuring programs.
Definition: search_task.h:125
Managed reference to SearchTaskNode.
Definition: search_task.h:148
HardwareParams hardware_params
Hardware parameters used in this search task.
Definition: search_task.h:123