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: unassignedb...@nondot.org
          Reporter: nathan.coll...@kdab.com
                CC: llvm-bugs@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@12.0.0
$ mv /usr/local/Cellar/libomp /usr/local/Cellar/libomp@11.0.0
$ rm -r /usr/local/Cellar/libomp@12.0.0/11.0.0
$ rm -r /usr/local/Cellar/libomp@11.0.0/12.0.0
$ brew link libomp@11.0.0

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

Running with libomp@11.0.0 cause no issues. Switching results in the attached
crash
$ ./nested-openmp
$ brew unlink libomp@11.0.0 && brew link libomp@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@11.0.0 &&

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to