plumed_bench_pp.types¶
Classes
|
A class representing a single row in the benchmark table. |
|
A class representing a benchmark run. |
|
A class representing the settings for benchmarking. |
|
A class representing a benchmark for a kernel-input pair. |
- class plumed_bench_pp.types.BenchmarkRow(cycles: int, total: float, average: float, minimum: float, maximum: float)¶
Bases:
objectA class representing a single row in the benchmark table.
- Parameters:
- static from_dict(data: dict) BenchmarkRow¶
Creates a new instance of the BenchmarkRow class from a dictionary containing the necessary data.
- Parameters:
data (dict) – A dictionary with the following keys: “Cycles”, “Total”, “Average”, “Minimum”, and “Maximum”.
- Returns:
A new instance of the BenchmarkRow class initialized with the data from the dictionary.
- Return type:
- static from_re_match(result: re.Match) BenchmarkRow¶
A method to create a BenchmarkRow instance from a regex match result.
- Parameters:
result (re.Match) – The regex match result containing the required groups.
- Returns:
A BenchmarkRow instance initialized with the extracted data.
- Return type:
- class plumed_bench_pp.types.BenchmarkRun(settings: ~plumed_bench_pp.types.BenchmarkSettings = <factory>, runs: dict[str, ~plumed_bench_pp.types.KernelBenchmark] = <factory>)¶
Bases:
objectA class representing a benchmark run.
It contains the settings as a
BenchmarkSettingsand the results of each kernel-input file combination as aKernelBenchmarkdictionary.- __init__(settings: ~plumed_bench_pp.types.BenchmarkSettings = <factory>, runs: dict[str, ~plumed_bench_pp.types.KernelBenchmark] = <factory>) None¶
- class plumed_bench_pp.types.BenchmarkSettings(kernels: list = <factory>, inputs: list = <factory>, steps: int = -1, atoms: int = -1, maxtime: float = -1.0, sleep: float = 0.0, atom_distribution: str = 'line', shuffled: bool = False, domain_decomposition: bool = False)¶
Bases:
objectA class representing the settings for benchmarking.
- __init__(kernels: list = <factory>, inputs: list = <factory>, steps: int = -1, atoms: int = -1, maxtime: float = -1.0, sleep: float = 0.0, atom_distribution: str = 'line', shuffled: bool = False, domain_decomposition: bool = False) None¶
- domain_decomposition: bool = False¶
The domain decomposition option, as specified in the command line