diff options
| author | Tim Rogers <[email protected]> | 2012-08-21 18:01:56 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:48:54 -0700 |
| commit | bb601822351584a4e81dbb2301a01b03b623f09e (patch) | |
| tree | 406ec6bf1ffbb7adcf071ba720db0e93382578bf | |
| parent | bc96229ad220fbb0bda1354a699efc41783f4f27 (diff) | |
Two memory errors reported by the valgrind build
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13819]
| -rw-r--r-- | src/gpgpu-sim/dram.cc | 1 | ||||
| -rw-r--r-- | src/gpgpu-sim/mem_latency_stat.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc index 7571f02..a173a52 100644 --- a/src/gpgpu-sim/dram.cc +++ b/src/gpgpu-sim/dram.cc @@ -92,6 +92,7 @@ dram_t::dram_t( unsigned int partition_id, const struct memory_config *config, m max_mrqs_temp = 0; bwutil = 0; max_mrqs = 0; + ave_mrqs = 0; for (unsigned i=0;i<10;i++) { dram_util_bins[i]=0; diff --git a/src/gpgpu-sim/mem_latency_stat.cc b/src/gpgpu-sim/mem_latency_stat.cc index 8f04dee..aed76aa 100644 --- a/src/gpgpu-sim/mem_latency_stat.cc +++ b/src/gpgpu-sim/mem_latency_stat.cc @@ -434,7 +434,7 @@ void memory_stats_t::memlatstat_print( unsigned n_mem, unsigned gpu_mem_n_bk ) printf("\nNumber of Memory Banks Accessed per Memory Operation per Warp (from 0):\n"); unsigned long long accum_MCBs_accessed = 0; unsigned long long tot_mem_ops_per_warp = 0; - for (i=0;i<= n_mem*gpu_mem_n_bk ; i++ ) { + for (i=0;i< n_mem*gpu_mem_n_bk ; i++ ) { accum_MCBs_accessed += i*num_MCBs_accessed[i]; tot_mem_ops_per_warp += num_MCBs_accessed[i]; printf("%d\t", num_MCBs_accessed[i]); |
