restrict the number of threads MATLAB starts?

3 ビュー (過去 30 日間)
Alastair Neil
Alastair Neil 2019 年 9 月 18 日
回答済み: Mohith Kulkarni 2020 年 11 月 24 日
On Linux MATLAB R2019b spawns around 150 threads on starting. On our shared servers we limit the number of processess a user can run and thus matlab is crashing. Is there any way to limit the number of threads that MATLAB will spawn?

回答 (1 件)

Mohith Kulkarni
Mohith Kulkarni 2020 年 11 月 24 日
By default, MATLAB uses the multithreading capabilities of the computer on which it is running.
You can specify the startup option "-singleCompThread" to Limit MATLAB to a single computational thread. This can be done by starting MATLAB program from Linux system prompt using
matlab -singleCompThread
Check matlab (linux) for more startup options.
Alternatively, assign start-up options in the MATLAB .matlab7rc.sh Start-up File. Modifying the ".matlab7rc.sh" file defines start-up options every time you start MATLAB.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by