What is different between AvailableMemory and FreeMemory?
2 views (last 30 days)
Show older comments
Matlab seems that there are two properties of gpuDece, "FreeMemory" and "AvailableMemory".
gd = gpuDevice;
gd.FreeMemory
gd.AvailableMemory
I want to know if this is simply overlooked by me or deprecated by matlab
There may be differences between the two results.
I want to know the difference between the two.
Thank you!
0 Comments
Answers (1)
Joss Knight
on 28 Nov 2021
Edited: Joss Knight
on 28 Nov 2021
Both are valid and supported, but FreeMemory was replaced many years ago by AvailableMemory as the documented way to determine how much space there is left in device memory.
Because MATLAB pools memory for performance reasons, some memory is allocated by MATLAB (not 'free') but can be released if needed (and therefore 'available').
Only FreeMemory is accessible by other applications.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!