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: [email protected]
Reporter: [email protected]
CC: [email protected]
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/[email protected]
$ mv /usr/local/Cellar/libomp /usr/local/Cellar/[email protected]
$ rm -r /usr/local/Cellar/[email protected]/11.0.0
$ rm -r /usr/local/Cellar/[email protected]/12.0.0
$ brew link [email protected]
Compiling simply with:
$ tar xvf nested-openmp.tgz && cd nested-openmp
$ mkdir build && cd build
$ cmake ..
$ make
Running with [email protected] cause no issues. Switching results in the attached
crash
$ ./nested-openmp
$ brew unlink [email protected] && brew link [email protected]
$ ./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 [email protected] &&
--
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