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

OpenCL Caffe - Continuous Reshape causes memory leak #6230

Open
soulslicer opened this issue Feb 12, 2018 · 2 comments
Open

OpenCL Caffe - Continuous Reshape causes memory leak #6230

soulslicer opened this issue Feb 12, 2018 · 2 comments
Assignees
Labels

Comments

@soulslicer
Copy link

soulslicer commented Feb 12, 2018

An example of what I am trying can be found here:

https://github.com/soulslicer/test-opencl-caffe-api/blob/master/test.cpp

https://github.com/soulslicer/test-opencl-caffe-api/blob/master/test.cpp#L92

I am having a stream of images loaded into the GPU. If the size remains the same, there is no memory increase the more reshape and forward passes I call, but if I have varying image sizes and I call reshape, it will leak memory continuously. The leak happens in both CPU and GPU memory

@naibaf7 naibaf7 self-assigned this Feb 12, 2018
@naibaf7
Copy link
Member

naibaf7 commented Feb 12, 2018

Ok this is weird, should not happen as the SyncedMemory container has a destructor. I'll look into it.

@Noiredd Noiredd added the OpenCL label Feb 26, 2018
@coolbei
Copy link

coolbei commented Sep 16, 2020

same problem.

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

No branches or pull requests

4 participants