Skip to content

Open mp fix for windows #17

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 38 commits into from
Jan 24, 2025
Merged

Open mp fix for windows #17

merged 38 commits into from
Jan 24, 2025

Conversation

pruliere
Copy link
Collaborator

@pruliere pruliere commented Oct 2, 2024

This PR solve 2 problems for windows version:

  1. objective_rates crash on windows in simcoon last version.
  2. there is a conflict between native microsoft openmp implementation and mkl one

1 is solved by removing the gil release at the begining of the openmp parallelized loop. The parallelization seems to be efficient without needed to release the gil here.

2 is simply solved by adding a dependencies to mkl (and thus to inter-openmp package) at the build stage. If not, simcoon link to microsoft openmp version which cause problems when using with other libraries relying on mkl (blas or pypardiso for instance)

@chemiskyy chemiskyy merged commit 612124d into master Jan 24, 2025
4 checks passed
@chemiskyy chemiskyy deleted the open_mp_fix_for_windows branch January 24, 2025 23:00
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.

2 participants