Boost logo

Boost Users :

Subject: Re: [Boost-users] [mapreduce] Prim Calculator
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-08-22 15:43:19


Cool. I have changed my code towards using ranges, as well. Also, my
map only emits prime numbers and no none-prime numbers. This is for
better memory requirements. When I run ranges of 1,000,000 numbers
wide, I can see that my 4 cores are 100% busy and kernel time is close
to nothing. Though, the processor utilization seems fine.

When do you think you'll fix the problem with iterating over the results?

Regards,
Christian

On Sat, Aug 22, 2009 at 3:07 PM, Craig
Henderson<cdm.henderson_at_[hidden]> wrote:
>> I'm afraid to admit that I f***ed up. The program is now working. I
>> invalidated the iterators with a for loop before the for_each call.
>> When I remove my for loop, the results are inside the output files.
>>
>> Cool stuff,
>> Christian
>>
>
> Great! I've added my version to the sandbox at
> http://svn.boost.org/svn/boost/sandbox/libs/mapreduce/examples/prime/
>
> This includes a modified number_source that provides a range for each map
> task to work on, reducing locking contention.
>
> Regards
> -- Craig
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net