Re: OpenMP support

2011-01-09 Thread Jérôme M. Berger
scorn wrote: > Am 08.01.2011 08:47, schrieb "Jérôme M. Berger": >> You mean like this: >> foreach(i; pool.parallel( iota(squares.length), 100)) { >> // Iterate over squares using work units of size 100. >> squares[i] = i * i; >> } > > Yes, exactly like that! (Thanks for the hint.) >

Re: OpenMP support

2011-01-08 Thread scorn
Am 08.01.2011 08:47, schrieb "Jérôme M. Berger": scorn wrote: Am 06.01.2011 20:20, schrieb Iain Buclaw: == Quote from scorn (sc...@d.net)'s article Am 05.01.2011 21:24, schrieb Iain Buclaw: == Quote from Scorn (sc...@scorn.net)'s article I too wonder how much work it would be to support Open

Re: OpenMP support

2011-01-08 Thread Jacob Carlborg
On 2011-01-08 16:34, Iain Buclaw wrote: == Quote from Jacob Carlborg (d...@me.com)'s article Wouldn't that need to be wrapped in a version statement, unrecognized pragmas will result in an error. To be extremely pedantic... yes. A compiler is usually extremely pedantic :) -- /Jacob Carlborg

Re: OpenMP support

2011-01-08 Thread Iain Buclaw
== Quote from Jacob Carlborg (d...@me.com)'s article > On 2011-01-06 20:20, Iain Buclaw wrote: > > == Quote from scorn (sc...@d.net)'s article > >> Am 05.01.2011 21:24, schrieb Iain Buclaw: > >>> == Quote from Scorn (sc...@scorn.net)'s article > I too wonder how much work it would be to suppor

Re: OpenMP support

2011-01-08 Thread Jacob Carlborg
On 2011-01-06 20:20, Iain Buclaw wrote: == Quote from scorn (sc...@d.net)'s article Am 05.01.2011 21:24, schrieb Iain Buclaw: == Quote from Scorn (sc...@scorn.net)'s article I too wonder how much work it would be to support OpenMP in gdc. From http://www.drdobbs.com/high-performance-computing/

Re: OpenMP support

2011-01-07 Thread Jérôme M. Berger
scorn wrote: > Am 06.01.2011 20:20, schrieb Iain Buclaw: >> == Quote from scorn (sc...@d.net)'s article >>> Am 05.01.2011 21:24, schrieb Iain Buclaw: == Quote from Scorn (sc...@scorn.net)'s article > I too wonder how much work it would be to support OpenMP in gdc. From > http://www.drd

Re: OpenMP support

2011-01-07 Thread scorn
Am 06.01.2011 20:20, schrieb Iain Buclaw: == Quote from scorn (sc...@d.net)'s article Am 05.01.2011 21:24, schrieb Iain Buclaw: == Quote from Scorn (sc...@scorn.net)'s article I too wonder how much work it would be to support OpenMP in gdc. From http://www.drdobbs.com/high-performance-computin

Re: OpenMP support

2011-01-06 Thread Iain Buclaw
== Quote from scorn (sc...@d.net)'s article > Am 05.01.2011 21:24, schrieb Iain Buclaw: > > == Quote from Scorn (sc...@scorn.net)'s article > >> I too wonder how much work it would be to support OpenMP in gdc. From > >> http://www.drdobbs.com/high-performance-computing/226300277 it seems to be that

Re: OpenMP support

2011-01-06 Thread scorn
Am 05.01.2011 21:24, schrieb Iain Buclaw: == Quote from Scorn (sc...@scorn.net)'s article I too wonder how much work it would be to support OpenMP in gdc. From http://www.drdobbs.com/high-performance-computing/226300277 it seems to be that there is also quite a lot of magic on the compiler side

Re: OpenMP support

2011-01-05 Thread Iain Buclaw
== Quote from Scorn (sc...@scorn.net)'s article > I too wonder how much work it would be to support OpenMP in gdc. From > http://www.drdobbs.com/high-performance-computing/226300277 it seems to be > that > there is also quite a lot of magic on the compiler side (but which could already > be in the

Re: OpenMP support

2011-01-05 Thread Scorn
I too wonder how much work it would be to support OpenMP in gdc. From http://www.drdobbs.com/high-performance-computing/226300277 it seems to be that there is also quite a lot of magic on the compiler side (but which could already be in the gcc parts). Maybe a concurrent garbage collector would als

OpenMP support

2010-11-29 Thread Trass3r
I wonder how much work it would be to support OpenMP in gdc seeing how most of the magic actually happens in that libgomp library. Could that lib be used at all (problems with GC etc?)