Re: [Cython] OpenMP support

2011-03-12 Thread Francesc Alted
A Saturday 12 March 2011 02:43:16 Sturla Molden escrigué: > The free C/C++ compiler in Windows SDK supports OpenMP. This is the > system C compiler on Windows. System compiler on Windows? I've never heard defining MSVC like this ;) > OpenMP on GCC is the same on Windows as on any other platform.

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 01:46, Robert Bradshaw wrote: > On Tue, Mar 8, 2011 at 11:16 AM, Francesc Alted wrote: >> A Tuesday 08 March 2011 18:50:15 Stefan Behnel escrigué: >>> mark florisson, 08.03.2011 18:00: >>> > What I meant was that the >>> > wrapper returned by the decorator would have to call the

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 08:56, Dag Sverre Seljebotn wrote: > On 03/11/2011 08:20 AM, Stefan Behnel wrote: >> >> Robert Bradshaw, 11.03.2011 01:46: >>> >>> On Tue, Mar 8, 2011 at 11:16 AM, Francesc Alted >>>  wrote: A Tuesday 08 March 2011 18:50:15 Stefan Behnel escrigué: > > mark floris

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 12:13, Sturla Molden wrote: > Den 11.03.2011 01:46, skrev Robert Bradshaw: >> >> On a slightly higher level, are we just trying to use OpenMP from >> Cython, or are we trying to build it into the language? > > OpenMP is a specification, not a particular implementation. Implementat

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 14:54, Sturla Molden wrote: > Den 11.03.2011 11:42, skrev Matej Laitl: >> >> #pragma omp parallel for private(var1) reduction(+:var2) schedule(guided) >> for i in range(n): >>     do_work(i) >> > I do like this, as it is valid Python and can be turned on/off with a > compiler fla

Re: [Cython] OpenMP support

2011-03-12 Thread Greg Ewing
mark florisson wrote: Have we ever thought about supporting 'with gil' as an actual statement instead of just as part of a function declaration or definition? That's the way I was originally going to do it in Pyrex, but it turned out to be problematic, because there is some setup that gets don