parfor loop: Unexpected failure to indicate all intervals added

18 次查看(过去 30 天)
New to using parfor. Changed 'for' to 'parfor' and subsequently edited code body to remove all errors/warnings. I run I get:
Error using distcomp.remoteparfor/rebuildParforController (line 217)
Unexpected failure to indicate all intervals added.
Error in distcomp.remoteparfor/handleIntervalErrorResult (line 253)
obj.rebuildParforController();
Error in distcomp.remoteparfor/getCompleteIntervals (line 387)
[r, err] = obj.handleIntervalErrorResult(r);
Error in OutTest_VectorGeneric>Criteria_Evaluate (line 110)
parfor j = 1 : numPix
Little to no idea what the error actually means and what I can do on my side to resolve it.
Thanks, -Jesse
  1 个评论
Edric Ellis
Edric Ellis 2019-11-4
This is an unexpected internal error condition. Does this happen for all parfor loops, or just a specific one? If it happens for all loops, then you might have some sort of installation problem. If it happens for a specific loop, then please could you post a minimal example that demonstrates the problem.

请先登录,再进行评论。

采纳的回答

jmgoldba
jmgoldba 2019-11-4
TL;DR Solved it. Thanks for getting back.
I'd blown off a runtime warning about "unitialized temporaries". Don't do that. Especially if the warning includes "a runtime error will occur". Got rid of the warning, got rid of the error. I was probably exhausted at the time from correcting all the static errors and warnings after converting to parfor and at runtime decided to punt :)

更多回答(1 个)

Susan Ding
Susan Ding 2021-10-5
Might you explain briefly how to solve it? Thanks.
  1 个评论
jmgoldba
jmgoldba 2021-10-6
This is going on a couple years and I don't recall the specific instance. The short story is the runtime error was solved by getting rid of the warning. I don't recall specifically what the solution was to get rid of the warning though it was likely unique to my particular implementation. -Jesse

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by