summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_latency_stat.cc
diff options
context:
space:
mode:
authorAyub Gubran <[email protected]>2013-02-11 20:05:03 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:04 -0700
commit687fa4c9e8e5b9e9ac60375b98d55daaf2d9c551 (patch)
tree168310bb0d2ccf0edbf8459c5982f894ea69bc18 /src/gpgpu-sim/mem_latency_stat.cc
parentc591d13a90aad7d99bb40aef9e44d6bfce0b74c0 (diff)
bug31
1. Renaming '-gpgpu_dram_sched_queue_size' to '-gpgpu_frfcfs_dram_sched_queue_size' 2. Updating the output not print that statistic out at all if the DRAM access scheduler is FIFO. 3. Adding "-gpgpu_dram_return_queue_size" option to specify the return queue size (defualt 1024). config files should take this change into account [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15227]
Diffstat (limited to 'src/gpgpu-sim/mem_latency_stat.cc')
-rw-r--r--src/gpgpu-sim/mem_latency_stat.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpgpu-sim/mem_latency_stat.cc b/src/gpgpu-sim/mem_latency_stat.cc
index b86c652..7324033 100644
--- a/src/gpgpu-sim/mem_latency_stat.cc
+++ b/src/gpgpu-sim/mem_latency_stat.cc
@@ -94,8 +94,8 @@ memory_stats_t::memory_stats_t( unsigned n_shader, const struct shader_core_conf
bankreads = (unsigned int***) calloc(n_shader, sizeof(unsigned int**));
bankwrites = (unsigned int***) calloc(n_shader, sizeof(unsigned int**));
num_MCBs_accessed = (unsigned int*) calloc(mem_config->m_n_mem*mem_config->nbk, sizeof(unsigned int));
- if (mem_config->gpgpu_dram_sched_queue_size) {
- position_of_mrq_chosen = (unsigned int*) calloc(mem_config->gpgpu_dram_sched_queue_size, sizeof(unsigned int));
+ if (mem_config->gpgpu_frfcfs_dram_sched_queue_size) {
+ position_of_mrq_chosen = (unsigned int*) calloc(mem_config->gpgpu_frfcfs_dram_sched_queue_size, sizeof(unsigned int));
} else
position_of_mrq_chosen = (unsigned int*) calloc(1024, sizeof(unsigned int));
for (i=0;i<n_shader ;i++ ) {
@@ -449,10 +449,10 @@ void memory_stats_t::memlatstat_print( unsigned n_mem, unsigned gpu_mem_n_bk )
printf("\nposition of mrq chosen\n");
- if (!m_memory_config->gpgpu_dram_sched_queue_size)
+ if (!m_memory_config->gpgpu_frfcfs_dram_sched_queue_size)
j = 1024;
else
- j = m_memory_config->gpgpu_dram_sched_queue_size;
+ j = m_memory_config->gpgpu_frfcfs_dram_sched_queue_size;
k=0;l=0;
for (i=0;i< j; i++ ) {
printf("%d\t", position_of_mrq_chosen[i]);