[llvm-bugs] [Bug 45717] OpenMP: array element not allowed in reduction clause

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 4 07:24:09 PDT 2020


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

Alexey Bataev <a.bataev at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.bataev at hotmail.com
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Alexey Bataev <a.bataev at hotmail.com> ---
Your code is not correct. Use this code instead:
#pragma omp parallel for simd reduction(+:yptr[0][:N])

-- 
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/20200504/03c81b84/attachment.html>


More information about the llvm-bugs mailing list