Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Omp fork numthreads fix 1.6 #17000

Merged
merged 4 commits into from
Dec 12, 2019
Merged

Conversation

larroy
Copy link
Contributor

@larroy larroy commented Dec 7, 2019

Port of #16999 to release branch.

This could happen if it was set in the environment. As we are setting engine::OpenMP::Get()->set_enabled(false) in initialize.cc in the child after forking, the behaviour goes back to what it was before apache#15762 was introduced.

Regions using omp get the threads count from GetRecommendedOMPThreadCount, so if omp is disabled they will get 1 thread and run serially
@ptrendx
Copy link
Member

ptrendx commented Dec 11, 2019

@larroy Could you update this PR with new commits you did in #16999?

@ptrendx ptrendx added the R1.6.0 label Dec 11, 2019
@ptrendx
Copy link
Member

ptrendx commented Dec 11, 2019

Since the #16999 is approved, I will merge this once it passes CI

@larroy
Copy link
Contributor Author

larroy commented Dec 11, 2019

alright, thanks.

@ptrendx ptrendx merged commit 5b9f79a into apache:v1.6.x Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants