필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Parallelization of matrix definiton

조회 수: 1 (최근 30일)
Sasha
Sasha 2014년 2월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
In my project I deal with matrices using up almost all the memory available. Logically the matrix is divided into blocks which can be computed independently from one another. Straight forward use of parfor as follows
parfor a = 1:N,
[M1] = func(a,par1, par2, par3);
N(i1(a):i2(a), i3(a):i4(a)) = M1;
end
does not work (the code is an example to illustrate the idea). Is there a way to establish parallel computing of these blocks?

답변 (1개)

Jill Reese
Jill Reese 2014년 2월 14일
Without more context for your problem I cannot be sure, but you may find using distributed arrays inside an spmd block to be more useful than parfor in this case.
  댓글 수: 1
Sasha
Sasha 2014년 2월 14일
Thank you for your hint about spmd. If I get it right, matlab can do parallel computing inside the spmd statement if one uses matlab operations with parallel computing support build in. In my case I want to compute 'func' for different a in parallel. Can it be done with spmd?
Context: func produces a matrix ~100x100 elements which is then inserted into a larger matrix N with ~20000x20000 elements. N is a linear system of equations.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by