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.
O que a skill ensina
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.
O que faz
- 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
Sobre
- Publicador
- PyTorch
Instalação
O projeto não documenta passos de instalação que tenhamos conseguido confirmar. Veja as instruções do próprio projeto
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramenta | Não informado na documentação | |
| Publicador | PyTorch | fonte |
| Status oficial | Não informado na documentação | |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Não | fonte |
| Plataformas | macOS | fonte |
| Clientes de IA | Não informado na documentação | |
| Licença | NOASSERTION | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 11 de nov. de 2026105.390 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site |
Fontes
- Arquivo da skill (SKILL.md)github.com/pytorch/pytorch · Comprova: Inclui scripts, Licença10 de nov. de 2026
- Repositório no GitHubgithub.com/pytorch/pytorch · Comprova: Publicador, Atividade11 de nov. de 2026
- Pasta no repositório (metal-kernel)github.com/pytorch/pytorch · Comprova: Inclui scripts10 de nov. de 2026