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?

5 次查看(过去 30 天)
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?

回答(1 个)

Edric Ellis
Edric Ellis 2022-3-21
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.
  5 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by