Difference between revisions of "Matlab workers"

From Dynamo
Jump to navigation Jump to search
Line 6: Line 6:
 
== In Linux ==
 
== In Linux ==
 
In the system terminal, write:
 
In the system terminal, write:
 +
 +
<tt> cat /proc/cpuinfo | egrep "core id|physical id" | tr -d "\n" | sed s/physical/\\nphysical/g | grep -v ^$ | sort | uniq | wc -l </tt>
  
 
== In the Mac ==  
 
== In the Mac ==  

Revision as of 13:47, 23 November 2016

Matlab workers represent threads used by Matlab (or the MCR libraries when using the Dynamo standalone) when a computation is launched in parallel modus on a single node. A parallel computation in Dynamo should not use more matlab workers than the number of physical cores available in your system.

Find out the number of cores in a system

In Linux

In the system terminal, write:

cat /proc/cpuinfo | egrep "core id|physical id" | tr -d "\n" | sed s/physical/\\nphysical/g | grep -v ^$ | sort | uniq | wc -l

In the Mac

In the system terminal, write:

sysctl -a | grep machdep.cpu | grep core_count

sysctl -a | grep machdep.cpu | grep thread_count