const qualified static data members in firstprivate clause

Discuss the OpenMP 3.1 API Specifications with the OpenMP Arch. Review Board. (Read Only)
Locked
jakub
Posts: 74
Joined: Fri Oct 26, 2007 3:19 am

const qualified static data members in firstprivate clause

Post by jakub »

Just want to double check, are static data members with const qualified type with no mutable member allowed in firstprivate or not? Similarly what about a variable with const qualified type with no mutable member that appears in threadprivate directive? My understanding is that some objects may be predetermined based on multiple conditions in the list, if more than one rule applies then the first in the list wins. But for the exceptions which variables may be listed in firstprivate it isn't obvious that only const predetermined variables for which earlier rules didn't apply behave so.

aduran
Posts: 12
Joined: Wed Oct 24, 2007 8:33 am
Location: Barcelona, Spain

Re: const qualified static data members in firstprivate clau

Post by aduran »

Hi Jakub,

We have discussed this and the intent was such that the answer to your first question is YES and to the second one is NO.

We'll put additional wording in the next release to clear these ambiguities. Thanks for pointing it out.

Locked