Issue with launching Parallel Workers when using TORQUE or PBS

조회 수: 1 (최근 30일)
Hi,
I am attaching the full output of MATLAB when trying to set useParallel option of GA to true.
This been causing some trouble in launching parallel pool.
Note that I am scheduling 100s of such runs on a computer cluster using Torque (or PBS, well I use qsub command).
So, I am not running them interactively. I am attaching both the full MATLAB Output and the scheduler script that I use to submit the job using qsub.
Any help is appreciated.

채택된 답변

Edric Ellis
Edric Ellis 2016년 12월 5일
One problem might be that the job storage locations are colliding, and you're ending up with many processes trying to write data to the same location. You could work around this by creating a local cluster instance using a unique job storage location. Something like this:
tempLoc = tempname;
mkdir(tempLoc);
clus = parallel.cluster.Local('JobStorageLocation', tempLoc);
parpool(clus);
  댓글 수: 2
Mohammad Abouali
Mohammad Abouali 2016년 12월 5일
Thanks Edric. I am also suspecting that this is what might be happening, i.e. two different scheduled jobs trying to use same storage locations.
I check the solution you have provided and get back to you if it resolved the issue.
Thank you again.
Mohammad Abouali
Mohammad Abouali 2016년 12월 5일
Your suggestion helped that problem. But then some of the runs had problem to execute the GA-Objective function.
One thing that I noticed is that I am requesting nodes=1:ppn=4. But then I launch 4 workers. That makes total of 5 process, (1 main matlab + 4 parallel workers).
I rescheduled the jobs using the work around that you provided and also increased the ppn to 5. So far things seems going fine.
So, I think we got the issue resolved. I am going to accept the answer at this point. and if later I found out it is not working I will post another question.
Thank you so much for your help. I really appreciate it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by