public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102215] New: [GCN offloading] Missing '__atomic_compare_exchange_1' etc.
@ 2021-09-06  9:55 tschwinge at gcc dot gnu.org
  2021-09-06  9:59 ` [Bug target/102215] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-09-06  9:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102215
           Summary: [GCN offloading] Missing '__atomic_compare_exchange_1'
                    etc.
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, jakub at gcc dot gnu.org, jules at gcc dot gnu.org
  Target Milestone: ---
            Target: GCN

The recent commit 090f0d78f194e3cda23fe904016db77ea36c38fa "openmp: Improve
expand_omp_atomic_pipeline" regresses GCN offloading testing as follows:

    [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/reduction-16.c (test
for excess errors)
    [-PASS:-]{+UNRESOLVED:+} libgomp.c/../libgomp.c-c++-common/reduction-16.c
[-execution test-]{+compilation failed to produce executable+}

    ld: error: undefined symbol: __atomic_compare_exchange_1
    >>> referenced by /tmp/cce2YauE.o:(test_char._omp_fn.1)
    >>> referenced by /tmp/cce2YauE.o:(test_char._omp_fn.1)
    >>> referenced by /tmp/cce2YauE.o:(test_char._omp_fn.0)
    >>> referenced by /tmp/cce2YauE.o:(test_char._omp_fn.0)

    ld: error: undefined symbol: __atomic_compare_exchange_2
    >>> referenced by /tmp/cce2YauE.o:(test_short._omp_fn.1)
    >>> referenced by /tmp/cce2YauE.o:(test_short._omp_fn.1)
    >>> referenced by /tmp/cce2YauE.o:(test_short._omp_fn.0)
    >>> referenced by /tmp/cce2YauE.o:(test_short._omp_fn.0)
    collect2: error: ld returned 1 exit status
    mkoffload: fatal error:
[...]/gcc/x86_64-pc-linux-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status

Similar for 'libgomp.c++/../libgomp.c-c++-common/reduction-16.c'.

And:

    [-PASS:-]{+FAIL:+} libgomp.c/target-43.c (test for excess errors)
    [-PASS:-]{+UNRESOLVED:+} libgomp.c/target-43.c [-execution
test-]{+compilation failed to produce executable+}

    ld: error: undefined symbol: __atomic_compare_exchange_1
    >>> referenced by /tmp/cc1Kwlmj.o:(main._omp_fn.0)
    >>> referenced by /tmp/cc1Kwlmj.o:(main._omp_fn.0)
    collect2: error: ld returned 1 exit status
    mkoffload: fatal error:
[...]/gcc/x86_64-pc-linux-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status

These all do:

    { dg-additional-options "-foffload-options=nvptx-none=-latomic" { target {
offload_target_nvptx } } }

Do we now also need libatomic for GCN or should this be handled in the GCN back
end?

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

end of thread, other threads:[~2022-03-10 12:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06  9:55 [Bug target/102215] New: [GCN offloading] Missing '__atomic_compare_exchange_1' etc tschwinge at gcc dot gnu.org
2021-09-06  9:59 ` [Bug target/102215] " jakub at gcc dot gnu.org
2021-09-06 11:09 ` burnus at gcc dot gnu.org
2021-09-06 12:01 ` jakub at gcc dot gnu.org
2022-03-09 18:35 ` cvs-commit at gcc dot gnu.org
2022-03-10 12:07 ` burnus 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).