Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simbricks-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimBricks
simbricks-website
Commits
5145c4a0
Commit
5145c4a0
authored
6 months ago
by
Jonas Kaufmann
Browse files
Options
Downloads
Patches
Plain Diff
blog/design-space-sweeps: add comments to code sample
parent
17c38a8e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#105905
passed
6 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_posts/2024-08-28-design-space-sweeps.md
+7
-2
7 additions, 2 deletions
_posts/2024-08-28-design-space-sweeps.md
with
7 additions
and
2 deletions
_posts/2024-08-28-design-space-sweeps.md
+
7
−
2
View file @
5145c4a0
...
...
@@ -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-
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment