Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing Element consume frequency #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config_examples/256_12h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2

# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/256_16h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/256_16h_4channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/256_4h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/256_4h_2channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/256_8h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/article.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 3

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/configWirelessCore2CoreBfly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# DELTA
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# DELTA
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_configBaseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# DELTA
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_configBfly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# DELTA
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_configMesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_configMeshNoHUB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# DELTA
Expand Down
8 changes: 8 additions & 0 deletions config_examples/default_configOmega.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/multi_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

# Routing algorithms:
# XY
# WEST_FIRST
Expand Down
8 changes: 8 additions & 0 deletions config_examples/testdelta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

routing_algorithm: DELTA
routing_table_filename: ""

Expand Down
8 changes: 8 additions & 0 deletions config_examples/testdelta_hops_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

routing_algorithm: DELTA
routing_table_filename: ""

Expand Down
8 changes: 8 additions & 0 deletions config_examples/testdelta_hops_16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

routing_algorithm: DELTA
routing_table_filename: ""

Expand Down
8 changes: 8 additions & 0 deletions config_examples/testdelta_hops_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ r2h_link_length: 2.0
r2r_link_length: 1.0
n_virtual_channels: 1

# pe input buffer size
pe_rx_buffer_size: 1
# how often does PE process a batch of flits (eg. 4 = once
# every four cycles)
processing_frequency: 1
# how many flits are processed in a batch
processing_size: 1

routing_algorithm: DELTA
routing_table_filename: ""

Expand Down
14 changes: 14 additions & 0 deletions src/ConfigurationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ void loadConfiguration() {
GlobalParams::detailed = readParam<bool>(config, "detailed");
GlobalParams::dyad_threshold = readParam<double>(config, "dyad_threshold");
GlobalParams::max_volume_to_be_drained = readParam<unsigned int>(config, "max_volume_to_be_drained");
GlobalParams::processing_frequency = readParam<int>(config, "processing_frequency");
GlobalParams::pe_rx_buffer_size = readParam<int>(config, "pe_rx_buffer_size");
GlobalParams::processing_size = readParam<int>(config, "processing_size");
//GlobalParams::hotspots;
GlobalParams::show_buffer_stats = readParam<bool>(config, "show_buffer_stats");
GlobalParams::use_winoc = readParam<bool>(config, "use_winoc");
Expand Down Expand Up @@ -247,6 +250,9 @@ void showHelp(char selfname[])
<< "\t\t\t\tbeen delivered" << endl
<< "\t-asciimonitor\t\tShow status of the network while running (experimental)" << endl
<< "\t-sim N\t\t\tRun for the specified simulation time [cycles]" << endl
<< "\t-pe_rx_buffer_size N\t\t\tSets PE internal receive buffer size (default 1)" << endl
<< "\t-processing_frequency N\t\t\tSets the frequency at which PEs consume packet(s) (default 1 - every cycle)" << endl
<< "\t-processing_size N\t\t\tSets how many flits does a PE consume at a time (default 1 - one flit)" << endl
<< endl
<< "If you find this program useful please don't forget to mention in your paper Maurizio Palesi <[email protected]>" << endl
<< "If you find this program useless please feel free to complain with Davide Patti <[email protected]>" << endl
Expand Down Expand Up @@ -486,6 +492,14 @@ void parseCmdLine(int arg_num, char *arg_vet[])
setBufferAntenna(atoi(arg_vet[++i]));
else if (!strcmp(arg_vet[i], "-vc"))
GlobalParams::n_virtual_channels = (atoi(arg_vet[++i]));
//-----------------------EXTRA------------------------/
else if (!strcmp(arg_vet[i], "-pe_rx_buffer_size"))
GlobalParams::pe_rx_buffer_size = (atoi(arg_vet[++i]));
else if (!strcmp(arg_vet[i], "-processing_frequency"))
GlobalParams::processing_frequency = (atoi(arg_vet[++i]));
else if (!strcmp(arg_vet[i], "-processing_size"))
GlobalParams::processing_size = (atoi(arg_vet[++i]));
//-----------------------EXTRA------------------------/
else if (!strcmp(arg_vet[i], "-flit"))
GlobalParams::flit_size = atoi(arg_vet[++i]);
else if (!strcmp(arg_vet[i], "-winoc"))
Expand Down
3 changes: 3 additions & 0 deletions src/GlobalParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ int GlobalParams::buffer_depth;
int GlobalParams::flit_size;
int GlobalParams::min_packet_size;
int GlobalParams::max_packet_size;
int GlobalParams::pe_rx_buffer_size;
int GlobalParams::processing_frequency;
int GlobalParams::processing_size;
string GlobalParams::routing_algorithm;
string GlobalParams::routing_table_filename;
string GlobalParams::selection_strategy;
Expand Down
3 changes: 3 additions & 0 deletions src/GlobalParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ struct GlobalParams {
static int flit_size;
static int min_packet_size;
static int max_packet_size;
static int processing_frequency;
static int processing_size;
static int pe_rx_buffer_size;
static string routing_algorithm;
static string routing_table_filename;
static string selection_strategy;
Expand Down
Loading