← Back to events
ActiveAIRelease

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

Photo: PyTorch Releases

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources