tag:blogger.com,1999:blog-6467669810355316916.post6878345063293234833..comments2022-04-09T07:52:18.417-07:00Comments on Just Tinkering: Detecting cpus/cores in PythonRaghavanhttp://www.blogger.com/profile/04140309099289813259noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6467669810355316916.post-20425236532097445062009-07-03T13:41:32.961-07:002009-07-03T13:41:32.961-07:00For python 2.6 it is
import multiprocessing
multi...For python 2.6 it is<br /><br />import multiprocessing<br />multiprocessing.cpu_count()Unknownhttps://www.blogger.com/profile/14852509205139449465noreply@blogger.comtag:blogger.com,1999:blog-6467669810355316916.post-59564084831385634342009-06-18T09:56:45.725-07:002009-06-18T09:56:45.725-07:00@anonymous : thanks !
@ben : Is processing part o...@anonymous : thanks !<br /><br />@ben : Is processing part of the standard library ? unless i am mistaken this needs to be downloaded from pypi ?Raghavanhttps://www.blogger.com/profile/04140309099289813259noreply@blogger.comtag:blogger.com,1999:blog-6467669810355316916.post-60494545623006753842009-06-18T08:43:01.850-07:002009-06-18T08:43:01.850-07:00The processing module also seems to provide this: ...The processing module also seems to provide this: <br /><br />import processing<br />processing.cpuCount()Ben FrantzDalehttps://www.blogger.com/profile/17378472187014968166noreply@blogger.comtag:blogger.com,1999:blog-6467669810355316916.post-85537624468451801532009-03-29T17:05:00.000-07:002009-03-29T17:05:00.000-07:00Multiprocessing has been backported to 2.4/2.5, se...Multiprocessing has been backported to 2.4/2.5, see<BR/><BR/>http://pypi.python.org/pypi/multiprocessing/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6467669810355316916.post-827247069881151342008-11-27T19:58:00.000-08:002008-11-27T19:58:00.000-08:00Thanks Felix. I happened to be using python 2.5 wh...Thanks Felix. I happened to be using python 2.5 when posting this. multiprocessing seems to have been introduced from 2.6 onwards.Raghavanhttps://www.blogger.com/profile/04140309099289813259noreply@blogger.comtag:blogger.com,1999:blog-6467669810355316916.post-10542171143926240932008-11-27T09:30:00.000-08:002008-11-27T09:30:00.000-08:00If you are using the multiprocessing module, do th...If you are using the multiprocessing module, do this instead: <BR/>multiprocessing.cpu_count()Anonymousnoreply@blogger.com