Shutting down some CPUs

Hi
I am running a MATLAB code in a 48 CPU server. I want to run only 8 CPUs. How can I set the number of used CPUs?
Thanks

1 件のコメント

Jan
Jan 2021 年 4 月 15 日
On which operating system?

サインインしてコメントする。

回答 (1 件)

Raymond Norris
Raymond Norris 2021 年 4 月 15 日

2 投票

Try
maxNumCompThreads(8);

カテゴリ

ヘルプ センター および File ExchangeMATLAB Parallel Server についてさらに検索

質問済み:

2021 年 4 月 15 日

回答済み:

2021 年 4 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by