std.parallelism: Request for Review

dsimcha dsimcha at yahoo.com
Sun Feb 27 07:40:23 PST 2011


On 2/26/2011 4:13 PM, dsimcha wrote:
> One last note: Due to Bug 5612
> (http://d.puremagic.com/issues/show_bug.cgi?id=5612), the benchmarks
> don't work on 64-bit because core.cpuid won't realize that your CPU is
> multicore. There are two ways around this. One is to use 32-bit mode.
> The other is to change the benchmark files to manually set the number of
> cores by setting the defaultPoolThreads property.

I realized the obvious kludge and "fixed" this.  Now, all benchmarks 
take a --nCpu command line argument that allows you to set the number of 
cores manually.  This is an absolute must if running on 64.  If you 
don't set this, the default is whatever core.cpuid.coresPerCPU returns, 
and on 64 bit this will always be 1.


More information about the Digitalmars-d mailing list