[Bug target/100497] [OpenMP][nvptx] libgomp.c-c++-common/reduction-5.c - fails on some nvptx systems

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 17 18:21:33 GMT 2021


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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@gcc.gnu.org>:

https://gcc.gnu.org/g:58f7c7e098b79c96403c8341823ec3ba1e8b3945

commit r12-846-g58f7c7e098b79c96403c8341823ec3ba1e8b3945
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon May 17 10:11:52 2021 +0200

    [nvptx] Handle memmodel for atomic ops

    The atomic ops in nvptx.md have memmodel arguments, which are currently
    ignored.

    Handle these, fixing test-case fails libgomp.c-c++-common/reduction-{5,6}.c
    on volta.

    Tested libgomp on x86_64-linux with nvptx accelerator.

    gcc/ChangeLog:

    2021-05-17  Tom de Vries  <tdevries@suse.de>

            PR target/100497
            * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
            * config/nvptx/nvptx.c (nvptx_output_barrier)
            (nvptx_output_atomic_insn): New function.
            (nvptx_print_operand): Add support for 'B'.
            * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
            insns.


More information about the Gcc-bugs mailing list