-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from andrewboutros/dev-abnash
Multi-RAD RADSim from dev-abnash
- Loading branch information
Showing
210 changed files
with
8,472 additions
and
972 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Two-RAD DLRM Example Design | ||
================= | ||
|
||
This guide explains how to use the two-RAD DLRM example design. RAD 1 is responsible for the DLRM up to and including the embedding table lookups. | ||
These are then transmitted to RAD 2 over the inter-RAD network, which then completes the remaining model stages. | ||
|
||
Building RAD-Sim | ||
---------------- | ||
|
||
You can configure RAD-Sim for the two-RAD DLRM design simulation using the following commands executed at the ``rad-sim`` root directory. | ||
|
||
.. code-block:: bash | ||
$ cd <rad_flow_root_dir>/rad-sim | ||
$ python config.py dlrm_two_rad #dlrm_two_rad is name of design directory within example-designs parent directory | ||
Running RAD-Sim | ||
---------------- | ||
|
||
You can then simulate this two-RAD DLRM example design following these steps: | ||
|
||
|
||
1. Generate a DLRM test case using the provided compiler: | ||
|
||
.. code-block:: bash | ||
$ cd <rad_flow_root_dir>/rad-sim/example-designs/dlrm_two_rad/compiler | ||
$ python dlrm.py | ||
2. Run RAD-Sim simulation: | ||
|
||
.. code-block:: bash | ||
$ cd <rad_flow_root_dir>/rad-sim/build | ||
$ make run | ||
# Info: /OSCI/SystemC: Simulation stopped by user. | ||
# Simulation Cycles from main.cpp = 20390 | ||
# [100%] Built target run | ||
# dlrm_system.driver: Finished sending all inputs to embedding lookup module! | ||
# dlrm_system.dut.feature_interaction_inst: Got all memory responses at cycle 6113! | ||
# [==================================================] 100 % | ||
# Got 2048 output(s)! | ||
# Simulation PASSED! All outputs matching! | ||
# Simulated 19958 cycle(s) | ||
# Info: /OSCI/SystemC: Simulation stopped by user. | ||
# Simulation Cycles from main.cpp = 19971 | ||
# [100%] Built target run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,8 @@ | |
radsim_knobs | ||
__pycache__ | ||
|
||
test/*.xml | ||
test/*.xml | ||
*.cmake | ||
*.a | ||
CMakeFiles | ||
MakeFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
config rad1: | ||
dram: | ||
num_controllers: 4 | ||
clk_periods: [3.32, 3.32, 2.0, 2.0] | ||
queue_sizes: [64, 64, 64, 64] | ||
config_files: ['DDR4_8Gb_x16_2400', 'DDR4_8Gb_x16_2400', 'HBM2_8Gb_x128', 'HBM2_8Gb_x128'] | ||
|
||
design: | ||
name: 'dlrm_two_rad' | ||
noc_placement: ['dlrm_two_rad.place'] | ||
clk_periods: [5.0, 2.0, 3.32, 1.5] | ||
|
||
config anotherconfig: | ||
dram: | ||
num_controllers: 4 | ||
clk_periods: [3.32, 3.32, 2.0, 2.0] | ||
queue_sizes: [64, 64, 64, 64] | ||
config_files: ['DDR4_8Gb_x16_2400', 'DDR4_8Gb_x16_2400', 'HBM2_8Gb_x128', 'HBM2_8Gb_x128'] | ||
|
||
design: | ||
name: 'dlrm_two_rad' | ||
noc_placement: ['dlrm_two_rad.place'] | ||
clk_periods: [5.0, 2.0, 3.32, 1.5] | ||
|
||
noc: | ||
type: ['2d'] | ||
num_nocs: 1 | ||
clk_period: [1.0] | ||
payload_width: [82] | ||
topology: ['mesh'] | ||
dim_x: [10] | ||
dim_y: [10] | ||
routing_func: ['dim_order'] | ||
vcs: [5] | ||
vc_buffer_size: [16] | ||
output_buffer_size: [8] | ||
num_packet_types: [5] | ||
router_uarch: ['iq'] | ||
vc_allocator: ['islip'] | ||
sw_allocator: ['islip'] | ||
credit_delay: [1] | ||
routing_delay: [1] | ||
vc_alloc_delay: [1] | ||
sw_alloc_delay: [1] | ||
|
||
noc_adapters: | ||
clk_period: [1.25] | ||
fifo_size: [16] | ||
obuff_size: [2] | ||
in_arbiter: ['fixed_rr'] | ||
out_arbiter: ['priority_rr'] | ||
vc_mapping: ['direct'] | ||
|
||
cluster: | ||
sim_driver_period: 5.0 | ||
telemetry_log_verbosity: 2 | ||
telemetry_traces: ['Embedding LU', 'Mem0', 'Mem1', 'Mem2', 'Mem3', 'Feature Inter.', 'MVM first', 'MVM last'] | ||
num_rads: 2 | ||
cluster_configs: ['rad1', 'anotherconfig'] | ||
cluster_topology: 'all-to-all' | ||
inter_rad_latency: 2100 | ||
inter_rad_bw: 102.4 | ||
inter_rad_fifo_num_slots: 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
find_package(SystemCLanguage CONFIG REQUIRED) | ||
|
||
add_subdirectory(${DESIGN}) | ||
FOREACH(DESIGN_NAME ${DESIGN_NAMES}) | ||
MESSAGE("<<${DESIGN_NAME}>>") | ||
add_subdirectory(${DESIGN_NAME}) | ||
ENDFOREACH() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CMakeFiles/ | ||
Makefile | ||
CMakeCache.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.