trunk/82e11efd09479cfbae9c03a174fa4714b09d1f89: [BE] Move MetalShaderLibrary cache guard out of the class (#197837)
- PyTorch 近 90 天出现 1367 次
- PyTorch 近 90 天第 1350 次发版
- 上一次:同一天稍早 · trunk/436848ff28b08e226be1c47ee096e7f08023544f: Revert "[dynamo] Validate getattr arguments before dispatch (#196526)"
发生了什么
The guard that landed in #167541 uses std::recursive_mutex , that changes sizeof(MetalShaderLibrary) and therefore breaks ABI with existing out-of-tree C++ extensions, and recursive calls were made from other methods within the same class. Make it a file-static std::mutex in OperationUtils.mm, where every accessor that touches library caches are defined. Dropping recursion means untangling the two chains that nested…
摘要按规则整理自下方来源原文