diff options
| author | tgrogers <[email protected]> | 2018-04-23 11:48:26 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2018-04-23 11:48:26 -0400 |
| commit | de8116a864dd615a06bec4f68dac136dacf3e8ca (patch) | |
| tree | a98b7e7918eac447f8dd63c341a3526a92ae1016 | |
| parent | c18b3f717449eb8c9dabe7a6036972d4c60c8f45 (diff) | |
| parent | 3511e88e578bd30ccb4cec14f536a12e10d10c98 (diff) | |
Merge branch 'dev-purdue-integration' of https://github.rcac.purdue.edu/TimRogersGroup/gpgpu-sim_distribution into dev-purdue-integration
| -rw-r--r-- | src/gpgpu-sim/mem_latency_stat.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpgpu-sim/mem_latency_stat.cc b/src/gpgpu-sim/mem_latency_stat.cc index 35d6d84..c5452b9 100644 --- a/src/gpgpu-sim/mem_latency_stat.cc +++ b/src/gpgpu-sim/mem_latency_stat.cc @@ -230,7 +230,9 @@ void memory_stats_t::memlatstat_print( unsigned n_mem, unsigned gpu_mem_n_bk ) if (num_mfs) { printf("averagemflatency = %lld \n", mf_total_lat/num_mfs); printf("avg_icnt2mem_latency = %lld \n", tot_icnt2mem_latency/num_mfs); - printf("avg_mrq_latency = %lld \n", tot_mrq_latency/tot_mrq_num); + if(tot_mrq_num) + printf("avg_mrq_latency = %lld \n", tot_mrq_latency/tot_mrq_num); + printf("avg_icnt2sh_latency = %lld \n", tot_icnt2sh_latency/num_mfs); } printf("mrq_lat_table:"); |
