resources: GAPBS resources clean up
* Clean up the config files.
* Fix minor typos in the README file.
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I42a5519bbe5c0245d143140f353f771b6b068ea8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5-resources/+/35815
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: Bobby R. Bruce <bbruce@ucdavis.edu>
diff --git a/src/gapbs/README.md b/src/gapbs/README.md
index c34b4f5..90b1c2e 100644
--- a/src/gapbs/README.md
+++ b/src/gapbs/README.md
@@ -1,5 +1,5 @@
# GAP Benchmark Suite (GAPBS) tests
-This document provides instructions to create a GAP Benchmarks Suite (GAPBS) disk image, which, along with provided configuration scripts, may be used to run GAPBS within gem5 simulations.
+This document provides instructions to create a GAP Benchmark Suite (GAPBS) disk image, which, along with provided configuration scripts, may be used to run GAPBS within gem5 simulations.
A pre-build disk image, for X86, can be found, gzipped, here: <http://dist.gem5.org/dist/v20-1/images/x86/ubuntu-18-04/gapbs.img.gz>.
@@ -41,9 +41,9 @@
**--benchmark** : The graph workload (`cc`, `bc`, `bfs`, `tc`, `pr`, `sssp`).
-**--synthetic** : Type of graph (if synthetic graph 1, if real world graph 0)
+**--synthetic** : Type of graph (if synthetic graph 1, if real world graph 0).
-**--graph** : Size of graph (if synthetic then number of nodes, else name of the graph )
+**--graph** : Size of graph (if synthetic then number of nodes, else name of the graph).
Example usage:
diff --git a/src/gapbs/configs/run_gapbs.py b/src/gapbs/configs/run_gapbs.py
index 4e27261..bb15d9e 100644
--- a/src/gapbs/configs/run_gapbs.py
+++ b/src/gapbs/configs/run_gapbs.py
@@ -86,21 +86,15 @@
cpu_type = args.cpu_type
num_cpus = int(args.num_cpus)
mem_sys = args.mem_sys
- benchmark_name =args.benchmark
+ benchmark_name = args.benchmark
benchmark_size = args.graph
synthetic = args.synthetic
-
-
if (mem_sys == "classic"):
system = MySystem(kernel, disk, cpu_type, num_cpus)
elif (mem_sys == "MI_example" or "MESI_Two_Level"):
system = MyRubySystem(kernel, disk, cpu_type, mem_sys, num_cpus)
-
-
- output_dir = os.path.join(m5.options.outdir, "speclogs")
-
# For workitems to work correctly
# This will cause the simulator to exit simulation when the first work
# item is reached and when the first work item is finished.