Radiance-general Digest, Vol 80, Issue 6

a pythonic, platform independent way to get the number of cores:
import multiprocessing
n_cpu = multiprocessing.cpu_count()

I use:
pool = multiprocessing.Pool( 8 )
pool.map( run_rtrace, rtrace_job_list )
all the time, works wonders

I like that very much, however it requires Python 2.6 or newer. Sigh...

ยทยทยท

On 2010-10-09 13:42:06 -0700, jelle feringa said:

a pythonic, platform independent way to get the number of cores:
import multiprocessing
n_cpu = multiprocessing.cpu_count()

I use:
pool = multiprocessing.Pool( 8 )
pool.map( run_rtrace, rtrace_job_list )
all the time, works wonders

--
Randolph