Sys.CPU_CORES

78 views
Skip to first unread message

Júlio Hoffimann

unread,
Nov 2, 2016, 9:29:28 PM11/2/16
to julia-users
Hi,

Sys.CPU_CORES returns the number of physical cores or processing units? Is it portable across different OS?

-Júlio

Jeffrey Sarnoff

unread,
Nov 2, 2016, 9:40:15 PM11/2/16
to julia-users
It works for me on Linux and Windows.

Júlio Hoffimann

unread,
Nov 2, 2016, 9:42:21 PM11/2/16
to Julia Users

My question is, it returns the same concept in all OS? Is it physical number of cores?

-Júlio

Isaiah Norton

unread,
Nov 2, 2016, 10:33:29 PM11/2/16
to julia...@googlegroups.com
it returns the same concept in all OS?

As far as I can tell, yes.
 
Is it physical number of cores?
 
Number of logical processors.

Isaiah Norton

unread,
Nov 2, 2016, 10:34:44 PM11/2/16
to julia...@googlegroups.com

Júlio Hoffimann

unread,
Nov 2, 2016, 10:37:09 PM11/2/16
to Julia Users

Thank you Isaiah, I'll follow your tip and use Hwloc.jl

-Júlio

Reply all
Reply to author
Forward
0 new messages