Re: [Cython] Nested prange loops - (was: [cython-users] Converting to Python objects with nogil (inside prange for loop))

2022-07-18 Thread Lisandro Dalcin
On Fri, 15 Jul 2022 at 11:03, Stefan Behnel wrote: > nested prange loops seem to be a common gotcha for users. I can't say if > there is ever a reason to do this, but at least I can't think of any. Unless you make nested prange() emit the following C code: #pragma omp parallel for

[Cython] Nested prange loops - (was: [cython-users] Converting to Python objects with nogil (inside prange for loop))

2022-07-15 Thread Stefan Behnel
Hi, nested prange loops seem to be a common gotcha for users. I can't say if there is ever a reason to do this, but at least I can't think of any. For me, this sounds like we should turn it into a compile time error – unless someone can think of a use case? Even in that case, I'd still emit a