This patches does the following:
- Adds 'SimpointResource' which encapsulates Simpoint data and
functionality. It replaces the old 'gem5.util.simpoint.SimPoint'
class. Simpoints can be loaded from gem5-resources using the
`obtain_resource` function.
- Adds 'SimpointDirectoryResource'. This inherits form
'SimpointResource'. While 'SimpointResource' takes raw Simpoint data
via parameters, 'SimpointDirectoryResource' assumes the data exists
in files, in a directory.
- Updates the
"configs/example/gem5_library/checkpoints/simpoints-se-checkpoint.py"
and
"configs/example/gem5_library/checkpoints/simpoints-se-restory.py"
example files to utilize this new Simpoint resource classes.
**Note**: While the old "SimPoint" class
("src/python/gem5/util/simpoint.py") is marked as deprecated, it may be
difficult to utilize given updates to the APIs in the gem5 stdlib Cores
and Simulator modules.
Change-Id: I9bed5c643ffc735838c9f22a58c53547941010e7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67339
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
114 lines
4.3 KiB
JSON
114 lines
4.3 KiB
JSON
|
|
{
|
|
"version" : "develop",
|
|
"url_base" : "http://dist.gem5.org/dist/v22-1",
|
|
"previous-versions" : {
|
|
"develop" : "https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/resources.json?format=TEXT",
|
|
"21.2" : "http://resources.gem5.org/prev-resources-json/resources-21-2.json"
|
|
},
|
|
"resources": [
|
|
{
|
|
"type" : "kernel",
|
|
"name" : "kernel-example",
|
|
"documentation" : "kernel-example documentation.",
|
|
"architecture" : "RISCV",
|
|
"is_zipped" : false,
|
|
"md5sum" : "60a53c7d47d7057436bf4b9df707a841",
|
|
"url" : "{url_base}/kernels/x86/static/vmlinux-5.4.49",
|
|
"source" : "src/linux-kernel"
|
|
},
|
|
{
|
|
"type" : "disk-image",
|
|
"name" : "disk-image-example",
|
|
"documentation" : "disk-image documentation.",
|
|
"architecture" : "X86",
|
|
"is_zipped" : true,
|
|
"md5sum" : "90e363abf0ddf22eefa2c7c5c9391c49",
|
|
"url" : "{url_base}/images/x86/ubuntu-18-04/x86-ubuntu.img.gz",
|
|
"source" : "src/x86-ubuntu",
|
|
"root_partition": "1"
|
|
},
|
|
{
|
|
"type" : "binary",
|
|
"name" : "binary-example",
|
|
"documentation" : "binary-example documentation.",
|
|
"architecture" : "ARM",
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url" : "{url_base}/test-progs/hello/bin/arm/linux/hello64-static",
|
|
"source" : "src/simple"
|
|
},
|
|
{
|
|
"type" : "bootloader",
|
|
"name" : "bootloader-example",
|
|
"documentation" : "bootloader documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url" : "{url_base}/test-progs/hello/bin/arm/linux/hello64-static"
|
|
},
|
|
{
|
|
"type" : "checkpoint",
|
|
"name" : "checkpoint-example",
|
|
"documentation" : "checkpoint-example documentation.",
|
|
"architecture": "RISCV",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type" : "git",
|
|
"name" : "git-example",
|
|
"documentation" : null,
|
|
"is_zipped" : false,
|
|
"is_tar_archive" : true,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type" : "file",
|
|
"name" : "file-example",
|
|
"documentation" : null,
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"source" : null
|
|
},
|
|
{
|
|
"type" : "directory",
|
|
"name" : "directory-example",
|
|
"documentation" : "directory-example documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type": "simpoint-directory",
|
|
"name": "simpoint-directory-example",
|
|
"documentation": "simpoint directory documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3fcffe3956c8a95e3fb82e232e2b41fb",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/simpoints/x86-print-this-15000-simpoints-20221013.tar",
|
|
"simpoint_interval": 1000000,
|
|
"warmup_interval": 1000000,
|
|
"simpoint_file": "simpoint.simpt",
|
|
"weight_file": "simpoint.weight",
|
|
"workload_name": "Example Workload"
|
|
},
|
|
{
|
|
"type": "simpoint",
|
|
"name": "simpoint-example",
|
|
"documentation": "simpoint documentation.",
|
|
"simpoint_interval": 1000000,
|
|
"warmup_interval": 23445,
|
|
"simpoint_list" : [2,3,4,15],
|
|
"weight_list" : [0.1, 0.2, 0.4, 0.3]
|
|
}
|
|
]
|
|
}
|