parfor loop: Unexpected failure to indicate all intervals added

14 visualizaciones (últimos 30 días)
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 comentario
Edric Ellis
Edric Ellis el 4 de Nov. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

jmgoldba
jmgoldba el 4 de Nov. de 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 :)

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by