What problem does it solve? Writing Attention operators for Ascend NPUs requires coordinating Cube cores for GEMM and Vector cores for softmax through workspace memory, plus numerically stable online softmax accumulation, which is error-prone without a proven pattern. ## Core Features & Use Cases - Cube+Vector Fusion Paradigm: Explains how QK^T and PV GEMMs run on Cube cores while softmax runs on Vector cores, communicating through workspace tensors declared via workspace_idx. - Online Softmax Accumulation: Documents the running-state algorithm (m_i, sumexp, acc_o) with correction factor decomposition for numerically stable block-wise softmax. - Required pass_configs: Lists the TileLang Ascend pass configurations (AUTO_CV_COMBINE, AUTO_CV_SYNC, AUTO_SYNC, MEMORY_PLANNING) needed for automatic C/V fusion and synchronization. - Use Case: When generating a sparse flash attention kernel for Atlas A2/A3 hardware, follow this guide to structure workspace communication, apply correction factors, and avoid pitfalls like reducing directly on L0C. ## Quick Start Ask the agent to generate a TileLang Ascend attention kernel following this guide, using workspace-based Cube/Vector communication and online softmax accumulation.