Started a new branch https://github.com/markflorisson88/cython/tree/openmp .

Now the question is whether sharing attributes should be propagated outwards. e.g. if you do

for i in prange(m):

for j in prange(n):

sum += i * j

then ‘sum’ is a reduction for the inner parallel loop, but not for the outer one. So the user would currently have to rewrite this to

for i in prange(m):

for j in prange(n):

sum += i * j

sum += 0

which seems a bit silly :). Of course, we could just disable nested parallelism, or tell the users to use a prange and a ‘for from’ in such cases.

### Like this:

Like Loading...

*Related*

## About markflorisson

Blog for the Cython gsoc 2011