trunk/69465889df3652d30e76a251b59eb87ad25f261b: [symm_mem] Don't throw from AllocationRef destructor (#196003)
- PyTorch 近 90 天出现 661 次
- PyTorch 近 90 天第 652 次发版
- 上一次:同一天稍早 · trunk/561235528a68e1174b45f96a3f5b0402d313fe92: [dynamo] Port CPython 3.13 test_userstring tests (#196306)
发生了什么
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…
摘要按规则整理自下方来源原文