Closed
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)
[This is the memory for the first GPU, but the second shows the same behaviour.]
Activity