[llvm-bugs] [Bug 45117] New: Orphaned task reduction should be allowed.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 5 04:47:46 PST 2020


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

            Bug ID: 45117
           Summary: Orphaned task reduction should be allowed.
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andrey.churbanov at intel.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23205
  --> https://bugs.llvm.org/attachment.cgi?id=23205&action=edit
Bug reproducer.

OpenMP specification allows task reduction to be orphaned. Issue reported by
Olivier, Stephen Lecler (SNL), and confirmed by other members of OpenMP
language committee.

Blog article link:
https://developers.redhat.com/blog/2019/03/19/whats-new-in-openmp-5-0/ 

To reproduce:

$ clang -fopenmp omp_task_red_orphaned.c
omp_task_red_orphaned.c:14:35: error: in_reduction variable must appear in a
task_reduction clause
  #pragma omp task in_reduction(+:r) firstprivate(i, th_gen)
                                  ^
omp_task_red_orphaned.c:19:35: error: in_reduction variable must appear in a
task_reduction clause
  #pragma omp task in_reduction(+:r) firstprivate(i, th_gen)
                                  ^
2 errors generated.


There is also corresponding bug in the runtime library prevented the test to
run to completion, the fix for which posted for review:
https://reviews.llvm.org/D75673.

-- 
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/20200305/0457fb0c/attachment.html>


More information about the llvm-bugs mailing list