Skip to content

Suppress OpenMP error on double OpenMP initialisation#118

Merged
RUrlus merged 2 commits intoing-bank:masterfrom
RUrlus:openmp_warnig
Sep 3, 2024
Merged

Suppress OpenMP error on double OpenMP initialisation#118
RUrlus merged 2 commits intoing-bank:masterfrom
RUrlus:openmp_warnig

Conversation

@RUrlus
Copy link
Copy Markdown
Collaborator

@RUrlus RUrlus commented Aug 29, 2024

This PR implements the same strategy as used by scikit-learn to suppress the error (segfault) when OpenMP get loaded twice. This can happen when two or more packages vendor their own OpenMP library like we do.
Scikit-learn maintainers mentioned that they didn't face any issues

Current usage of both this library with Torch triggers a segfault

@mbaak mbaak self-requested a review September 3, 2024 14:56
@RUrlus RUrlus merged commit af6abe9 into ing-bank:master Sep 3, 2024
@RUrlus RUrlus deleted the openmp_warnig branch September 3, 2024 15:01
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