Verify kernel

From Xilinx/mlir-air · View interactive version

Verify kernel is an AI agent skill from the GitHub repository Xilinx/mlir-air. Select, develop and verify NPU kernels with the applicable registry reference and full-output elementwise tolerances, including local optimization and a scoped handoff to model integration.

How to use this skill

Skill file

Develop and verify required kernels

Derive kernel, shape, layout and precision coverage from real call sites, including projection dimensions, tails, padding, live context and execution modes. Read the applicable verification contract. Reuse evidence only when its dependencies and coverage match.

A registry reference can guide an applicable primitive check, but standalone tile choices, numerical receipts and timings do not automatically transfer to an embedded fused operator. Establish arithmetic, ABI/packing, producer/consumer and resource compatibility, and verify the affected implementation. Reuse unchanged internal kernels and matching evidence; missing isolated coverage remains missing, without introducing a mandatory decomposition step.

Read the actual harness/Makefile before selecting commands; targets and flags vary. Bind source/build/artifact/input/reference identities. If no isolated harness covers a kernel, report that missing verification coverage explicitly. In-context observations or layer cosine cannot be relabeled a full-output kernel PASS; optional integration diagnosis can help build a targeted check or localize a failure.

For small outputs or silent corruption, inspect divisibility, packing, address coverage and lowered execution. Use resource diagnosis, merge debug, attention debug or BO debug according to the evidence.

Do not exhaust tuning before useful integration or force a kernel-only task through a full model. A kernel handoff covers its listed cases; a model deployment separately needs the full-model gate and its complete performance boundary.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.