Skip to main content

AcceleratedFractionScenario

Optimization scenarios · Implementation: mlsysim/engine/scenario_definitions/optimization.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Amdahl’s law with a path gain set by two rates: fraction of the baseline time runs accelerated_rate / baseline_rate times faster.

The rates may be operation rates (a compute-bound path) or bandwidths (a bandwidth-bound path); only their ratio enters.

Notes

Equation: The calculation members below define gain, speedup, ceiling.

Assumptions: The accelerated fraction is baseline elapsed-time share; the two rates measure compatible work.

Excludes: Changes to the unaccelerated path, contention, and overlap.

References

Derivation: Amdahl’s law with a path gain set by two rates: fraction of the baseline time runs accelerated_rate / baseline_rate times faster. Each member records the corresponding algebra or named physics function.

Examples

Evaluate the named configuration and display a modeled result.

>>> from mlsysim import Scenarios
>>> case = Scenarios.ResNet50InferenceH100OverServerCpu
>>> value = case.speedup
>>> print(f"{value:.3g}")
18.6

Attributes

Name Description
accelerated_rate
baseline_rate
ceiling Dimensionless Amdahl ceiling with the accelerated portion taking no time.
fraction
gain Dimensionless local speedup from accelerated rate divided by baseline rate.
speedup Whole-program speedup from the Amdahl contract in calc_amdahls_speedup.

fraction

Type: float.

Declared default: required.

accelerated_rate

Type: Quantity.

Declared default: required.

baseline_rate

Type: Quantity.

Declared default: required.

gain

engine.scenario_types.AcceleratedFractionScenario.gain

Dimensionless local speedup from accelerated rate divided by baseline rate.

Equation: (accelerated_rate / baseline_rate).to('').magnitude.

speedup

engine.scenario_types.AcceleratedFractionScenario.speedup

Whole-program speedup from the Amdahl contract in calc_amdahls_speedup.

Calculation: mlsysim.physics.calc_amdahls_speedup.

ceiling

engine.scenario_types.AcceleratedFractionScenario.ceiling

Dimensionless Amdahl ceiling with the accelerated portion taking no time.

The speedup with an infinitely fast path: 1 / (1 - fraction).

Calculation: mlsysim.physics.calc_amdahls_speedup.

Back to top