Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.7.0 (TBD)
===========

- Only warn about simultaneous `libomp` and `libiomp` usage on Linux, where the
incompatibility is known to cause crashes.

3.6.0 (2025-03-13)
==================

Expand Down
7 changes: 7 additions & 0 deletions threadpoolctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,13 @@ def _check_prefix(self, library_basename, filename_prefixes):

def _warn_if_incompatible_openmp(self):
"""Raise a warning if llvm-OpenMP and intel-OpenMP are both loaded"""
if sys.platform != "linux":
# The incompatibility between libomp and libiomp is known to cause
# crashes on Linux. On other platforms, conda-forge may expose both
# libraries without the same runtime conflict (for instance when
# libiomp forwards to libomp on Windows).
return

prefixes = [lib_controller.prefix for lib_controller in self.lib_controllers]
msg = textwrap.dedent(
"""
Expand Down
Loading