필터 지우기
필터 지우기

Memory usage in codistrubuted array

조회 수: 2 (최근 30일)
Siva
Siva 2015년 6월 18일
편집: Siva 2015년 6월 18일
I am wondering if in the following code, the total memory usage is twice that needed for the matrix A, since the local part of A be being copied into lA in each worker.
spmd
A = codistributed.rand(10000);
lA = getLocalPart(A);
lA = lA + labindex;
A = codistributed.build(lA, getCodistributor(A));
end
I think it is because when I run the lines separately, and look at the memory usage in Windows Task Manger, I see the memory doubling after the lA=lA+labindex; line.
Is there a way to modify local parts of a codistributed array without making copies?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Distributed Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by