elementals only ?!?

General OpenMP discussion

elementals only ?!?

Postby tch » Tue Dec 16, 2008 7:01 am

I know that inside WORKSHARE only elemental functions/subroutines (fortran) are allowed. But it is not clear to me if the same is true for the other worksharing constructs like PARALLEL DO or PARALLEL SECTIONS....

Re: elementals only ?!?

Postby james » Tue Dec 16, 2008 9:15 am

OpenMP puts very few restrictions on what functions and subroutines can be called were. It is up to the programmer to ensure correctsness. Workshare is a bit different because of what it is asking the compiler to do. So you are not restricted to only using elementals inside of other constructs. The one caveat I can think of is contained procedures and functions. These can have strange interactions with private objects depending on how the compiler implements them.
Posts: 54
Joined: Fri May 16, 2008 9:27 am

Return to Using OpenMP

Who is online

Users browsing this forum: No registered users and 3 guests