# Triton Hip Reference Kernel Search

> Search and adapt Triton/HIP kernel patterns from a corpus to optimize AMD GPUs; use to find similar ops and reuse tiling/occupancy strategies.

- Skill: `wenyi-li/triton-hip-reference-kernel-search` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add wenyi-li/triton-hip-reference-kernel-search`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wenyi-li/triton-hip-reference-kernel-search/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: wenyi-li (https://skillmd.com/u/wenyi-li)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/wenyi-li/triton-hip-reference-kernel-search

---


# AMD Kernel Patterns

- Use when you need real kernel templates (attention, layernorm, matmul, activations) to adapt for AMD/ROCm.
- Do not load the entire corpus; grep targeted snippets instead.

## How to use
- Search `references/train_crawl.json` with ripgrep for relevant ops; keep context tight.
- Extract only needed code and descriptions; rewrite for wave64 occupancy, LDS tiling, vectorized/coalesced access, and bank-conflict avoidance.
- Cite source file and lines; pair with reflection prompts to validate correctness and performance.

## References
- `references/SEARCH.md`: Grep commands and tips for slicing snippets efficiently.

