change default parpool in matlab.rc

7 ビュー (過去 30 日間)
Gerard
Gerard 2023 年 6 月 15 日
回答済み: Raymond Norris 2023 年 6 月 15 日
The parpool documentation indicates: With default preferences, MATLAB® starts a pool on the local machine with one worker per physical CPU core up to the limit set in the default profile. For more information on parallel preferences, see Specify Your Parallel Preferences.
This is too many with our many core / many user servers. Can the default be changed adminstratively via the toolbox/local/matlab.rc file?

回答 (1 件)

Raymond Norris
Raymond Norris 2023 年 6 月 15 日
R2023a added a Property to your profile, PreferredPoolNumWorkers, which defaults to
min(NumWorkers,32)
Therefore, if NumWorkers is e.g., 256, the default size will be 32. NumWorkers (typically) maps to the number of MATLAB Parallel Server licenses you own.
If you want to override this default, set PreferredPoolNumWorkers to a more preferred value.

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by