kernel-designer

Design UnifiedSketch algorithm sketches for operator tasks across multiple DSLs.

258|48|Updated Jun 22, 2020
One-click install
npx skills add https://github.com/mindspore-ai/akg --skill kernel-designer-mindspore-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kernel-designer
Source: https://github.com/mindspore-ai/akg/tree/main/akg_agents/workspace/.opencode/skills/kernel-designer
Command: npx skills add https://github.com/mindspore-ai/akg --skill kernel-designer-mindspore-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

算子算法草图设计 Skill — 负责根据任务需求设计高质量的算法草图(sketch),提供伪代码形式的算法方案、优化建议和实现策略。 支持多种 DSL:triton_cuda、triton_ascend、cpp、cuda_c、tilelang_cuda、pypto。 支持 Hint 模式(参数空间配置)。

Core Features & Use Cases

  • 支持多 DSL:triton_cuda、triton_ascend、cpp、cuda_c、tilelang_cuda、pypto
  • 支持三种工作模式:首次设计、进化优化、Hint 模式
  • 自动加载参考文档、分析任务、生成草图并给出优化点

Quick Start

Provide a UnifiedSketch sketch for op_name using task_desc and backend to generate a high-level algorithm draft.

Frequently Asked Questions about kernel-designer

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

FAQPage Schema
How do I design an algorithm sketch for kernel generation across different DSLs?

To design an algorithm sketch for kernel generation, you provide the operator name, task description, backend, and selected DSL. The system then generates a structured UnifiedSketch with symbols, tensors, data flows, and optimization hints.

What DSLs are supported for generating operator algorithm sketches?

Supported DSLs for generating operator algorithm sketches include triton_cuda, triton_ascend, cpp, cuda_c, tilelang_cuda, and pypto. You select one based on your target backend hardware constraints.

Can I use hint mode to configure parameter spaces for kernel optimization?

Yes, you can use hint mode to configure parameter spaces for kernel optimization. This mode delivers explicit optimization hints via the @llm_hint mechanism while respecting hardware and DSL constraints.

What is the best way to optimize an existing kernel algorithm sketch?

The best way to optimize an existing kernel algorithm sketch is using evolutionary optimization mode. This mode adapts to your current sketch inputs and iteratively refines data flows like alloc, load, compute, and store.

Do I need to specify backend and task description to generate a kernel sketch?

Yes, you need to specify the backend and task description to generate a kernel sketch. These inputs ensure the resulting algorithm sketch respects hardware constraints and applies the correct DSL syntax.

Why does my kernel algorithm sketch need explicit optimization hints?

Your kernel algorithm sketch needs explicit optimization hints to guide downstream code generation effectively. Providing hints via the @llm_hint mechanism ensures the generated code respects specific hardware and DSL constraints.