gpu-compute: Reuse RP list in GPU_VIPER (#1530)

It is safer to reuse the dynamic list than manually listing all possible
replacement policies.

---------

Signed-off-by: odanrc <odanrc@yahoo.com.br>
This commit is contained in:
Daniel Carvalho
2024-09-09 13:18:01 -03:00
committed by GitHub
parent 4d6e968b04
commit 51863d322f
3 changed files with 10 additions and 28 deletions

View File

@@ -50,6 +50,7 @@ from common import (
FileSystemConfig,
GPUTLBConfig,
GPUTLBOptions,
ObjectList,
Options,
Simulation,
)
@@ -393,6 +394,7 @@ parser.add_argument(
"--tcp-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for tcp",
)
@@ -400,6 +402,7 @@ parser.add_argument(
"--tcc-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for tcc",
)
@@ -408,6 +411,7 @@ parser.add_argument(
"--sqc-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for sqc",
)

View File

@@ -199,6 +199,7 @@ def addRunFSOptions(parser):
"--tcp-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for tcp",
)
@@ -206,6 +207,7 @@ def addRunFSOptions(parser):
"--tcc-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for tcc",
)
@@ -214,6 +216,7 @@ def addRunFSOptions(parser):
"--sqc-rp",
type=str,
default="TreePLRURP",
choices=ObjectList.rp_list.get_names(),
help="cache replacement policy" "policy for sqc",
)