[Radiance-general] Re: Radiance-general Digest, Vol 80, Issue 6

Randolph M. Fritz RFritz at lbl.gov
Sun Oct 10 11:20:05 PDT 2010


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

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

-- 
Randolph





More information about the Radiance-general mailing list