Skip to content

Need command-line argument to control maximum threads #153

@curds01

Description

@curds01

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions