필터 지우기
필터 지우기

Running >1 matlabpool jobs with the same local pool

조회 수: 2 (최근 30일)
Eng Hee Yeo
Eng Hee Yeo 2014년 7월 11일
댓글: Eng Hee Yeo 2014년 7월 14일
I have a user who is running parallel jobs using the 'local' matlabpool profile and is encountering problems when running 2 jobs concurrently. He knows that the local system can have 12 workers in the local pool, and so he divided the 2 jobs using 6 workers each, but with the same command:
matlabpool close force local
CoreNum=6;
matlabpool('open','local',CoreNum);
This seems wrong, but I cannot find anywhere in the documentation to verify my suspicions. Can anyone advise?

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2014년 7월 11일
Maximum of 1 MATLAB worker per CPU core is recommended. This does not include hyperthreaded virtual cores. As an examples, if you have a dual core i5 processor, then it is recommended you start a local pool of 2 workers. Any more workers will mean they fight for cpu time and you most likely won't see any gain in performance.
  댓글 수: 1
Eng Hee Yeo
Eng Hee Yeo 2014년 7월 14일
Thanks Shashank, but this is not what I am asking. My server has 12 cores, so, 2 x 6 workers is fine and there is no resource contention. My original question is whether it is correct to run 2 separate jobs using the same local matlabpool, with 6 workers each. What happens if one of the jobs issues a command like "matlabpool force close local"? Will the other job be affected?

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by