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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to