aboutsummaryrefslogtreecommitdiffstats
path: root/brutha/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'brutha/util.py')
-rw-r--r--brutha/util.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/brutha/util.py b/brutha/util.py
index 9dde432..7838ca4 100644
--- a/brutha/util.py
+++ b/brutha/util.py
@@ -2,7 +2,6 @@
from __future__ import absolute_import
import os
-import re
def escape(x):
@@ -46,18 +45,6 @@ def require_executable(name, names=None):
raise Exception('Could not find executable: %s' % name)
-def detect_cores():
- try:
- import numpy.distutils.cpuinfo
- return numpy.distutils.cpuinfo.cpuinfo()._getNCPUs()
- except ImportError:
- try:
- with open('/proc/cpuinfo') as f:
- return len(re.findall('^processor\s+:\s+(\d+)$', f.read(), re.MULTILINE))
- except IOError:
- pass
-
-
def default_output(cores=None):
if cores and cores > 1:
if find_executable('make', ['gmake', 'make']):