How to run PyTorch on custom AI chips beyond CPUs and GPUs
summary
Explains how the PyTorch dispatcher routes ops by dispatcher key and how PrivateUse1 acts as the plug for out‑of‑tree backends, while requiring custom C++ kernels and memory allocators. Describes the OpenReg reference implementation as a best‑practice example and the Torch-Spyre repo that implements an out‑of‑tree backend for IBM Spyre, renaming PrivateUse1 to Spyre and running successfully on real Spyre hardware or an x86 simulator.
AI-written summary · about
