stdlib, resources: Addressed requested changes
Change-Id: I22abdc3bdcdde52301ed10cb3113e8925159c245 Co-authored-by: Kunal Pai <kunpai@users.noreply.github.com>
This commit is contained in:
@@ -50,15 +50,9 @@ microbenchmarks = obtain_resource("riscv-vertical-microbenchmarks")
|
||||
# list all the microbenchmarks present in the suite
|
||||
print("Microbenchmarks present in the suite:")
|
||||
print("====================================")
|
||||
for (
|
||||
id,
|
||||
resource_version,
|
||||
input_group,
|
||||
workload,
|
||||
) in microbenchmarks.get_all_workloads():
|
||||
print(f"Workload ID: {id}")
|
||||
print(f"Workload Version: {resource_version}")
|
||||
print(f"Workload Input Groups: {input_group}")
|
||||
for workload in microbenchmarks:
|
||||
print(f"Workload ID: {workload.get_id()}")
|
||||
print(f"Workload Version: {workload.get_resource_version()}")
|
||||
print(f"WorkloadResource Object: {workload}")
|
||||
print("====================================")
|
||||
|
||||
|
||||
@@ -980,7 +980,6 @@ def obtain_resource(
|
||||
# Once we know what AbstractResource subclass we are using, we create it.
|
||||
# The fields in the JSON object are assumed to map like-for-like to the
|
||||
# subclass contructor, so we can pass the resource_json map directly.
|
||||
|
||||
return resource_class(local_path=to_path, **resource_json)
|
||||
|
||||
|
||||
|
||||
@@ -334,6 +334,23 @@ gem5_verify_config(
|
||||
length=constants.very_long_tag,
|
||||
)
|
||||
|
||||
gem5_verify_config(
|
||||
name="test-gem5-library-example-riscvmatched-microbenchmark-suite",
|
||||
fixtures=(),
|
||||
verifiers=(),
|
||||
config=joinpath(
|
||||
config.base_dir,
|
||||
"configs",
|
||||
"example",
|
||||
"gem5_library",
|
||||
"riscvmatched-microbenchmark-suite.py",
|
||||
),
|
||||
config_args=[],
|
||||
valid_isas=(constants.all_compiled_tag,),
|
||||
valid_hosts=constants.supported_hosts,
|
||||
length=constants.long_tag,
|
||||
)
|
||||
|
||||
# The LoopPoint-Checkpointing feature is still under development, therefore
|
||||
# these tests are temporarily disabled until this feature is complete.#
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class CustomSuiteResourceTestSuite(unittest.TestCase):
|
||||
cls.workload1 = obtain_resource("simple-workload-1")
|
||||
cls.workload2 = obtain_resource("simple-workload-2")
|
||||
cls.SuiteResource = SuiteResource(
|
||||
workload_obj_list={cls.workload1: set(), cls.workload2: set()}
|
||||
workloads={cls.workload1: set(), cls.workload2: set()}
|
||||
)
|
||||
|
||||
@patch(
|
||||
|
||||
Reference in New Issue
Block a user