[llvm-bugs] [Bug 49583] New: OpenMP schedule(dynamic): Assertion failure at kmp_dispatch.cpp(375)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 14 00:29:52 PST 2021


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

            Bug ID: 49583
           Summary: OpenMP schedule(dynamic): Assertion failure at
                    kmp_dispatch.cpp(375)
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: kim.walisch at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24645
  --> https://bugs.llvm.org/attachment.cgi?id=24645&action=edit
OpenMP test program to trigger the bug

Hi,

While investigation a serious performance issue in Clang's OpenMP library
(which I will report in another issue) when using a parallel for loop with
schedule(dynamic) I found a bug (see the attached main.cpp which reproduces the
bug). I was able to reproduce the bug on both Linux x64 and Apple macOS ARM64.

clang++-11 -O3 -fopenmp main.cpp -o omp-bug
./omp-bug

Assertion failure at kmp_dispatch.cpp(375): pr->u.p.th_steal_lock == __null.
Assertion failure at kmp_dispatch.cpp(375): pr->u.p.th_steal_lock == __null.
Assertion failure at kmp_dispatch.cpp(375): pr->u.p.th_steal_lock == __null.
Assertion failure at kmp_dispatch.cpp(375): pr->u.p.th_steal_lock == __null.
OMP: Error #13: Assertion failure at kmp_dispatch.cpp(375).
OMP: Hint Please submit a bug report with this message, compile and run
commands used, and machine configuration info including native compiler and
operating system versions. Faster response will be obtained by including all
program sources. For information on submitting this issue, please see
https://bugs.llvm.org/.
OMP: Error #13: Assertion failure at kmp_dispatch.cpp(375).
OMP: Hint Please submit a bug report with this message, compile and run
commands used, and machine configuration info including native compiler and
operating system versions. Faster response will be obtained by including all
program sources. For information on submitting this issue, please see
https://bugs.llvm.org/.
Aborted (core dumped)

Regards,
Kim Walisch

-- 
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/20210314/0ccf362e/attachment.html>


More information about the llvm-bugs mailing list