viable/strict/1789753839: [MPS] Guard MPP attention include on header availability (#196104)
- PyTorch: 1156 events in the last 90 days
- PyTorch: 1142th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789752186: [MPS] Migrate `softplus` to Metal (#197000)
What happened
MppAttention.h gates its include on __METAL_VERSION__ >= 400 , which tests the compiler version, not whether the SDK ships the framework. Building with a Metal 4 toolchain against an older SDK (e.g. Xcode 26 with -isysroot .../MacOSX15.sdk , as Homebrew does) fails: MppAttention.h:10:10: fatal error: 'MetalPerformancePrimitives/MetalPerformancePrimitives.h' file not found Convolution.metal in the same directory alre…
Summary assembled by rule from the sources below