public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104580] New: [nvptx] Use prevent_branch_around_nothing only when necessary
@ 2022-02-17  8:25 vries at gcc dot gnu.org
  2022-02-17  8:25 ` [Bug target/104580] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2022-02-17  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104580
           Summary: [nvptx] Use prevent_branch_around_nothing only when
                    necessary
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

I had the following idea:

The prevent_branch_around_nothing workaround was added to force
a uniform warp after this:
...
            {
                    .reg.u32        %x;
                    mov.u32 %x, %tid.x;
                    setp.ne.u32     %r23, %x, 0;
            }
            @%r23   bra     $L2;
    $L2:
...

With TARGET_PTX_6_0, we enforce a uniform warp by using bar.warp.sync, and
consequently this workaround is not necessary anymore.
...

However, this introduces the following regression:
...
FAIL: libgomp.fortran/task-detach-8.f90 -Os execution test
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/reduction-7.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O0
-DGOMP_NVPTX_JIT=-O0 execution test
...

Needs investigation.  Either the idea is wrong, or the tests FAIL for some
other reason.

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

* [Bug target/104580] [nvptx] Use prevent_branch_around_nothing only when necessary
  2022-02-17  8:25 [Bug target/104580] New: [nvptx] Use prevent_branch_around_nothing only when necessary vries at gcc dot gnu.org
@ 2022-02-17  8:25 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2022-02-17  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 52457
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52457&action=edit
Tentative patch

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-17  8:25 [Bug target/104580] New: [nvptx] Use prevent_branch_around_nothing only when necessary vries at gcc dot gnu.org
2022-02-17  8:25 ` [Bug target/104580] " 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).