@@ -30,7 +30,7 @@ from simbricks.orchestration.simulators import (
...
@@ -30,7 +30,7 @@ from simbricks.orchestration.simulators import (
classExperiment(object):
classExperiment(object):
"""Base class for all simulation experiments."""
"""Base class for all simulation experiments. Contains the simulators to be run and experiment-wide parameters."""
def__init__(self,name:str):
def__init__(self,name:str):
self.name=name
self.name=name
...
@@ -41,13 +41,9 @@ class Experiment(object):
...
@@ -41,13 +41,9 @@ class Experiment(object):
self.timeout:tp.Optional[int]=None
self.timeout:tp.Optional[int]=None
"""Timeout for experiment in seconds."""
"""Timeout for experiment in seconds."""
self.checkpoint=False
self.checkpoint=False
"""Whether to use checkpoints in the experiment.
"""Whether to use checkpoint and restore for simulators.
Using this property we can, for example, speed up booting a host
The most common use-case for this is accelerating host simulator startup by first running in a less accurate mode, then checkpointing the system state after boot and running simulations from there."""
simulator by first running in a less accurate mode. Before we then start
the measurement we are interested in, a checkpoint is taken, the
simulator shut down and finally restored in the accurate mode using this
checkpoint."""
self.no_simbricks=False
self.no_simbricks=False
"""If `true`, no simbricks adapters are used in any of the
"""If `true`, no simbricks adapters are used in any of the