parfor loop: Unexpected failure to indicate all intervals added

18 Ansichten (letzte 30 Tage)
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 Kommentar
Edric Ellis
Edric Ellis am 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

jmgoldba
jmgoldba am 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 :)

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by