Code stuck in Infinite Parfor loop in function getCompleteIntervals

조회 수: 4 (최근 30일)
David Dyballa
David Dyballa 2018년 10월 25일
댓글: Edric Ellis 2018년 10월 29일
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
Edric Ellis
Edric Ellis 2018년 10월 29일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by