Skip to content

CI Use Meson 1.5 in no-OpenMP build #29839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Sep 13, 2024

Fix #29546.

cc @jeremiedbb.

Copy link

github-actions bot commented Sep 13, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: d46e2e4. Link to the linter CI: here

@lesteve
Copy link
Member Author

lesteve commented Sep 13, 2024

OpenMP is not detected as it should, see build log

Run-time dependency OpenMP for c found: NO (tried system)

@jeremiedbb
Copy link
Member

In the no openmp build:

Built with OpenMP: False

threadpoolctl info:
       user_api: blas
   internal_api: mkl
    num_threads: 4
         prefix: libmkl_rt
       filepath: /usr/local/miniconda/envs/testvenv/lib/libmkl_rt.2.dylib
        version: 2023.1-Product
threading_layer: intel

       user_api: openmp
   internal_api: openmp
    num_threads: 4
         prefix: libiomp
       filepath: /usr/local/miniconda/envs/testvenv/lib/libiomp5.dylib
        version: None

Looks good. The libiomp comes from mkl and not from openmp calls within scikit-learn.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb
Copy link
Member

An alternative that we discussed is to have a meson flag to disable linking against openmp explicitely, but this looks good enough.

@ogrisel ogrisel merged commit 173103a into scikit-learn:main Sep 13, 2024
32 checks passed
@lesteve lesteve deleted the meson-1.5-no-openmp-ci branch September 13, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Investigate timeout in no-OpenMP build with Meson 1.5
3 participants