Programatically determine Matlabpool Maximum Number of Local Workers

조회 수: 15 (최근 30일)
I'm developing some code which will be shared with colleagues running different versions of matlab. Is there a way to programatically tell the maximum number of workers in the local pool?

채택된 답변

Shashank Prasanna
Shashank Prasanna 2013년 5월 6일
>> myCluster = parcluster('local');
>> myCluster.NumWorkers
For ver > R2012a, for earlier you may have to use findresource. This change is captured in the release notes for R2012a:
If your colleagues use earlier releases, you may have to do a version check and then an if else block.
>> version -release
  댓글 수: 1
Susan
Susan 2013년 5월 7일
Thank you. I was able to use findresource on all of the matlab versions that interest us.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by