PCT - Change Cluster Size for local configuration from command line

2 ビュー (過去 30 日間)
Craig
Craig 2012 年 1 月 6 日
Dear all,
I'm trying to run some parallel code on a server using the local parallel configuration (as my uni will not buy MDCS as too expensive!), but the default for cluster size in the local setting is 2.
Is there any way to change this from the command line, I know how to do it from the menu bar, Parallel -> Manage Configurations -> local -> Number of Workers available to the scheduler.
Thanks, Craig

回答 (2 件)

Andrea
Andrea 2012 年 2 月 28 日
have you tried this
set (findResource(), 'ClusterSize', ncores)
ncorese is the number of cores you need
andrea

Edric Ellis
Edric Ellis 2012 年 1 月 6 日
There's currently no programmatic way to modify parallel computing configurations.
The default value (2 in your case) is based on the number of physical cores in your machine. If you try to run more workers than this, you may well not see any benefit.
Depending on how you're using things, might it suffice to set the value to the maximum (the value of which depends on the release you're running), and simply change the number of tasks / size of MATLABPOOL? (This approach wouldn't work if you're submitting a large number of independent tasks).

カテゴリ

Help Center および File ExchangeMATLAB Parallel Server についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by