Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GPU Memory not released after running code with "build" command #2184
When submitting a feature or enhancement request:
When submitting a bug report, please follow the following template:
When I run a simply GPU compatible package program in Sublime Text (like PyTorch or Tensorflow doing one matrix multiplication or something) with the "build" command (ctrl + b), after the program is done running, the memory usage for python is still present in my GPUS.
I am using NVIDIA Titan Xp GPUs. I experience output like this:
I would expect the GPU memory to be released, as it is with any other Tensorflow or PyTorch program I run when I do not run it through Sublime's "build" command and output.
When I completely shut down Sublime, I get the behavior I would hope for:
Actual behavior is noted in summary.
Steps to reproduce
The build system functionality in Sublime Text executes external programs. Sublime Text reads the stdout and stderr file handles of the external process and displays them in a buffer. If you are seeing side effects from the external programs you are running, you would need to resolve it via the external program, not Sublime Text.
My hunch is that perhaps the python memory usage you are seeing around is because the Python processes are not exiting for some reason? Perhaps check your process list and see if they are still around?
Thanks for your response. Yeah, that's what I was taking a look at. The processes aren't exiting when I execute them through Sublime, but they exit fine through other mediums (Jupyter notebooks, terminal, Atom) so I thought there might be some compatibility issue with how they are being executed in Sublime, but I'll take a closer look.
You can take an exact look at the code running the processes in the Default package under