diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-12-20 20:40:54 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:23 -0700 |
| commit | 9333cfbf261666ac2a3d40b712b6cbb3346d8c00 (patch) | |
| tree | b6b14f3636fb4f01171965a6fbff2cf215ff78db /src/gpuwattch/gpgpu_sim_wrapper.cc | |
| parent | fecd769d1e7813b6cf962218208810049e2ad777 (diff) | |
fixing more bugs in interconnect stats, simt_to_mem related stats were wrongly allocated and not initialized
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14856]
Diffstat (limited to 'src/gpuwattch/gpgpu_sim_wrapper.cc')
| -rw-r--r-- | src/gpuwattch/gpgpu_sim_wrapper.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gpuwattch/gpgpu_sim_wrapper.cc b/src/gpuwattch/gpgpu_sim_wrapper.cc index adbd03c..2792da0 100644 --- a/src/gpuwattch/gpgpu_sim_wrapper.cc +++ b/src/gpuwattch/gpgpu_sim_wrapper.cc @@ -107,16 +107,16 @@ gpgpu_sim_wrapper::gpgpu_sim_wrapper( bool power_simulation_enabled, char* xmlfi num_pwr_cmps=NUM_COMPONENTS_MODELLED; num_per_counts=NUM_PERFORMANCE_COUNTERS; pavg=0; - perf_count=(double *)calloc(100,sizeof(double)); - initpower_coeff=(double *)calloc(100,sizeof(double)); - effpower_coeff=(double *)calloc(100,sizeof(double)); - pwr_cmp=(double *)calloc(100,sizeof(double)); - pwr_cmp_avg=(double *)calloc(100,sizeof(double)); - pwr_cmp_min=(double *)calloc(100,sizeof(double)); - pwr_cmp_max=(double *)calloc(100,sizeof(double)); - perf_count_avg=(double *)calloc(100,sizeof(double)); - perf_count_min=(double *)calloc(100,sizeof(double)); - perf_count_max=(double *)calloc(100,sizeof(double)); + perf_count=(double *)calloc(num_per_counts,sizeof(double)); + initpower_coeff=(double *)calloc(num_per_counts,sizeof(double)); + effpower_coeff=(double *)calloc(num_per_counts,sizeof(double)); + perf_count_avg=(double *)calloc(num_per_counts,sizeof(double)); + perf_count_min=(double *)calloc(num_per_counts,sizeof(double)); + perf_count_max=(double *)calloc(num_per_counts,sizeof(double)); + pwr_cmp=(double *)calloc(num_pwr_cmps,sizeof(double)); + pwr_cmp_avg=(double *)calloc(num_pwr_cmps,sizeof(double)); + pwr_cmp_min=(double *)calloc(num_pwr_cmps,sizeof(double)); + pwr_cmp_max=(double *)calloc(num_pwr_cmps,sizeof(double)); const_dynamic_power=0; gpu_min_power=0; gpu_tot_min_power=0; |
