concurrency = multiprocessing.cpu_count()
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 136, in cpu_count
raise NotImplementedError('cannot determine number of cpus')
NotImplementedError: cannot determine number of cpus
------------
It can be used either
os.sysconf('SC_NPROCESSORS_ONLN')
or
/bin/sysctl -n hw.ncpu
but not
/sbin/sysctl -n hw.ncpu
Petr
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

