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
Copy file name to clipboardExpand all lines: _sources/autoapi/tilelang/language/reduce/index.rst.txt
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,30 @@ Module Contents
146
146
147
147
Negative `dim` indices are normalized (Python-style). If `dst` is None, the operation is performed in-place into `src`. Raises ValueError when `dim` is out of bounds for `src.shape`. When `src.scope() == "local.fragment"`, this delegates to `cumsum_fragment`; otherwise it emits the `tl.cumsum` intrinsic.
148
148
149
+
.. rubric:: Examples
150
+
151
+
A 1D inclusive scan that writes the result into a separate shared-memory buffer:
Copy file name to clipboardExpand all lines: autoapi/tilelang/language/reduce/index.html
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -695,6 +695,29 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to
695
695
<spanclass="sig-prename descclassname"><spanclass="pre">tilelang.language.reduce.</span></span><spanclass="sig-name descname"><spanclass="pre">cumsum</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">src</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dst</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dim</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">reverse</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#tilelang.language.reduce.cumsum" title="Link to this definition">¶</a></dt>
696
696
<dd><p>Compute the cumulative sum of <cite>src</cite> along <cite>dim</cite>, writing results to <cite>dst</cite>.</p>
697
697
<p>Negative <cite>dim</cite> indices are normalized (Python-style). If <cite>dst</cite> is None, the operation is performed in-place into <cite>src</cite>. Raises ValueError when <cite>dim</cite> is out of bounds for <cite>src.shape</cite>. When <cite>src.scope() == “local.fragment”</cite>, this delegates to <cite>cumsum_fragment</cite>; otherwise it emits the <cite>tl.cumsum</cite> intrinsic.</p>
698
+
<pclass="rubric">Examples</p>
699
+
<p>A 1D inclusive scan that writes the result into a separate shared-memory buffer:</p>
0 commit comments