What is different between AvailableMemory and FreeMemory?

Matlab seems that there are two properties of gpuDece, "FreeMemory" and "AvailableMemory".
gd = gpuDevice;
gd.FreeMemory
gd.AvailableMemory
"AvailableMemory" is explained in the docmentation, but "Freememory" is not.
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!

답변 (1개)

Joss Knight
Joss Knight 2021년 11월 28일
편집: Joss Knight 2021년 11월 28일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 11월 25일

편집:

2021년 11월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by