public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57618] New: OpenMP atomic read and write are not sequentially consistent
@ 2013-06-14 21:23 nmm1 at cam dot ac.uk
  2013-06-15  7:37 ` [Bug c++/57618] " jakub at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: nmm1 at cam dot ac.uk @ 2013-06-14 21:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57618

            Bug ID: 57618
           Summary: OpenMP atomic read and write are not sequentially
                    consistent
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nmm1 at cam dot ac.uk

See bug 57617 for the data and more description.  But the same program
finds that OpenMP atomic read and write are not sequentially consistent.
That will assuredly cause wrong answers when yer everage programmer
attempts to use them.

But should they be?  If you can decode any specification on this matter
from what OpenMP are pleased to call a standard, you are more intelligent
than I am.

So is this a bug, a gotcha or a feature?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/57618] OpenMP atomic read and write are not sequentially consistent
  2013-06-14 21:23 [Bug c++/57618] New: OpenMP atomic read and write are not sequentially consistent nmm1 at cam dot ac.uk
@ 2013-06-15  7:37 ` jakub at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-15  7:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57618

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No idea where you got that #pragma omp atomic should be sequentially
consistent, it is relaxed.  OpenMP 4.0 introduces seq_cst clause on all the
#pragma omp atomic {,update,read,write,capture} variants that makes it
sequentially consistent.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-15  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 21:23 [Bug c++/57618] New: OpenMP atomic read and write are not sequentially consistent nmm1 at cam dot ac.uk
2013-06-15  7:37 ` [Bug c++/57618] " jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).