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

trunk/69465889df3652d30e76a251b59eb87ad25f261b: [symm_mem] Don't throw from AllocationRef destructor (#196003)

图:PyTorch Releases

发生了什么

Fixes #195824 AllocationRef::~AllocationRef calls C10_CUDA_CHECK / C10_CUDA_DRIVER_CHECK , which throw. A destructor is implicitly noexcept, so when cleanup fails — typically because the CUDA context is already broken after an unrelated failure — the process dies with std::terminate and the original error is masked. Switch the cleanup to the _WARN macro variants (already used elsewhere in this file) and wrap the rem…

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

为什么在扩散

来源