Could I specify which CPU core that Matlab instance will use??

10 ビュー (過去 30 日間)
worrarat prasertsil
worrarat prasertsil 2017 年 6 月 29 日
回答済み: Walter Roberson 2017 年 6 月 29 日
I knew that Matlab has parallels toolbox which will make Matlab use multiple CPU core but since I don't want to modify my code because I relatively new to Matlab and this project really needs to finish soon. so I want to know if I can choose which CPU core that my Matlab instances will use. For example, if I open 2 Matlab that mean I want these Matlab instances to use sperate CPU core.
Thank you

採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 29 日
That is outside the scope of MATLAB and is handled by the operating system.
If you are using MS Windows you can set processor affinity after the process is running; see https://technet.microsoft.com/en-us/library/ee851672.aspx
Normally the operating system dynamically assigns cores as required, and avoids assigning extra work to busy cores if there are free cores. Typically setting processor affinity is only needed for accounting / management purposes (e.g., one group might have contributed to the funding under the priviso that they get access to a minimum number of cores.) Sometimes it can make a bit of a difference to assign to a core that is on a board that has special hardware properties -- for example interrupt latency might be lower if you assign the handler process to the board that has the device interface attached. Or sometimes difference CPUs are different models and that might make some kind of difference.
But typically you do not need to set affinity.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProcessor Software についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by