triton-cuda-patterns

Provide standardized Triton CUDA kernel templates for elementwise, reduction, and matmul operators.

258|48|Updated Jun 22, 2020
One-click install
npx skills add https://github.com/mindspore-ai/akg --skill triton-cuda-patterns-mindspore-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: triton-cuda-patterns
Source: https://github.com/mindspore-ai/akg/tree/main/akg_agents/python/akg_agents/op/resources/skills/triton-cuda/guides/triton-cuda-patterns
Command: npx skills add https://github.com/mindspore-ai/akg --skill triton-cuda-patterns-mindspore-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides standardized Triton CUDA kernel patterns to accelerate implementing core operators by offering ready-to-use templates for elementwise, reduction, and matmul kernels.

Core Features & Use Cases

  • Standardized kernel templates for elementwise, reduction, and matmul modes to speed kernel development.
  • Guides for host integration and block/grid configuration to optimize performance on CUDA devices.
  • Use Case: Build a new operator by selecting a pattern and adapting block sizes with minimal boilerplate.

Quick Start

Instantiate the triton-cuda-patterns templates to generate a kernel for your target operator and adapt the block sizes accordingly.

Frequently Asked Questions about triton-cuda-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Triton CUDA kernel for elementwise, reduction, or matmul operations?

To write a Triton CUDA kernel for elementwise, reduction, or matmul operations, use standardized programming patterns that provide ready-to-use templates to accelerate implementing core operators with minimal boilerplate.

What is the best way to prototype custom operators in Triton without writing boilerplate?

The best way to prototype custom operators in Triton is to instantiate standardized kernel templates for elementwise, reduction, or matmul modes and adapt the block sizes for your target operator.

How do I handle host integration and block configuration for Triton CUDA kernels?

Handle host integration and block configuration for Triton CUDA kernels by following built-in guides that help optimize performance on CUDA devices through proper block and grid setup.

Can I use these Triton kernel patterns to build a new operator by just adapting block sizes?

Yes, you can build a new operator by selecting a standardized Triton elementwise, reduction, or matmul pattern and adapting the block sizes to fit your specific CUDA workflow requirements.

Does the triton-cuda-patterns skill require specific metadata formatting for its templates?

Yes, the triton-cuda-patterns skill requires YAML frontmatter containing name, description, category, and version, followed by a Markdown body detailing the three programming modes and optional resource directories.