Code stuck in Infinite Parfor loop in function getCompleteIntervals
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Edric Ellis
le 29 Oct 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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!