Looking for writing parallel foreach kind of statement for nested for-loops

Philippe Sigaud philippe.sigaud at gmail.com
Sun Feb 10 00:11:55 PST 2013


On Sun, Feb 10, 2013 at 8:45 AM, FG <home at fgda.pl> wrote:
> On 2013-02-10 02:22, Sparsh Mittal wrote:
>>
>> The current reply answers my question, but I was just curious. Can we have
>> a
>> method which divides the 2d region as follows: 8*12 divided into 4*6 to
>> each of
>> 4 threads.
>
>
> Think again if you need that. Things start getting pretty ugly. :)

Indeed... Sparsh, any reason you need the calculation to be done on 2d
blocks instead of independent slots?


More information about the Digitalmars-d-learn mailing list