# Kebab Microbench And Dump

> Execute Kebab microbenchmarks and generate PTX/SASS dumps for kernel-level analysis. Use when asked to run mbench targets, inspect assembly output, compare copy or MMA kernels, or analyze low-level code generation. Use when this capability is needed.

- Skill: `tomevault-io/kebab-microbench-and-dump` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/kebab-microbench-and-dump`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/kebab-microbench-and-dump/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/kebab-microbench-and-dump

---


# Kebab Microbenchmark and Dump

## When to Use This Skill

- User requests microbenchmark execution (`mbench-*`)
- User needs SASS/PTX dumps for kernels
- User wants to compare implementations like native/vectorized/PTX/CuTe copy paths

## Prerequisites

- Successful build (`make build`)
- `cuobjdump` available in CUDA toolkit

## Step-by-Step Workflows

### Workflow A: Run Microbenchmark

1. Build:
   - `make build`
2. Run one microbenchmark:
   - `make mbench-copy-gmem-to-smem`
   - `make mbench-mma-wgmma`
   - `make mbench-hgemm`

### Workflow B: Generate Kernel Dumps

1. Build:
   - `make build`
2. Dump one microbenchmark binary:
   - `make mdump-copy-gmem-to-smem`
3. Inspect outputs under:
   - `dump/microbench/<microbench_name>/`

### Workflow C: Operator Dumps

- `make dump-gemm-cute`
- `make dump-gemm-cuda`
- `make dump-gemm-ref`

Outputs are under `dump/operator/`.

## Troubleshooting

| Issue | Mitigation |
|---|---|
| `cuobjdump not found` | Ensure CUDA toolkit bin directory is available and retry |
| No PTX generated | Some binaries may not embed PTX; SASS output is still usable |
| Dump files too large | Focus on split kernel files instead of `all_kernels.*` |

## References

- `Makefile` (`mbench-*`, `mdump-*`, `dump-*-cute/cuda/ref`)
- `kebab/lib/microbench/CMakeLists.txt`
- `dump/`

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/lancerlab) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

