Skip to main content
AI/MLpytorch

metal-kernel

Write Metal/MPS kernels for PyTorch operators. Use when adding MPS device support to operators, implementing Metal shaders, or porting CUDA kernels to Apple Silicon. Covers native_functions.yaml dispatch, host-side operators, and Metal kernel implementation.

Stars
100,283
Source
pytorch/pytorch
Updated
2026-05-31
Slug
pytorch--pytorch--metal-kernel
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/pytorch/pytorch/HEAD/.claude/skills/metal-kernel/SKILL.md -o .claude/skills/metal-kernel.md

Drops the SKILL.md into .claude/skills/metal-kernel.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.