summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristin David Bose <[email protected]>2024-10-01 14:09:31 -0700
committerGitHub <[email protected]>2024-10-01 21:09:31 +0000
commit980eb88b547dad53b2343cc90ed66c4dec48dea3 (patch)
tree39dfd4279e6f9460241b427a4be5395feb8e353c
parent38b4df5653ecbd9907a3d39b125640cd4fb7d012 (diff)
Change to calculate L2 BW if core freq and icnt freq are not the same (#78)
-rw-r--r--src/gpgpu-sim/gpu-sim.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 0c922bd..5bd4180 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -1445,13 +1445,13 @@ void gpgpu_sim::gpu_print_stat(unsigned long long streamID) {
// %lld\n", partiton_replys_in_parallel_total );
printf("L2_BW = %12.4f GB/Sec\n",
((float)(partiton_replys_in_parallel * 32) /
- (gpu_sim_cycle * m_config.icnt_period)) /
+ (gpu_sim_cycle * m_config.core_period)) /
1000000000);
printf("L2_BW_total = %12.4f GB/Sec\n",
((float)((partiton_replys_in_parallel +
partiton_replys_in_parallel_total) *
32) /
- ((gpu_tot_sim_cycle + gpu_sim_cycle) * m_config.icnt_period)) /
+ ((gpu_tot_sim_cycle + gpu_sim_cycle) * m_config.core_period)) /
1000000000);
time_t curr_time;