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

Add warning when OMP_NUM_THREADS > 1 or is unset #142

Open
arbennett opened this issue Aug 24, 2018 · 0 comments
Open

Add warning when OMP_NUM_THREADS > 1 or is unset #142

arbennett opened this issue Aug 24, 2018 · 0 comments
Assignees

Comments

@arbennett
Copy link
Member

@jhamman recently noticed that he was oversaturating Cheyenne when running with -n 36. It was determined that OpenMP was at least part of the issue. It appears that something in MetSim uses it under the hood.

It seems that if OpenMP is available on the system MetSim will attempt to make use of it. We should do a quick check in the driver if the environment variable OMP_NUM_THREADS is unset or if it is greater than 1. If the variable is unset, the library defaults to use OMP_NUM_THREADS = #processors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant