Commit 3b80180d authored by Misbah Mubarak's avatar Misbah Mubarak

More updates to documentation, changes to dragonfly sample read utility

parent 40525c88
...@@ -91,9 +91,11 @@ mpirun -np 4 ./src/network-workloads//model-net-mpi-replay --sync=3 ...@@ -91,9 +91,11 @@ mpirun -np 4 ./src/network-workloads//model-net-mpi-replay --sync=3
Runtime options can be used to enable time-stepped series data of simulation Runtime options can be used to enable time-stepped series data of simulation
with multiple workloads: with multiple workloads:
--enable_sampling = 1 [Turns on sampling after a specific simulated interval. --enable_sampling = 1 [Enables sampling of network & workload statistics after a specific simulated interval.
Default sampling interval is 5 millisec and default sampling end time is 3 Default sampling interval is 5 millisec and default sampling end time is 3
secs.] secs. These values can be adjusted at runtime using --sampling_interval and
--sampling_end_time options.]
--lp-io-dir-dir-name [Turns on end of simulation statistics for dragonfly network model] --lp-io-dir-dir-name [Turns on end of simulation statistics for dragonfly network model]
......
...@@ -33,6 +33,7 @@ struct dfly_rtr_sample ...@@ -33,6 +33,7 @@ struct dfly_rtr_sample
struct mpi_workload_sample struct mpi_workload_sample
{ {
int nw_id; int nw_id;
int app_id;
unsigned long num_sends_sample; unsigned long num_sends_sample;
unsigned long num_bytes_sample; unsigned long num_bytes_sample;
unsigned long num_waits_sample; unsigned long num_waits_sample;
...@@ -169,7 +170,10 @@ int main( int argc, char** argv ) ...@@ -169,7 +170,10 @@ int main( int argc, char** argv )
fread(mpi_event_array, mpi_sample_sz, in_sz_mpi / mpi_sample_sz, pFile); fread(mpi_event_array, mpi_sample_sz, in_sz_mpi / mpi_sample_sz, pFile);
for(i = 0; i < in_sz_mpi / mpi_sample_sz; i++) for(i = 0; i < in_sz_mpi / mpi_sample_sz; i++)
{ {
fprintf(writeFile, "\n %ld %ld %ld %lf ", mpi_event_array[i].num_sends_sample, fprintf(writeFile, "\n %d %d %lu %lu %lu %lf ",
mpi_event_array[i].nw_id,
mpi_event_array[i].app_id,
mpi_event_array[i].num_sends_sample,
mpi_event_array[i].num_bytes_sample, mpi_event_array[i].num_bytes_sample,
mpi_event_array[i].num_waits_sample, mpi_event_array[i].num_waits_sample,
mpi_event_array[i].sample_end_time); mpi_event_array[i].sample_end_time);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment