stdlib,configs: Adding a config to run NPB using stdlib.

This change adds a config file to execute NPB benchmarks using
gem5 stdlib. Also, it adds a new test for the same.

Signed-off-by: Kaustav Goswami <kggoswami@ucdavis.edu>
Change-Id: I527b7d12be7ab43e61dde507095ebf9fa4b44867
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52964
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Kaustav Goswami
2021-11-18 16:40:33 -08:00
parent 1f88d699f1
commit 84cd82f139
2 changed files with 360 additions and 1 deletions

View File

@@ -103,7 +103,34 @@ if os.access("/dev/kvm", mode=os.R_OK | os.W_OK):
"gem5_library",
"x86-parsec-benchmarks.py",
),
config_args=["--benchmark","blackscholes", "--size","simsmall"],
config_args=["--benchmark","blackscholes","--size","simsmall"],
valid_isas=(constants.x86_tag,),
protocol="MESI_Two_Level",
valid_hosts=constants.supported_hosts,
length=constants.long_tag,
)
if os.access("/dev/kvm", mode=os.R_OK | os.W_OK):
# The x86-npb-benchmarks uses KVM cores, this test will therefore only be
# run on systems that support KVM.
gem5_verify_config(
name="test-gem5-library-example-x86-npb-benchmarks",
fixtures=(),
verifiers=(),
config=joinpath(
config.base_dir,
"configs",
"example",
"gem5_library",
"x86-npb-benchmarks.py",
),
config_args=["--benchmark",
"bt",
"--size",
"A",
"--maxinsts",
"5000000000"
],
valid_isas=(constants.x86_tag,),
protocol="MESI_Two_Level",
valid_hosts=constants.supported_hosts,