ROCmROCmOfficialΒ·14 Agent Skills Included

FlyDSL

Author and tune high-performance AMD GPU kernels in Python

Builds high-performance AMD GPU kernels in Python using explicit layout algebra, tiling, and MMA atoms compiled through an MLIR stack. Guides kernel authoring, debugging, prefetching, LDS bank-conflict fixes, GEMM tuning, and instruction-level profiling with rocprofv3 traces. Removes guesswork from GPU optimization by turning trace data and correctness failures into concrete, verified fixes.
npx skills add ROCm/FlyDSL --all -g -y
Available:

Gives your AI agent operating rules for working in this repository: think before coding, keep changes minimal and surgical, verify every task against stated goals, and follow the documented build, test, and environment conventions.

All Skills in This Repository (14)

Pure Emerald Level Indicators
πŸ“¦ In Repo
ROCmROCm

port-to-layout-api

Port FlyDSL GPU kernels from raw buffer_ops to the layout API.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

format-code

Format Python and C/C++ files by removing unused imports and variables.

Official
Intermediate
πŸ“¦ In Repo
ROCmROCm

build-rocm-image

Build a ROCm development Docker image on a remote host via SSH.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

flydsl-kernel-authoring

Author AMDGPU kernels with FlyDSL layout algebra and MLIR lowering.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

build-flydsl

Automate building and installing FlyDSL from source on remote hosts or containers.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

bisect-perf-regression

Automate Git bisect to locate the commit introducing GPU kernel performance regressions.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

debug-flydsl-kernel

Diagnose incorrect FlyDSL GPU kernel outputs, NaNs, infs, and crashes.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

add-target-atom-op

Add target-specific MmaOp/CopyOp to a FlyDSL backend dialect.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

capture-kernel-trace

Capture and analyze GPU kernel ATT traces using rocprofv3.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

kernel-trace-analysis

Analyze ATT traces to profile GPU kernels and identify stall hotspots.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

lds-optimization

Diagnose LDS bank conflicts and lgkmcnt stalls in FlyDSL GPU kernels.

Official
Advanced
πŸ“¦ In Repo
ROCmROCm

prefetch-data-load

Introduce loop-carried prefetch to overlap data loads with compute in FlyDSL GPU kernel loops.

Official
Advanced

Frequently Asked Questions

FAQPage Schema
How to install FlyDSL?β–Ό

Run `npx skills add ROCm/FlyDSL --all -g -y` in your terminal to install all skills in this suite globally.

What is FlyDSL used for?β–Ό

FlyDSL is a Python DSL and MLIR compiler stack for writing high-performance AMD GPU kernels with explicit control over layouts, tiling, and data movement. It ships production kernels for GEMM, attention, MoE, normalization, and convolution.

How do I debug a FlyDSL kernel that returns NaN or wrong results?β–Ό

The included debugging skills walk you through clearing stale JIT caches, isolating faults with all-ones inputs, and checking layout and MFMA operand ordering. They also cover out-of-bounds detection using static interval analysis and runtime checks.

Can I profile and fix GPU kernel performance bottlenecks?β–Ό

Yes. The suite captures rocprofv3 instruction-level traces, identifies stall hotspots like memory waits and bank conflicts, and produces a prioritized optimization plan. It can also bisect git history to find the exact commit that caused a regression.

Do I need GPU kernel experience to use these skills?β–Ό

No. A step-by-step wizard guides you from a plain requirement to a tested kernel, while reference skills handle the low-level layout and hardware details for you.

Related Repositories in Software Engineering

View All in Software Engineering→