From f74ce1a53d3d39254e4091a9d33812c853ba9031 Mon Sep 17 00:00:00 2001 From: Weili An Date: Wed, 4 Sep 2024 11:15:54 -0400 Subject: [PATCH 1/2] fix_cache_string: update cache config help text --- src/gpgpu-sim/gpu-sim.cc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 0c922bdb3..027340ee4 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -250,9 +250,8 @@ void memory_config::reg_options(class OptionParser *opp) { 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:B:m:N,A:16:4,4"); + " {:::,::::,::,:,", + "S:32:128:24,L:B:m:L:P,A:192:4,32:0,32"); option_parser_register(opp, "-gpgpu_cache:dl2_texture_only", OPT_BOOL, &m_L2_texure_only, "L2 cache used for texture only", "1"); @@ -344,14 +343,13 @@ void shader_core_config::reg_options(class OptionParser *opp) { 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:N,A:2:32,4"); + " {:::,::::,::,} ", + "N:64:128:16,L:R:f:N:L,S:2:48,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_l1_cache_write_ratio", OPT_UINT32, &m_L1D_config.m_wr_percent, "L1D write ratio", "0"); @@ -371,14 +369,12 @@ void shader_core_config::reg_options(class OptionParser *opp) { option_parser_register(opp, "-gpgpu_cache:dl1PrefL1", OPT_CSTR, &m_L1D_config.m_config_stringPrefL1, "per-shader L1 data cache config " - " {::,:::,::, | none}", + " {:::,::::,::,:, | none | none}", "none"); option_parser_register(opp, "-gpgpu_cache:dl1PrefShared", OPT_CSTR, &m_L1D_config.m_config_stringPrefShared, "per-shader L1 data cache config " - " {::,:::,::, | none}", + " {:::,::::,::,:, | none | none}", "none"); option_parser_register(opp, "-gpgpu_gmem_skip_L1D", OPT_BOOL, &gmem_skip_L1D, "global memory access skip L1D cache (implements " From 77d58da3a91afe1b50a6db712e54b095db58f0bc Mon Sep 17 00:00:00 2001 From: purdue-jenkins Date: Wed, 4 Sep 2024 11:38:33 -0400 Subject: [PATCH 2/2] Automated Format --- src/gpgpu-sim/gpu-sim.cc | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 027340ee4..3d3254a2e 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -247,11 +247,12 @@ void memory_config::reg_options(class OptionParser *opp) { option_parser_register(opp, "-l2_ideal", OPT_BOOL, &l2_ideal, "Use a ideal L2 cache that always hit", "0"); - option_parser_register(opp, "-gpgpu_cache:dl2", OPT_CSTR, - &m_L2_config.m_config_string, - "unified banked L2 data cache config " - " {:::,::::,::,:,", - "S:32:128:24,L:B:m:L:P,A:192:4,32:0,32"); + option_parser_register( + opp, "-gpgpu_cache:dl2", OPT_CSTR, &m_L2_config.m_config_string, + "unified banked L2 data cache config " + " {:::,::::,::,:,", + "S:32:128:24,L:B:m:L:P,A:192:4,32:0,32"); option_parser_register(opp, "-gpgpu_cache:dl2_texture_only", OPT_BOOL, &m_L2_texure_only, "L2 cache used for texture only", "1"); @@ -340,16 +341,18 @@ void shader_core_config::reg_options(class OptionParser *opp) { " {::,:::,::<" "merge>,} ", "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 " - " {:::,::::,::,} ", - "N:64:128:16,L:R:f:N:L,S:2:48,4"); + option_parser_register( + opp, "-gpgpu_cache:il1", OPT_CSTR, &m_L1I_config.m_config_string, + "shader L1 instruction cache config " + " {:::,::::,::,} ", + "N:64:128:16,L:R:f:N:L,S:2:48,4"); option_parser_register(opp, "-gpgpu_cache:dl1", OPT_CSTR, &m_L1D_config.m_config_string, "per-shader L1 data cache config " - " {:::,::::,::,:, | none}", + " {:::,::<" + "alloc>::,::,<" + "mq>:, | none}", "none"); option_parser_register(opp, "-gpgpu_l1_cache_write_ratio", OPT_UINT32, &m_L1D_config.m_wr_percent, "L1D write ratio", "0"); @@ -369,12 +372,16 @@ void shader_core_config::reg_options(class OptionParser *opp) { option_parser_register(opp, "-gpgpu_cache:dl1PrefL1", OPT_CSTR, &m_L1D_config.m_config_stringPrefL1, "per-shader L1 data cache config " - " {:::,::::,::,:, | none | none}", + " {:::,::<" + "alloc>::,::,<" + "mq>:, | none | none}", "none"); option_parser_register(opp, "-gpgpu_cache:dl1PrefShared", OPT_CSTR, &m_L1D_config.m_config_stringPrefShared, "per-shader L1 data cache config " - " {:::,::::,::,:, | none | none}", + " {:::,::<" + "alloc>::,::,<" + "mq>:, | none | none}", "none"); option_parser_register(opp, "-gpgpu_gmem_skip_L1D", OPT_BOOL, &gmem_skip_L1D, "global memory access skip L1D cache (implements "