Bisection Method in parallel

5 Ansichten (letzte 30 Tage)
Momin
Momin am 25 Apr. 2015
Bearbeitet: Momin am 5 Mai 2015
I am trying to develop bisection method to find the roots in parallel.
How to work in parallel parfor?

Antworten (1)

Edric Ellis
Edric Ellis am 27 Apr. 2015
This loop cannot run in parfor for two reasons - firstly, the iterations are not order-independent (this is a fundamental requirement for parfor), and secondly you cannot use break inside parfor (which is basically related to the order-independence requirement).
You could use spmd here which allows for communication between the workers, or you might wish to investigate the parallel computing support in Optimization Toolbox.

Kategorien

Mehr zu Parallel for-Loops (parfor) finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by