Bisection Method in parallel
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to develop bisection method to find the roots in parallel.
How to work in parallel parfor?
댓글 수: 0
답변 (1개)
Edric Ellis
2015년 4월 27일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!