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

 채택된 답변

Jan
Jan 2013년 1월 30일

0 개 추천

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?

추가 답변 (1개)

Hassaan
Hassaan 2013년 1월 30일

0 개 추천

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

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

질문:

2013년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by