Daily Dev Tips
How Making Heavy PyTorch CUDA Processing Async Caused a Memory Leak—and How We Fixed It
Hello! This is the Qualiteg Product Development team! This is the story of how simply converting a synchronous method into an asynchronous one (async) hit us with an unexpected memory leak*. It happened while we were developing a video processing system that uses deep learning models. We had a requirement