metal-kernel
A maintainer skill in the PyTorch repository for writing native Metal kernels that run PyTorch operators on Apple Silicon GPUs, preferred over MPSGraph for control and speed.
Was der Skill vermittelt
A maintainer skill in the PyTorch repository for writing native Metal kernels that run PyTorch operators on Apple Silicon GPUs, preferred over MPSGraph for control and speed. The agent adds the MPS entry to the operator's dispatch definitions, writes the kernel as a templated functor registered with the project's unary or binary macros, adds a host-side stub that runs it and removes any old MPSGraph implementation, then builds with ninja. It covers complex and boolean arguments, very large tensors and error reporting from inside kernels, how to take the operator off the MPS skip and expected-failure lists so its tests run, and testing single shaders with the compile_shader helper.
Funktionen
- Add MPS dispatch for a PyTorch operator
- Write and register a native Metal kernel
- Migrate an operator off MPSGraph
- Enable and run the operator's MPS tests
Überblick
- Herausgeber
- PyTorch
Installation
Das Projekt dokumentiert keine Installationsschritte, die wir bestätigen konnten. Zur Anleitung des Projekts
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tool | In der Dokumentation nicht angegeben | |
| Herausgeber | PyTorch | Quelle |
| Offizieller Status | In der Dokumentation nicht angegeben | |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | macOS | Quelle |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | NOASSERTION | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 11. Nov. 2026105.390 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository Website |
Quellen
- Skill-Datei (SKILL.md)github.com/pytorch/pytorch · Belegt: Enthält Skripte, Lizenz10. Nov. 2026
- GitHub-Repositorygithub.com/pytorch/pytorch · Belegt: Herausgeber, Aktivität11. Nov. 2026
- Ordner im Repository (metal-kernel)github.com/pytorch/pytorch · Belegt: Enthält Skripte10. Nov. 2026