<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Backend Optimization on FlagGems</title><link>https://flagos-ai.github.io/FlagGems/optimization/</link><description>Recent content in Backend Optimization on FlagGems</description><generator>Hugo</generator><language>en</language><atom:link href="https://flagos-ai.github.io/FlagGems/optimization/index.xml" rel="self" type="application/rss+xml"/><item><title>Ascend</title><link>https://flagos-ai.github.io/FlagGems/optimization/ascend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flagos-ai.github.io/FlagGems/optimization/ascend/</guid><description>&lt;!--
 Copyright 2026 FlagOS Contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 --&gt;
&lt;h1 id="ascend-optimization"&gt;Ascend optimization&lt;a class="anchor" href="#ascend-optimization"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="hardware-architecture"&gt;Hardware architecture&lt;a class="anchor" href="#hardware-architecture"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The Cube path executes matrix multiplication, the Vector path handles elementwise work and reductions, and the Scalar path handles address calculations and loop control. MTE engines move data from global memory (GM, usually HBM) into on-chip buffers. Cube uses L1, L0A, L0B, and L0C; Vector uses the Unified Buffer (UB). &lt;strong&gt;UB and L0 are distinct spaces; L1 is a Cube-side buffer, not the cross-core L2 cache.&lt;/strong&gt; A kernel combining &lt;code&gt;tl.dot&lt;/code&gt; with a Vector epilogue may need intermediate transfers and synchronization.&lt;/p&gt;</description></item><item><title>Hygon</title><link>https://flagos-ai.github.io/FlagGems/optimization/hygon/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flagos-ai.github.io/FlagGems/optimization/hygon/</guid><description>&lt;!--
 Copyright 2026 FlagOS Contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 --&gt;
&lt;h1 id="hygon-optimization"&gt;Hygon optimization&lt;a class="anchor" href="#hygon-optimization"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Triton kernels run on Hygon DCUs through the HIP path. Tile sizes, warp counts, pipeline depth, and program ordering determine register, on-chip shared-memory (LDS), and cache use. This guide uses Hygon BW / &lt;code&gt;gfx936&lt;/code&gt; to explain optimization mechanisms tied directly to those resources.&lt;/p&gt;</description></item></channel></rss>