I maintain mps-pointops, an out-of-tree library of Metal point-cloud operators for PyTorch MPS. The library uses torch.mps.compile_shader for operations such as FPS, kNN, and radius search, with explicit tests for selection order, ties, padding, and numerical boundaries.
I have already asked the torch_cluster maintainers about the home for the domain-specific operators: [MPS] PyTorch Nightly with MPS on Mac M1 does not work · Issue #172 · rusty1s/pytorch_cluster · GitHub
This question is about a useful, small first contribution to PyTorch itself. Would an example and regression tests demonstrating an out-of-tree Metal operator alongside ordinary MPS operations be useful to the MPS maintainers? The areas of interest are tensor views/storage offsets, temporary tensor lifetime, and operation ordering. If that coverage already exists, is there an actionable MPS issue where this experience would be helpful?
I am aware of the public torch.mps.compile_shader API, the command-buffer/queue interfaces in <torch/mps.h>, and the earlier custom-kernel discussion in PyTorch issue #81103. I would like to build on those supported paths and avoid proposing duplicate extension infrastructure.
The project has physical M1 and M5 Pro validation records, with the supported cases and limitations documented. I would appreciate guidance on the most useful contribution scope and the expected test setup before opening a specific feature request or PR.
Writing assistance: this post was drafted with AI assistance from the author’s project requirements.