Best parallel computing option for heavily serialized code
Ältere Kommentare anzeigen
Hello,
I have a MATLAB code that I want to speed up. However due to its serial (dependent on previous values) nature I cannot use parfor. Is there any other parallel computing option that might work for me. I have tried to implement communication jobs, however that does not seem to work.
Regards,
Shivangi
Antworten (2)
Raymond Norris
am 25 Dez. 2022
1 Stimme
The very nature of a cascading algorithm (i.e., dependent on previous values) makes it impossible to parallellize. However, perhaps you have the need to run multiples of your code. That could be parallized. That is, with Parallel Computing Toolbox (and perhaps MATLAB Parallel Server) you could run the entire code across different data sets, all at the same time.
1 Kommentar
Shivangi Giri
am 25 Dez. 2022
Sulaymon Eshkabilov
am 24 Dez. 2022
0 Stimmen
Have seen this fcn: spmd ... end
1 Kommentar
Shivangi Giri
am 25 Dez. 2022
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!