summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-03-20 15:00:10 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:04 -0700
commit95a508ff02436fa680aaf6841938eebc00e8e5b5 (patch)
treed630f3a354ca80760f7d9130752c575f0b691031
parentde4a22de2c00cc4c5aadd2a186c1e4a68cdfafe8 (diff)
Fix for bug 144. Now warp parts option is used in coalescing logic (before it was always hardcoded to 2).
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11742]
-rw-r--r--src/abstract_hardware_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc
index 6010bf6..9e476eb 100644
--- a/src/abstract_hardware_model.cc
+++ b/src/abstract_hardware_model.cc
@@ -302,7 +302,7 @@ void warp_inst_t::memory_coalescing_arch_13( bool is_write, mem_access_type acce
{
// see the CUDA manual where it discusses coalescing rules before reading this
unsigned segment_size = 0;
- unsigned warp_parts = 2;
+ unsigned warp_parts = m_config->mem_warp_parts;
switch( data_size ) {
case 1: segment_size = 32; break;
case 2: segment_size = 64; break;