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

Need command-line argument to control maximum threads #153

Open
curds01 opened this issue Dec 4, 2020 · 0 comments
Open

Need command-line argument to control maximum threads #153

curds01 opened this issue Dec 4, 2020 · 0 comments
Assignees

Comments

@curds01
Copy link
Collaborator

curds01 commented Dec 4, 2020

Related to #152. This issue tracks the need to add a command-line argument to control maximum number of threads.

Design

The new command line parameter takes a non-negative integer. It is the maximum allowed number of threads. The executable will compare that number with the maximum possible number of threads reported by OpenMP and set the maximum allowed number of threads to the smaller of the two values.

OpenMP guide to using omp_set_num_threads

Note

While waiting for this issue, this can be indirectly controlled by configuring environment variables in the context in which Menge runs. See: https://software.intel.com/content/www/us/en/develop/documentation/mkl-windows-developer-guide/top/managing-performance-and-memory/improving-performance-with-threading/setting-the-number-of-threads-using-an-openmp-environment-variable.html

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

1 participant