Clear Filters
Clear Filters

parfor loop: Unexpected failure to indicate all intervals added

25 views (last 30 days)
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 Comment
Edric Ellis
Edric Ellis on 4 Nov 2019
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.

Sign in to comment.

Accepted Answer

jmgoldba
jmgoldba on 4 Nov 2019
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 :)

More Answers (1)

Susan Ding
Susan Ding on 5 Oct 2021
Might you explain briefly how to solve it? Thanks.
  1 Comment
jmgoldba
jmgoldba on 6 Oct 2021
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

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!