Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU memory leak issue #2

Open
handyzeng opened this issue Nov 11, 2016 · 6 comments
Open

GPU memory leak issue #2

handyzeng opened this issue Nov 11, 2016 · 6 comments

Comments

@handyzeng
Copy link

Hi,
When I use GPU to do face detection, I found that the memory used of the GPU keep increasing. Maybe there is an memory leak issue.

The detector I used as flowing:
mtcnn_detector = MtcnnDetector(model_folder='model', ctx=mx.gpu(0), num_worker = 1, minsize = 40, accurate_landmark = True)

@YYuanAnyVision
Copy link
Owner

hmm, there are some related issues here:
apache/mxnet#2981
apache/mxnet#3055
looks like it's the problem with the memory manager(naive and pool allocation)...
there's nothing I can do here, but you can change to naivestorgemanager manually , like neodooth did.

@ZHAIXINGZHAIYUE
Copy link

我遇到了同样的问题
[16:46:26] /home/zhaixingzi/Applications/mxnet/dmlc-core/include/dmlc/./logging.h:235: [16:46:26] src/storage/./pooled_storage_manager.h:79: cudaMalloc failed: out of memory

@YYuanAnyVision
Copy link
Owner

--!# guess we have to wait for mxnet's solution.. otherwise you have to revert the memory manager

apache/mxnet#3055

any suggestion?

@YYuanAnyVision
Copy link
Owner

after change ptr = new storage::GPUPooledStorageManager(); to ptr = new storage::NaiveStorageManager<storage::GPUDeviceStorage>(); in src/storage/storage.cc line 76
the GPU memory stays in a range ..
but it will consume more memory and takes more time for memory allocation stuff.....

@ZHAIXINGZHAIYUE
Copy link

与原版matlab的代码相比,精度会不会下降?

@kli-casia
Copy link

The GPU memory keep increasing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants