PyTorch Developer Podcast
PyTorch Developer Podcast
Edward Yang, Team PyTorch
CUDA graph trees
20 minutes Posted Mar 24, 2024 at 7:00 am.
0:00
20:50
Download MP3
Show notes
CUDA graph trees are the internal implementation of CUDA graphs used in PT2 when you say mode="reduce-overhead". Their primary innovation is that they allow the reuse of memory across multiple CUDA graphs, as long as they form a tree structure of potential paths you can go down with the CUDA graph. This greatly reduced the memory usage of CUDA graphs in PT2. There are some operational implications to using CUDA graphs which are described in the podcast.