I really want good reviews from Sean (threading guru) and Andrei (general design guru) before this gets into Phobos. Otherwise I feel like scientific computing people (like us) might be the only people that find this module to be any good. Also, no matter what, I'm probably going to wait until after the next release to check it in, because I want to test it thoroughly on 64, and I can't do that w/o a 64 compiler.<br>
<br><div class="gmail_quote">On Tue, Aug 31, 2010 at 9:34 AM, Lars Tandle Kyllingstad <span dir="ltr"><<a href="mailto:lars@kyllingen.net">lars@kyllingen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I ran my calculation on an 8-core at work, by the way, and it was very enjoyable to see a manyfold speed-up just by changing a few lines of code.<br><br>We should definitely get this into Phobos.<br><br>-Lars<br><br>----- Reply message -----<br>
From: "David Simcha" <<a href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a>><br>Date: Tue, Aug 31, 2010 14:13<br>Subject: [phobos] std.parallelism: Request for review/comment<br>To: "Discuss the phobos library for D" <<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a>><div>
<div></div><div class="h5"><br><br> On 8/31/2010 6:22 AM, Lars Tandle Kyllingstad wrote:<br>> Point (3) is pretty cool. I just used your module for my current<br>> project at work, and the ability to get the index made the code a lot<br>
> nicer.<br>><br>> Another question: Why have you chosen the default number of work units<br>> to be just two units per thread? In my experience, it's not uncommon<br>> that calculations are harder on some parts of the range than others, and<br>
> then there is a risk of some cores running out of work to do. I'd think<br>> that having more work units, 3-4 per thread, say, would allow for better<br>> distribution of work between cores.<br>><br>> -Lars<br>
<br>Good point. I should probably change this, as the more I think about it <br>the more I realize that I never use the default for the reason you <br>mention. It seemed like a good idea in iteration 1, and then I just <br>
never reconsidered.<br></div></div><div><div></div><div class="h5">_______________________________________________<br>phobos mailing list<br><a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br><br><br></div></div><br>_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br></blockquote></div><br>