Bug in A.27.1c testcase

Discussion of the OpenMP 3.1 draft specifications closed May 1, 2011. (Read only)

Bug in A.27.1c testcase

Postby jakub » Thu Mar 10, 2011 4:55 am

In A.27.1c on page 240, it says it is ok for c not to be mentioned in any clause, as it is const-qualified. That was true in OpenMP 3.0 where const-qualified having no mutable members were predetermined shared.
But as they aren't predetermined any longer, with default(none) I think they have to be mentioned in a shared(c) or firstprivate(c) clause.
Posts: 74
Joined: Fri Oct 26, 2007 3:19 am

Re: Bug in A.27.1c testcase

Postby ejd » Fri Mar 11, 2011 8:40 am

Thank you for your comment. You are indeed correct. It unfortunately also means that current programs using default(none) would fail, since it is no longer predetermined. The ARB usually tries to make sure that this doesn't happen, so we may have to revisit this to see whether it should be like a loop iteration variable (i.e., predetermined but allowed to be specified) so that current programs can continue to work. In any case, I have put your comment on the list of items to be reviewed before the specification is finalized.
Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Return to Draft 3.1 Public Comment

Who is online

Users browsing this forum: No registered users and 1 guest