summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2017-10-25 13:15:44 -0400
committerMahmoud <[email protected]>2017-10-25 13:15:44 -0400
commit50b7ac49a78948f61fa685d717de90feaa277b9b (patch)
tree668375bfa2f2427a850fa7e691d5ceae347a6491 /src/gpgpu-sim/gpu-sim.h
parent07b375cc0c0da2b8a8ca7263f11ecca8ebaf8fe9 (diff)
The commits includes:
1- REEAD/WERITE buffer for DRAM 2- Fixing FETCH_ON_WRITE cahce policy bug
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.h')
-rw-r--r--src/gpgpu-sim/gpu-sim.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h
index f379a17..197350b 100644
--- a/src/gpgpu-sim/gpu-sim.h
+++ b/src/gpgpu-sim/gpu-sim.h
@@ -214,6 +214,9 @@ struct memory_config {
m_valid = true;
icnt_flit_size = 32; // Default 32
+
+ sscanf(write_queue_size_opt,"%d:%d:%d",
+ &gpgpu_frfcfs_dram_write_queue_size,&write_high_watermark,&write_low_watermark);
}
void reg_options(class OptionParser * opp);
@@ -274,6 +277,12 @@ struct memory_config {
unsigned dram_bnk_indexing_policy;
unsigned dram_bnkgrp_indexing_policy;
bool dual_bus_interface;
+
+ bool seperate_write_queue_enabled;
+ char *write_queue_size_opt;
+ unsigned gpgpu_frfcfs_dram_write_queue_size;
+ unsigned write_high_watermark;
+ unsigned write_low_watermark;
};
// global counters and flags (please try not to add to this list!!!)