You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When numpy arrays are returned, a small amount of memory leaks. This amount of memory (I think it is 32 bytes) does not depends on the actual size of the array that is returned, so it is probably related to some object that is created while preparing the numpy array. The following code produces a leak
fromtriqs.gfimport*g=GfImFreq(indices= [0], beta=10, n_points=1000)
#g = GfImFreq(target_shape = [], beta=10, n_points=1000) ## no memory leak with this# memory usage here is about 42 Mbforkinrange(10000000): x=g(1)
# memory usage here is about 350 Mb
In the code above, the memory usage is about 300 Mb larger after the loop. Similar behavior is observed calling other functions that return an array. I don't see leaks when the functions return a float.
The text was updated successfully, but these errors were encountered:
When numpy arrays are returned, a small amount of memory leaks. This amount of memory (I think it is 32 bytes) does not depends on the actual size of the array that is returned, so it is probably related to some object that is created while preparing the numpy array. The following code produces a leak
In the code above, the memory usage is about 300 Mb larger after the loop. Similar behavior is observed calling other functions that return an array. I don't see leaks when the functions return a float.
The text was updated successfully, but these errors were encountered: