From 95a508ff02436fa680aaf6841938eebc00e8e5b5 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Tue, 20 Mar 2012 15:00:10 -0800 Subject: 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] --- src/abstract_hardware_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.3