You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculates reduction step candidates for each reduction axis in a PrimFuncNode. General idea : use factor first, since it does not require extra boundary check. for large prime number, which is rare case, use power of 2.
83
+
84
+
:param node: The node for which to calculate reduction step candidates. It contains reduction axes (raxis)
85
+
with their domains (dom.extent).
86
+
:type node: PrimFuncNode
87
+
88
+
:returns: A dictionary mapping axis variable names to lists of step candidates. For each axis in the node,
89
+
this function calculates possible step sizes. For axes with a large prime domain, it uses powers of 2
90
+
as step candidates; for others, it uses all factors of the domain.
91
+
:rtype: Dict[str, List[int]]
92
+
93
+
67
94
68
95
.. py:method:: check_tile_shape_isvalid(td)
69
96
97
+
Checks if the tile shapes in the TileDict are valid for the nodes in this context.
98
+
99
+
Parameters:
100
+
- td (TileDict): The TileDict object containing tile shapes and other configurations.
101
+
102
+
Returns:
103
+
- bool: True if all tile shapes are valid, False otherwise.
104
+
105
+
70
106
71
107
.. py:method:: compute_node_stride_map(node, td)
72
108
109
+
Computes the stride map for a given node based on the TileDict configuration.
110
+
111
+
:param node: The node for which to compute the stride map.
112
+
:type node: PrimFuncNode
113
+
:param td: The TileDict object containing the tile configuration.
114
+
:type td: TileDict
115
+
116
+
:returns: A tuple of dictionaries containing the output strides and tensor strides.
117
+
:rtype: Tuple[Dict, Dict]
118
+
119
+
73
120
74
121
.. py:method:: plan_rasterization(td)
75
122
123
+
Plans the rasterization for the given TileDict. This function is not implemented yet.
124
+
125
+
:param td: The TileDict object to plan rasterization for.
126
+
:type td: TileDict
127
+
128
+
:raises RasterRationPlan: This function is not implemented yet.
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">tilelang.carver.arch.cdna.</span></span><spanclass="sig-name descname"><spanclass="pre">CDNA</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">target</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#tilelang.carver.arch.cdna.CDNA" title="Link to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">tilelang.carver.arch.cuda.</span></span><spanclass="sig-name descname"><spanclass="pre">CUDA</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">target</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#tilelang.carver.arch.cuda.CUDA" title="Link to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">tilelang.carver.arch.driver.cuda_driver.</span></span><spanclass="sig-name descname"><spanclass="pre">cudaDeviceProp</span></span><aclass="headerlink" href="#tilelang.carver.arch.driver.cuda_driver.cudaDeviceProp" title="Link to this definition">¶</a></dt>
0 commit comments