Could I specify which CPU core that Matlab instance will use??
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
worrarat prasertsil
il 29 Giu 2017
Risposto: Walter Roberson
il 29 Giu 2017
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
0 Commenti
Risposta accettata
Walter Roberson
il 29 Giu 2017
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Processor Software in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!