Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

codistributed array, parallel computing

1 visualizzazione (ultimi 30 giorni)
Franz-Josef
Franz-Josef il 8 Ago 2011
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Walter Roberson
Walter Roberson il 8 Ago 2011
Just to check: you _are_ preallocating A, right?

Risposte (1)

Jill Reese
Jill Reese il 8 Ago 2011
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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by