Heterogeneous Configuration

From Sniper
Revision as of 12:13, 17 December 2012 by Tcarlson (talk | contribs) (→‎How does it work?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

What is heterogeneous configuration support?

In Sniper v3.0 we have enabled support for heterogeneous configuration of core options.

How does it work?

Each option can have a default value and an array (heterogeneous) value defined. Setting values in the configuration file as normal sets that value as the default for all components that participate in heterogeneous configuration. Note, that currently most configuration parameters are core id indexed, and that heterogeneous support does not make sense for all configuration variables.

To use these options, use the comma (,) separator between items. It is possible to leave values empty, which will allow them to be assigned the default value. In the example config file below, we define a global default, and then override the values for core 0 and 3.

[perf_model/core/interval_timer]
window_size=128
window_size[]=96,,,32

Which options can be set in this way?

Below are some examples of heterogeneous options that can be set.

perf_model/core/frequency
perf_model/core/type
perf_model/core/interval_timer/dispatch_width
perf_model/core/interval_timer/window_size