Code stuck in Infinite Parfor loop in function getCompleteIntervals

4 visualizaciones (últimos 30 días)
David Dyballa
David Dyballa el 25 de Oct. de 2018
Comentada: Edric Ellis el 29 de Oct. de 2018
Hello,
im writing a code in Matlab 2016b and i have a question about it. My pseudocode is:
for a = 1 : number_iterations
parfor b = 1 : number_variations
(Calculate Mass)
(calculate other data using MakeData.exe)
(Use that data in Simulink model)
end
end
When i only calculate the mass and comment everything else, my programm runs perfectly. When i use my full programm with few iterations and few variations, it also works perfectly. When i use a for-loop instead of a parfor-loop, it works too, although it's very slow.
However, when i use many Interations and/or many Variations (less than the workers i have available), it works for a while, but after some time, the Programm gets stuck in an infinite loop in the matlab-internal file:
remoteparfor.m
in the function:
function [tags, results] = getCompleteIntervals(obj, numIntervals)
in the loop:
while isempty(r).
Now my Question is: how can i solve this Problem? Could it be, that the amount of data created/used is too big? If so, is there a way, to release the used up capacity?
If it helps, i attached a screenshot
Thank you in advance
  1 comentario
Edric Ellis
Edric Ellis el 29 de Oct. de 2018
The function getCompleteIntervals is simply waiting for results to arrive back at the client from the workers. Unfortunately, without any sort of reproduction steps, it's not possible to say why the workers are not sending the results back to the client.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by