When I use parfor in the program, the program seems to fall into an endless loop in the remoteparfor.m file, resulting in the program's delay in output.What's going on?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
When I use parfor in the program, the program seems to fall into an endless loop in the remoteparfor.m file, resulting in the program's delay in output.What's going on?
0 Commenti
Risposte (1)
Edric Ellis
il 21 Mar 2022
The file "remoteparfor.m" is part of the implementation of a parfor loop. The main job of this piece of code is to wait for results to arrive from the workers - it's not doing any work itself. So while it may appear to be sitting in an infinite loop, it really is just waiting for whatever the workers are doing, and will complete as soon as they have completed.
Vedere anche
Categorie
Scopri di più su Parallel for-Loops (parfor) in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!