Implementing a High-Performance Custom Diffusion Attention Kernel with FlyDSL - a workflow built to hand straight to an AI coding agent

What’s in it: A step-by-step guide to building custom diffusion attention kernels in FlyDSL, covering flexible KV-cache layouts (TiDAR mode) and configurability needs that FlexAttention alone can’t satisfy. The workflow was explicitly designed and tested by handing it to an LLM coding agent to implement and optimize the kernel itself.

Why it matters to you: If you’re hitting FlexAttention’s ceiling on diffusion-style attention patterns, this gives you both the technique and a reusable, agent-shaped workflow instead of hand-rolling the kernel yourself.

Read it here: Implementing a High-Performance Custom Diffusion Attention Kernel with FlyDSL — ROCm Blogs