viable/strict/1789753839: [MPS] Guard MPP attention include on header availability (#196104)
- PyTorch 近 90 天出现 1156 次
- PyTorch 近 90 天第 1142 次发版
- 上一次:同一天稍早 · viable/strict/1789752186: [MPS] Migrate `softplus` to Metal (#197000)
发生了什么
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…
摘要按规则整理自下方来源原文