Skip to content

[Bug]: del() does not work as expected  #1749

Closed
@mrfh92

Description

What happened?

If you apply del() to a DNDarray, the memory is not always freed as expected

Code snippet triggering the error

Run this with 2 MPI-processes on 2 GPUs: 

import heat as ht 
import time 

x = ht.random.randn(100000,50000, split=0, dtype=ht.float32, device="gpu")

time.sleep(2)

del(x) 

time.sleep(2) 

print("Memory freed!")

Error message or erroneous outcome

One would expect that the ~10GB of data on each GPU get freed by del(x), but this is not the case as one can find out with perun (sampling_period = 0.1)

grafik

[This is the memory for the first GPU, but the second shows the same behaviour.]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions