OpenMP branch

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.

About markflorisson

Blog for the Cython gsoc 2011
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s