Skip to content

FIX only warn about libomp/libiomp conflict on Linux#222

Merged
ogrisel merged 2 commits into
joblib:masterfrom
ogrisel:cursor/joblib-fix-windows-mkl-571b
Jul 10, 2026
Merged

FIX only warn about libomp/libiomp conflict on Linux#222
ogrisel merged 2 commits into
joblib:masterfrom
ogrisel:cursor/joblib-fix-windows-mkl-571b

Conversation

@ogrisel

@ogrisel ogrisel commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Tentative fix Windows pylatest_conda_forge_mkl CI failure.

The conda-forge MKL environment loads both libiomp and libomp, triggering RuntimeWarning on every ThreadpoolController init. pytest runs with -W error, so tests fail.

The incompatibility between Intel and LLVM OpenMP runtimes is documented as a Linux-specific issue. This change skips the warning on non-Linux platforms.

Note: I am not sure if this is the right fix, but it's interesting to check if the crash is indeed Linux specific or not.

The alternative would be to change the dependencies in the CI config so that the Windows CI jobs that need MKL would not load clang's OpenMP runtime.

The incompatibility between Intel and LLVM OpenMP runtimes is documented
as a Linux-specific issue. Emitting the warning on Windows caused CI
failures in the conda-forge MKL job because pytest runs with -W error.

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
@ogrisel

ogrisel commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Maybe we should also check that the libiomp + libomp crash on linux is still happening with the latest versions of those libraries. It could be the case that they have become more compatible overtime and that raising a warning is no longer needed on any platform.

Comment thread CHANGES.md Outdated
@ogrisel

ogrisel commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Let's merge this to get a clean CI ASAP and I will follow-up with more testing to check if warning on Linux is still needed or not.

@itamarst itamarst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insofar as I can review things: this seems reasonable to me.

@ogrisel ogrisel merged commit cf5f1bd into joblib:master Jul 10, 2026
21 of 22 checks passed
@ogrisel

ogrisel commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

For the record, we can still reproduce the crash on linux using the reproducers in ogrisel#14. So let's keep the warning on linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants