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

Memory leak when setting array with temporary array #360

Closed
dionhaefner opened this issue Jun 4, 2017 · 3 comments
Closed

Memory leak when setting array with temporary array #360

dionhaefner opened this issue Jun 4, 2017 · 3 comments

Comments

@dionhaefner
Copy link
Collaborator

This leaks memory:

import bohrium as bh

def foo(a):
    b = bh.random.rand(*a.shape)
    a[...] = b
    bh.flush()

a = bh.random.rand(10)
while True:
    foo(a)

This does not:

import bohrium as bh

a = bh.random.rand(10)
b = bh.random.rand(*a.shape)

def foo(a):
    a[...] = b
    bh.flush()

while True:
    foo(a)
@madsbk
Copy link
Contributor

madsbk commented Oct 13, 2017

It this still an issue?
I see no leak on my machine.

@dionhaefner
Copy link
Collaborator Author

dionhaefner commented Oct 14, 2017

Yup: (current master)

figure_2

@dionhaefner
Copy link
Collaborator Author

Seems fixed!

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

2 participants