diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index 95ca2df0ad..d686ecb919 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -380,15 +380,27 @@ parser.add_argument( help="Gfx version for gpuNote: gfx902 is not fully supported by ROCm", ) -parser.add_argument("--tcp-rp", type=str, default="TreePLRURP", help="cache replacement policy" - "policy for tcp") +parser.add_argument( + "--tcp-rp", + type=str, + default="TreePLRURP", + help="cache replacement policy" "policy for tcp", +) -parser.add_argument("--tcc-rp", type=str, default="TreePLRURP", help="cache replacement policy" - "policy for tcc") +parser.add_argument( + "--tcc-rp", + type=str, + default="TreePLRURP", + help="cache replacement policy" "policy for tcc", +) # sqc rp both changes sqc rp and scalar cache rp -parser.add_argument("--sqc-rp", type=str, default="TreePLRURP", help="cache replacement policy" - "policy for sqc") +parser.add_argument( + "--sqc-rp", + type=str, + default="TreePLRURP", + help="cache replacement policy" "policy for sqc", +) Ruby.define_options(parser) @@ -880,9 +892,9 @@ gpu_port_idx = gpu_port_idx - args.num_cp * 2 token_port_idx = 0 for i in range(len(system.ruby._cpu_ports)): if isinstance(system.ruby._cpu_ports[i], VIPERCoalescer): - system.cpu[shader_idx].CUs[ - token_port_idx - ].gmTokenPort = system.ruby._cpu_ports[i].gmTokenPort + system.cpu[shader_idx].CUs[token_port_idx].gmTokenPort = ( + system.ruby._cpu_ports[i].gmTokenPort + ) token_port_idx += 1 wavefront_size = args.wf_size diff --git a/configs/ruby/GPU_VIPER.py b/configs/ruby/GPU_VIPER.py index 529ecac1b2..53db3d1382 100644 --- a/configs/ruby/GPU_VIPER.py +++ b/configs/ruby/GPU_VIPER.py @@ -1125,26 +1125,27 @@ def create_system( return (cpu_sequencers, dir_cntrl_nodes, mainCluster) + def RP_choose(test_name): - if test_name == 'TreePLRURP': + if test_name == "TreePLRURP": replacement_policy = TreePLRURP() - elif test_name == 'LRURP': + elif test_name == "LRURP": replacement_policy = LRURP() - elif test_name == 'FIFORP': + elif test_name == "FIFORP": replacement_policy = FIFORP() - elif test_name == 'LFURP': + elif test_name == "LFURP": replacement_policy = LFURP() - elif test_name == 'LIPRP': + elif test_name == "LIPRP": replacement_policy = LIPRP() - elif test_name == 'MRURP': + elif test_name == "MRURP": replacement_policy = MRURP() - elif test_name == 'NRURP': + elif test_name == "NRURP": replacement_policy = NRURP() - elif test_name == 'RRIPRP': + elif test_name == "RRIPRP": replacement_policy = RRIPRP() - elif test_name == 'SecondChanceRP': + elif test_name == "SecondChanceRP": replacement_policy = SecondChanceRP() - elif test_name == 'SHiPMemRP': + elif test_name == "SHiPMemRP": replacement_policy = SHiPMemRP() return replacement_policy