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 support for machine-specific settings #272

Merged
merged 2 commits into from
Nov 7, 2024
Merged

Add support for machine-specific settings #272

merged 2 commits into from
Nov 7, 2024

Conversation

smarr
Copy link
Owner

@smarr smarr commented Nov 7, 2024

This PR adds the ability add machine-specific configuration to the config file and then select it by name when running rebench on the command line.

One use could be to run benchmarks with different settings depending on the availability of hardware resources. For example, with a small and a large machine:

machines:
  small-machine:
    cores: [1, 2, 4, 8]
  large-machine:
    cores: [1, 2, 4, 8, 16, 32, 64, 128]

This can then be used by running rebench like this:

rebench rebench.conf -m large-machine

A machine setting is part of the normal composition process of configurations.
It is the new lowest level, i.e., with lowest priority.
This means, that in the above example, a cores: setting in a benchmark would override the setting.

This realizes part of #257.

smarr added 2 commits November 7, 2024 23:28
- add machine name to RunId

Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr added the Feature label Nov 7, 2024
@coveralls
Copy link

Coverage Status

coverage: 53.795% (+0.01%) from 53.785%
when pulling c7bb90f on machine-settings
into 1d8b18a on master.

@smarr smarr merged commit fef47f2 into master Nov 7, 2024
12 checks passed
@smarr smarr deleted the machine-settings branch November 7, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants