public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98321] New: [nvptx] 'atom.add.f32' for atomic add of 32-bit 'float'
@ 2020-12-16 14:39 tschwinge at gcc dot gnu.org
  2020-12-17 16:30 ` [Bug target/98321] " vries at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2020-12-16 14:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98321

            Bug ID: 98321
           Summary: [nvptx] 'atom.add.f32' for atomic add of 32-bit
                    'float'
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: vries at gcc dot gnu.org
  Target Milestone: ---
            Target: nvptx

Consider:

    TYPE f(TYPE a, TYPE b)
    {
      #pragma acc atomic update
      a += b;

      return a;
    }

Compiling always with '-fopenacc', for '-DTYPE=int'/'-DTYPE=long' I do see the
expected 'atom.add.u32'/'atom.add.u64', but for '-DTYPE=float' I do not see the
expected 'atom.add.f32' but instead an 'atom.cas.b32' loop.  (I understand that
'-DTYPE=double': 'atom.add.f64' depends on PTX 5.0, SM 6.0 support.)

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

end of thread, other threads:[~2022-02-20  9:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 14:39 [Bug target/98321] New: [nvptx] 'atom.add.f32' for atomic add of 32-bit 'float' tschwinge at gcc dot gnu.org
2020-12-17 16:30 ` [Bug target/98321] " vries at gcc dot gnu.org
2020-12-17 20:18 ` tschwinge at gcc dot gnu.org
2020-12-17 22:15 ` vries at gcc dot gnu.org
2020-12-18  8:31 ` tschwinge at gcc dot gnu.org
2020-12-18 16:34 ` vries at gcc dot gnu.org
2021-07-06 11:18 ` tschwinge at gcc dot gnu.org
2022-02-20  9:25 ` vries 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).