triton-ascend-case-matmul-swizzle2d

Community

Ascend matmul: Swizzle2D for faster compute

Authorxchang1121
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Large-scale matrix multiplication on Ascend suffers from poor cache locality and load imbalance when launching many blocks. This Skill applies a Swizzle2D-based grouping and a fixed-core startup to improve data reuse and balance across cores for large A[M,K] x B[K,N] matrices.

Core Features & Use Cases

  • Fixed-core startup: grid=(num_cores,), each core processes multiple blocks.
  • Swizzle2D block reordering: group-level data locality, improved cache hits.
  • Adaptive grouping direction: choose row- or column-first grouping based on M vs N.
  • Block-size tuning: select BLOCK_M, BLOCK_K, BLOCK_N for the data type and cache size.

Quick Start

Run the Swizzle2D matmul optimization on Ascend for a large A[M,K] x B[K,N] workload to evaluate performance improvements.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: triton-ascend-case-matmul-swizzle2d
Download link: https://github.com/xchang1121/AutoResearch-CC-hook/archive/main.zip#triton-ascend-case-matmul-swizzle2d

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.