diff options
| author | Timothy G Rogers <[email protected]> | 2018-04-18 17:41:29 -0400 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2018-04-18 17:41:29 -0400 |
| commit | 3511e88e578bd30ccb4cec14f536a12e10d10c98 (patch) | |
| tree | b0b2c4d1720609648673b2dcefb021c0077598c6 /src/gpgpu-sim/mem_latency_stat.cc | |
| parent | b61a26eb163565cce292f7a2400b5fd82f3d2d10 (diff) | |
| parent | ddf9da221c3e14e1e4204aba3fdaa59bca917ec6 (diff) | |
Merge pull request #18 from abdallm/dev-purdue-integration
Dev purdue integration
Diffstat (limited to 'src/gpgpu-sim/mem_latency_stat.cc')
| -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:"); |
