[llvm-bugs] [Bug 50579] New: libomp 12.0.0 introduces assertion failure when running OpenMP from a background thread

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 4 04:05:07 PDT 2021


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

            Bug ID: 50579
           Summary: libomp 12.0.0 introduces assertion failure when
                    running OpenMP from a background thread
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: nathan.collins at kdab.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24909
  --> https://bugs.llvm.org/attachment.cgi?id=24909&action=edit
Minimum working example

Overview:
Our application runs OpenMP from a background thread and multiple threads may
end up doing that. This has worked fine using OpemMP 11.0.0 from homebrew.
However, upgrading to OpenMP 12.0.0 has introduced OMP: Error #13: Assertion
failure at kmp_runtime.cpp(3689).

Steps to reproduce:
I have attached a minimum working example.

To ease switching between OpenMP versions using brew I performed the following
steps:
$ brew unlink libomp
$ cp -R /usr/local/Cellar/libomp /usr/local/Cellar/libomp at 12.0.0
$ mv /usr/local/Cellar/libomp /usr/local/Cellar/libomp at 11.0.0
$ rm -r /usr/local/Cellar/libomp at 12.0.0/11.0.0
$ rm -r /usr/local/Cellar/libomp at 11.0.0/12.0.0
$ brew link libomp at 11.0.0

Compiling simply with:
$ tar xvf nested-openmp.tgz && cd nested-openmp
$ mkdir build && cd build
$ cmake ..
$ make

Running with libomp at 11.0.0 cause no issues. Switching results in the attached
crash
$ ./nested-openmp
$ brew unlink libomp at 11.0.0 && brew link libomp at 12.0.0
$ ./nested-openmp
OMP: Error #13: Assertion failure at kmp_runtime.cpp(3689).
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/.
[1]    15285 abort      ./nested-openmp
$ brew unlink libomp at 11.0.0 &&

-- 
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/20210604/57ba3581/attachment-0001.html>


More information about the llvm-bugs mailing list