Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The GPU memory manager documentation is not too clear, does GPU memory leak if not explicitly unloaded or if the symbol that holds the reference to the GPU memory gets collected, the GPU memory gets freed too?

In my experience, MemoryInUse doesn't grow if I keep loading GPU memory (but losing the symbols, e.g., the memory is in temporary variables), but MathKernel.exe memory usage does!

My problem in this matter is that I have to allocate GPU memory in Module[] temporary variables, so I don't have (well know) any way of unloading it manually afterwards... Is there a way to add a "destructor" to Mathematica symbols, so I can manually call Unload when the symbol is reclaimed?

This MathKernel behaviour is observed on Mathematica 8.0

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.