Commit 805febab authored by Emmanuel Thomé's avatar Emmanuel Thomé

add placeholder support for freebsd for determination of the number of cpus in python script

parent 2c2d8ff8
......@@ -218,6 +218,9 @@ class Cado_NFS_toplevel(object):
if platform.uname()[0] == "OpenBSD":
# does this count hyperthreading or not ?
return int(backquote("sysctl -n hw.ncpu")[0])
if platform.uname()[0] == "FreeBSD":
# does this count hyperthreading or not ?
return int(backquote("sysctl -n hw.ncpu")[0])
if platform.uname()[0] == "Darwin":
# does this count hyperthreading or not ?
first_attempt=backquote("sysctl -n machdep.cpu.core_count")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment