Info

この質問は閉じられています。 編集または回答するには再度開いてください。

codistributed array, parallel computing

1 回表示 (過去 30 日間)
Franz-Josef
Franz-Josef 2011 年 8 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello!
I have to compute a large matrix of data. For example: for i=1:3E5 A(:,i) = ... end Do to this I use the parallel computing toolbox. The amount of memory is in my opinion very large, because the array A is copied to every worker. If I define A as a codistributed array, the for loop becames very slow (I use for drange). Are there any suggestions to speed up this computation? Thx!
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 8 月 8 日
Just to check: you _are_ preallocating A, right?

回答 (1 件)

Jill Reese
Jill Reese 2011 年 8 月 8 日
Could you post the code that you are currently using? It would be easier to make suggestions based on what you have already tried.
Thanks,
Jill

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by