krnopt-cuda-domain-optimization

Optimize CUDA kernels with domain-driven patterns and output a concrete optimization plan.

Updated May 27, 2026
One-click install
npx skills add https://github.com/igamenovoer/domain-skills --skill krnopt-cuda-domain-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: krnopt-cuda-domain-optimization
Source: https://github.com/igamenovoer/domain-skills/tree/main/domain/cuda/krnopt-cuda-domain-optimization
Command: npx skills add https://github.com/igamenovoer/domain-skills --skill krnopt-cuda-domain-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides AI agents to optimize CUDA kernels by workload-domain considerations rather than generic memory/coalescing/tile advice, with MoE kernel design as the initial focus and room to add more domains via references.

Core Features & Use Cases

  • Identify the kernel's domain and workload shape and classify it into routing/dispatch, grouped GEMM, expert MLP fusion, or other domain boundaries.
  • Load domain references to inform a concrete optimization plan that aligns with hardware targets and architecture-specific constraints.
  • Produce a domain-aware optimization plan that names bottlenecks, selects domain patterns, and prescribes boundary changes, build targets, correctness gates, and timing criteria.

Quick Start

Describe your CUDA kernel's workload-domain and request a domain-driven optimization plan.

Frequently Asked Questions about krnopt-cuda-domain-optimization

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

FAQPage Schema
How do I optimize CUDA kernels for MoE workloads?

Optimizing CUDA kernels for MoE workloads involves classifying the kernel into routing, dispatch, or expert MLP fusion domains. The planner then applies domain-driven patterns like grouped GEMM to generate a concrete optimization plan targeting specific hardware architectures.

What is domain-guided CUDA kernel optimization?

Domain-guided CUDA kernel optimization is a planning approach that uses workload-domain insights, such as decode or prefill regimes, instead of generic memory coalescing advice. It identifies domain boundaries like grouped GEMM to prescribe specific hardware-aware improvements and validation criteria.

How do I plan boundary changes for a grouped GEMM CUDA kernel?

Planning boundary changes for a grouped GEMM CUDA kernel requires identifying its workload shape and applying domain references to prescribe specific boundary modifications. The resulting plan includes target architectures, build targets, and correctness gates for validation.

Does generic CUDA optimization advice work for MoE kernel design?

Generic CUDA optimization advice is insufficient for MoE kernel design because it ignores domain boundaries. MoE kernel design requires domain-driven patterns that address routing, dispatch, and expert MLP fusion specific to decode and prefill workload regimes.

What constraints should a CUDA kernel optimization plan include?

A CUDA kernel optimization plan should include architecture-specific constraints, boundary changes, build targets, correctness gates, and timing criteria. These elements ensure the domain-specific improvements align with targeted hardware regimes like decode and prefill.