-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Feature Request] Release gpu memory by API. #13482
Comments
@DuCheng2018 Thank you for the feature, request. |
@mxnet-label-bot add [Feature Request] |
I am getting multiple(> 5 times) requests similar to this one, I think we need a formal C API as well as python API so user can explicitly release gpu memory pool without waiting for program to exit. |
+1, for some application it is necessary to release gpu memory. |
+1, yes, this is a function needed badly |
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 |
12 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
Hi, there. Here is an example:
In my test, the most GPU memory will be released after calling this API, although there is still around 600Mib memory cache. |
This API only releases the cache in the GPU memory pool. It doesn't release the NDArray cache held by CachedOp |
+1 |
Closing this issue as #14252 is merged, please feel to ping me if you have other thoughts. |
Description
When it is required to do a forward propagation at first, and then do another one in the same process,
if gpu memory malloced by the first propagation can not be released, the second one will not have enough memory to use.
The text was updated successfully, but these errors were encountered: