Skip to content
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

Not to set OMP_NUM_THREADS #6071

Closed
wangkuiyi opened this issue Nov 30, 2017 · 0 comments
Closed

Not to set OMP_NUM_THREADS #6071

wangkuiyi opened this issue Nov 30, 2017 · 0 comments
Assignees

Comments

@wangkuiyi
Copy link
Collaborator

When I am reading @reyoung 's tutorial on performance tuning, I learned that we'd want to make sure that OpenMP doesn't automatically start multiple threads by setting the environment variable OMP_NUM_THREADS=1 on the command line.

However, I also noticed that our Python source code will change the environment variable:

set_env("OMP_NUM_THREADS", threads)
set_env("MKL_NUM_THREADS", threads)

It seems that we should change the above code so that it doesn't change the value of the environment variable if it had been set.

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

No branches or pull requests

3 participants