Skip to content

Commit 3db53b4

Browse files
PaulRalnikovAz3git
andauthored
FEAT: configs for new achirecture (#525)
closes #524 --------- Co-authored-by: Alexey Zharkov <62723911+Az3git@users.noreply.github.com>
1 parent 9ff5b2c commit 3db53b4

17 files changed

Lines changed: 1139 additions & 9 deletions

File tree

.github/workflows/cmake-single-platform.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
EXECUTABLE_NAME: nons
1111
TEST_EXECUTABLE_NAME: test_nons
1212
METRICS_ARTIFACT_DIR: metrics
13+
OLD_METRICS_ARTIFACT_DIR: metrics/old
14+
NEW_METRICS_ARTIFACT_DIR: metrics/new
1315

1416
jobs:
1517
clang-format:
@@ -71,11 +73,14 @@ jobs:
7173
- name: Add executable flag
7274
run: chmod +x ${{env.EXECUTABLE_NAME}}
7375

74-
- name: Run simulation
75-
run: python3 scripts/run_simulations.py -e ./${{env.EXECUTABLE_NAME}} -c configuration_examples/simulation_examples --output-dir ./${{env.METRICS_ARTIFACT_DIR}}
76+
- name: Run old simulations
77+
run: python3 scripts/run_simulations.py -e ./${{env.EXECUTABLE_NAME}} --no-logs -c configuration_examples/simulation_examples --output-dir ./${{env.OLD_METRICS_ARTIFACT_DIR}}
78+
79+
- name: Run new simulations
80+
run: python3 scripts/run_new_simulations.py -e ./${{env.EXECUTABLE_NAME}} --no-logs -c configs/scenario-configs.txt --output-dir ./${{env.NEW_METRICS_ARTIFACT_DIR}}
7681

7782
- name: Create html
78-
run: python3 scripts/generate-html.py ./metrics
83+
run: python3 scripts/generate-html.py ./${{env.METRICS_ARTIFACT_DIR}}
7984

8085
- name: Upload metrics
8186
uses: actions/upload-artifact@v4
@@ -89,7 +94,7 @@ jobs:
8994
- name: Calculate deploy destination dir
9095
run: |
9196
DEPLOY_DIR=$(python3 scripts/calculate_deploy_dir.py -c github_context.json);
92-
echo "DEPLOY_DIR=${DEPLOY_DIR}/${{env.METRICS_ARTIFACT_DIR}}" >> $GITHUB_ENV;
97+
echo "DEPLOY_DIR=${DEPLOY_DIR}/${{env.METRICS_ARTIFACT_DIR}}" >> $GITHUB_ENV;
9398
9499
- name: Deploy to GitHub Pages
95100
if: ${{env.DEPLOY_DIR}} != ''
@@ -126,15 +131,15 @@ jobs:
126131
needs: build
127132
steps:
128133
- uses: actions/checkout@v4
129-
134+
130135
- name: Download nons executable
131136
uses: actions/download-artifact@v4
132137
with:
133138
name: build-artifact
134139

135140
- name: Add executable flag
136141
run: chmod +x ${{env.EXECUTABLE_NAME}}
137-
142+
138143
- name: Update PYTHONPOATH
139144
run: echo "PYTHONPATH=${{ github.workspace }}/scripts" >> $GITHUB_ENV
140145

configs/fat-tree/network.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
topology_config_path: topology.yml
2+
3+
presets:
4+
connection:
5+
default:
6+
type: mplb-connection
7+
mplb:
8+
type: single-cc
9+
packet-size: 1500B
10+
cc:
11+
type: swift
12+
base_target: 36000ns
13+
path-chooser:
14+
type: round-robin
15+
flows:
16+
flow-1:
17+
type: tcp
18+
flow-2:
19+
type: tcp
20+
flow-3:
21+
type: tcp
22+
23+
connections:
24+
connection-pod1_host1--pod2_host1:
25+
preset-name: default
26+
sender_id: pod1_host1
27+
receiver_id: pod2_host1
28+
connection-pod1_host1--pod2_host2:
29+
preset-name: default
30+
sender_id: pod1_host1
31+
receiver_id: pod2_host2
32+
connection-pod1_host1--pod2_host3:
33+
preset-name: default
34+
sender_id: pod1_host1
35+
receiver_id: pod2_host3
36+
connection-pod1_host1--pod2_host4:
37+
preset-name: default
38+
sender_id: pod1_host1
39+
receiver_id: pod2_host4

configs/fat-tree/scenario.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
network_config_path: network.yml
2+
3+
scenario:
4+
- action: send_data
5+
id: send-1
6+
when: 0ns
7+
size: 5MB
8+
repeat_count: 1
9+
connections: ^connection.*
10+
repeat_interval: 500000ns

0 commit comments

Comments
 (0)