From 7934dfea8a6f44f592866414189970ef9ff994d6 Mon Sep 17 00:00:00 2001 From: WilliamMTK Date: Sat, 15 Feb 2025 13:03:57 -0500 Subject: fix_cache_string: update cache config help text (#76) * fix_cache_string: update cache config help text * Automated Format --------- Co-authored-by: purdue-jenkins Co-authored-by: Tim Rogers --- src/gpgpu-sim/gpu-sim.cc | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 55d70d1..65462cc 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -247,12 +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 " - " {::,:::,::,}", - "64:128:8,L:B:m:N,A:16:4,4"); + 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"); @@ -344,17 +344,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 " - " {::,:::,::,} ", - "4:256:4,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: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"); @@ -374,14 +375,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}", + " {:::,::<" + "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}", + " {:::,::<" + "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 " -- cgit v1.3