Skip to content

OMP: Error #15: Initializing libomp.so.5, but found unknown library already initialized. #20344

Open
@rpoyner-tri

Description

@rpoyner-tri

What happened?

Seen in https://drake-jenkins.csail.mit.edu/view/Production/job/linux-focal-clang-bazel-continuous-everything-release/745/:

Using drake_cc_googletest_main.cc

[==========] Running 9 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 8 tests from PointCloudTest
[ RUN      ] PointCloudTest.TestExpectedNumThreads
OMP: Error #15: Initializing libomp.so.5, but found unknown library already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/

//perception:point_cloud_test_parallel                                   FAILED in 0.6s

Not able to reproduce locally. @jwnimmer-tri thinks we have seen this once before, but I have not found the prior occurrence.

Version

3968c1c

What operating system are you using?

Ubuntu 20.04

What installation option are you using?

compiled from source code using Bazel

Relevant log output

See above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions