parfor loop: Unexpected failure to indicate all intervals added

조회 수: 18 (최근 30일)
jmgoldba
jmgoldba 2019년 11월 2일
댓글: jmgoldba 2021년 10월 6일
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