From 1ade3b340c72f65fe01735df0748e13d4c026998 Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Mon, 15 Oct 2012 14:49:25 -0800 Subject: - Fixing cache configuration groupings -> Now , , , - Fixing default configurations to match the new format and additonal parameters - Fixing Fermi's 48kB cache configuration [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14370] --- src/gpgpu-sim/gpu-cache.cc | 2 +- src/gpgpu-sim/gpu-cache.h | 8 ++++---- src/gpgpu-sim/gpu-sim.cc | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/gpgpu-sim') diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc index bc86b83..fc2d032 100644 --- a/src/gpgpu-sim/gpu-cache.cc +++ b/src/gpgpu-sim/gpu-cache.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2011, Tor M. Aamodt +// Copyright (c) 2009-2011, Tor M. Aamodt, Tayler Hetherington // The University of British Columbia // All rights reserved. // diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index bbf62b6..4516e34 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2011, Tor M. Aamodt +// Copyright (c) 2009-2011, Tor M. Aamodt, Tayler Hetherington // The University of British Columbia // All rights reserved. // @@ -131,9 +131,9 @@ public: assert( m_config_string ); char rp, wp, ap, mshr_type, wap; - int ntok = sscanf(m_config_string,"%u:%u:%u:%c:%c:%c:%c:%c:%u:%u:%u:%u", - &m_nset, &m_line_sz, &m_assoc, &rp, &wp, &ap, - &mshr_type, &wap, &m_mshr_entries,&m_mshr_max_merge, + int ntok = sscanf(m_config_string,"%u:%u:%u,%c:%c:%c:%c,%c:%u:%u,%u:%u", + &m_nset, &m_line_sz, &m_assoc, &rp, &wp, &ap, &wap, + &mshr_type, &m_mshr_entries,&m_mshr_max_merge, &m_miss_queue_size,&m_result_fifo_entries); if ( ntok < 10 ) { diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 6d9fa87..9c8d327 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -99,8 +99,8 @@ void memory_config::reg_options(class OptionParser * opp) "0"); option_parser_register(opp, "-gpgpu_cache:dl2", OPT_CSTR, &m_L2_config.m_config_string, "unified banked L2 data cache config " - " {:::::,::,}", - "64:128:8:L:R:m,A:16:4,4"); + " {::,:::,::,}", + "64:128:8,L:B:m:N,A:16:4,4"); option_parser_register(opp, "-gpgpu_cache:dl2_texture_only", OPT_BOOL, &m_L2_texure_only, "L2 cache used for texture only", "1"); @@ -147,19 +147,19 @@ void shader_core_config::reg_options(class OptionParser * opp) "1024:32"); option_parser_register(opp, "-gpgpu_tex_cache:l1", OPT_CSTR, &m_L1T_config.m_config_string, "per-shader L1 texture cache (READ-ONLY) config " - " {:::::,::,:}", - "8:128:5:L:R:m,F:128:4,128:2"); + " {::,:::,::,:}", + "8:128:5,L:R:m:N,F:128:4,128:2"); option_parser_register(opp, "-gpgpu_const_cache:l1", OPT_CSTR, &m_L1C_config.m_config_string, "per-shader L1 constant memory cache (READ-ONLY) config " - " {:::::,::,}", - "64:64:2:L:R:f,A:2:32,4" ); + " {::,:::,::,} ", + "64:64:2,L:R:f:N,A:2:32,4" ); option_parser_register(opp, "-gpgpu_cache:il1", OPT_CSTR, &m_L1I_config.m_config_string, "shader L1 instruction cache config " - " {:::::,::,}", - "4:256:4:L:R:f,A:2:32,4" ); + " {::,:::,::,} ", + "4:256:4,L:R:f:N,A:2:32,4" ); option_parser_register(opp, "-gpgpu_cache:dl1", OPT_CSTR, &m_L1D_config.m_config_string, "per-shader L1 data cache config " - " {:::::,::,|none}", + " {::,:::,::, | none}", "none" ); option_parser_register(opp, "-gpgpu_perfect_mem", OPT_BOOL, &gpgpu_perfect_mem, "enable perfect memory mode (no cache miss)", -- cgit v1.3