[llvm-bugs] [Bug 49115] New: [OpenMP 5.0] Incorrect results for scan directive

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 9 08:51:59 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49115

            Bug ID: 49115
           Summary: [OpenMP 5.0] Incorrect results for scan directive
           Product: OpenMP
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jhdavis at udel.edu
                CC: llvm-bugs at lists.llvm.org

Created attachment 24506
  --> https://bugs.llvm.org/attachment.cgi?id=24506&action=edit
Source of reproducer for the OpenMP scan correctness bug.

Overview: Program using the OpenMP scan directive and reduction(inscan...)
gives incorrect results when compiled with Clang 12.0.0-20210125.

Steps to reproduce:

1. Compile with `clang -lm -fopenmp scan_bug_reproducer.c`.

2. Run with `./a.out`

Actual results:

`Test failed, total errors: 1016.`

Expected results:

`Test passed.`

Build & Hardware:
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
d36812892c16b551f058774babbc8727737f80cd)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /sw/summit/ums/stf010/llvm/12.0.0-20210125/bin

Additional information:

Reproducer source attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210209/bfe28569/attachment.html>


More information about the llvm-bugs mailing list