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:
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user