← 返回事件
持续讨论AI发版

viable/strict/1789753839: [MPS] Guard MPP attention include on header availability (#196104)

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源