Parfor command missing some iterations during execuation

Dear all, I am having problem with my code in which parfor command is missing some iterations. The parfor code is hereunder
parfor fit_loop = 1 : Pop_size
system(['$eclipse ' 'MainFile30x30x3(' int2str(fit_loop) ')'])
end
In this loop I am using 6 cores of i7 laptop. I am using eclipse reservoir simulator for running MainFile30x30x3 file with iteration number. In this way all of the iterations are independent. The software running few iterations in parallel but missing some iterations in between and the error occur
'The process cannot access the file because it is being used by another process'
If somebody have any idea about this so do share with me.
Thanks

 Réponse acceptée

Jan
Jan le 30 Jan 2013

0 votes

This means, that one of the files is in use already. If the eclipse function would create a useful error message, you could even see, which file it is. Perhaps a former run did not close the file correctly? Or eclipse writes to a logfile in addition?

Plus de réponses (1)

Hassaan
Hassaan le 30 Jan 2013

0 votes

thanks Jan,
I know which file eclipse is missing. Actually eclipse generated output files and I can see them in the folder. So i found some file missing. My code have to use those files after this parfor loop and since they are missing so my code is giving error.
I am just asking that may be it is some sort of protocol error between matlab and computer cores.
So please do enlightened me in this matter.
thnaks

1 commentaire

I'm sure that such an important problem would be known already, but I do not find a bug report concerning a general flaw of PARFOR.

Connectez-vous pour commenter.

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by