Skip to content
Snippets Groups Projects
Commit 5145c4a0 authored by Jonas Kaufmann's avatar Jonas Kaufmann
Browse files

blog/design-space-sweeps: add comments to code sample

parent 17c38a8e
No related branches found
No related tags found
No related merge requests found
Pipeline #105905 passed
......@@ -77,31 +77,36 @@ are just instantiating classes, feel free to use your favorite Python constructs
to do so! I decided to go for `itertools.product()` and a few simple for-loops:
```python
# Just some imports from the SimBricks orchestration framework
from simbricks.orchestration import experiments as exp
from simbricks.orchestration import nodeconfig as node
from simbricks.orchestration import simulators as sim
import itertools
# All experiments we set up go in here
experiments = []
# The system- and component-level design choices we want to evaluate
num_clients_opts = [4, 16, 128]
num_servers_opts = [1, 2, 4, 8]
num_accel_per_server_opts = [1, 2]
accel_clk_freq_opts = [100, 400]
background_traffic_opts = [0.5, 0.8]
# Actually build the experiments now
for (
num_clients,
num_servers,
num_accelerators,
accel_clk_freq,
background_traffic,
background_traffic
) in itertools.product(
num_clients_opts,
num_servers_opts,
num_accel_per_server_opts,
accel_clk_freq_opts,
background_traffic_opts,
background_traffic_opts
):
experiment = exp.Experiment(
f"<experiment_name>-{num_servers}s-{num_clients}c-"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment