mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

How to release the GPU?!

Open Yezipiaomu opened this issue 9 years ago • 5 comments

Hi, I find that the mxnet use the model to training ,but afer training ,I want to know how to release the memory so I can do the task other? I find there is no api to release the gpu memory !!

Yezipiaomu avatar Oct 10 '17 08:10 Yezipiaomu

Just run " kill `nvidia-smi|sed -n '18p'|awk -F ' ' '{print $3}'` " in the terminal

janelu9 avatar Oct 13 '17 05:10 janelu9

Oh! Thank you first! I mean that I want to release a module and take another module in python, but the Mxnet don't release the gpu memory which use in the first module, In the tensorflow, the sess.close() is to release the gpu. So I want to know if any api like "sess.close()" to release the gpu!

Yezipiaomu avatar Oct 21 '17 05:10 Yezipiaomu

@apache/mxnet-committers: This issue has been inactive for the past 90 days. It has no label and needs triage.

For general "how-to" questions, our user forum (and Chinese version) is a good place to get help.

szha avatar Jan 20 '18 12:01 szha

Hi @Tommymhz , are you still facing the same issue? As the issue is more related to a Question, please submit on MXNet discussion forum (https://discuss.mxnet.io), where it will get a wider audience and allow other to learn as well.

lanking520 avatar Jun 11 '18 04:06 lanking520

please label this - "Question", "Memory" and close it for lack of activity.

anirudhacharya avatar Jun 25 '18 06:06 anirudhacharya