I'm running a simple 2D simulation using the MATLAB interface, and kspaceFirstOrder2D(), on a brand new PC with 16GB memory. The simulation proceeds correctly but at the last step before the function returns, I believe when the algorithm converts the k-space solution back to the spatial grid, all available memory is quickly gobbled up. Matlab then returns it's boiler-plate out-of-memory message, indicating the problem came during ifft(). There certainly is enough memory to handle the space-time grid and fft. Indeed, I reverted to version 1.0 of k-wave, and everything works well. Additionally puzzling is that if I run the same code on my laptop, with Matlab 2013b and k-wave 1.1, I do not get the same memory usage problem. Any ideas? My PC is a Windows 8.1 Pro, Intel Xeon v3. I don't have my laptop in front of me but is about two years old running Windows 8.1, Intel i7 processor with 8GB memory.
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Apparent memory leak in kwave-1.1, MATLAB 2014a
(2 posts) (2 voices)-
Posted 9 years ago #
-
Hi vchaplin,
We can't immediately think of what's going on here. Would you be able to send us the example you were running so we can try and reproduce it?
Thanks,
BenPosted 9 years ago #
Reply
You must log in to post.