Effacer les filtres
Effacer les filtres

Problem working with parfor

25 vues (au cours des 30 derniers jours)
Ahmadreza
Ahmadreza le 17 Avr 2024
Commenté : Ahmadreza le 18 Avr 2024
Dear all,
I am working with the parallel tool in order to optimize the run time of my simulations. I am using a resevoir simulator (MATLAB Reservoir Simulation Toolbox). I am adding a function after each time convergence, to do a parallel calculations on each cell. However, it seems there is a problem with the parallel tool. It stuck in a cetrain function as found in the attached image.
The code stucks here does not proceed anymore. Do you have any idea why it is happening?

Réponse acceptée

Edric Ellis
Edric Ellis le 18 Avr 2024
That stack frame in the profiler is simply where your MATLAB client is waiting for the workers to complete their work. You can get profiling information from the workers using mpiprofile.
  3 commentaires
Edric Ellis
Edric Ellis le 18 Avr 2024
That means the workers are still working on your loop. The simplest way to check that things are still proceeding on the workers is to add a disp statement to the body of your parfor loop to see where things are getting to.
Ahmadreza
Ahmadreza le 18 Avr 2024
Thanks for your help. As a matter of fact you are right. There was a problem inside the third party software that I fixed it. I MUST NEVER LOSE MY FAITH IN MATLAB!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel Computing Fundamentals 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!

Translated by