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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by