Estimated Time Left for Executing a Code Using MATLAB Parallel Computing Toolbox
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Kareem Elgindy
 le 16 Avr 2022
  
    
    
    
    
    Réponse apportée : Raymond Norris
    
 le 16 Avr 2022
            Is there a way to estimate the time left for executing a code using MATLAB Parallel Computing Toolbox? Assume for simplicity that we have a single code with a single parfor in it. 
0 commentaires
Réponse acceptée
  Raymond Norris
    
 le 16 Avr 2022
        MATLAB doesn't know how long your code should run for, so there's no way to know how much time is left.  What I would suggest is looking at parallel.pool.DataQueue.  Using a DataQueue, you can send back a tickle to MATLAB when an iteration has completed.  From this, you might be able to deduce how much work is left to be done.  The Wait Bar example is similar to what you could use (though you don't need to use a GUI to display the current iteration).
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!