Getting an error when trying to run parsec benchmark

470 views
Skip to first unread message

Dan Yee Ming Chung

unread,
Feb 21, 2017, 9:12:09 PM2/21/17
to Sniper simulator
Greetings,

I am trying to run a simulation on x264 benchmarks from parsec-2.1 using the following commands:


yee@yee:~/sniper-6.1/benchmarks$ sudo ./run-sniper -n 2 -d /sniper-6.1/output_test -c nehalem.cfg --roi --viz --power --no-cache-warming --benchmarks=parsec-x264-small-2

but I get error shown below:

[app0] [PARSEC] Benchmarks to run: x264
[app0]
[app0] [PARSEC] [========== Running benchmark x264 ==========]
[app0] [PARSEC] Setting up run directory.
[app0] [PARSEC] Unpacking benchmark input 'simsmall'.
[app0] eledream_640x360_8.y4m
[app0] [PARSEC] Running '/home/yee/sniper-6.1/record-trace --routine-tracing -o /tmp/tmp8L_EPS/run_benchmarks -e 1 -r 1 -s 0 --roi -- /home/yee/sniper-6.1/benchmarks/parsec/parsec-2.1/pkgs/apps/x264/inst/amd64-linux.gcc-sniper/bin/x264 --quiet --qp 20 --partitions b8x8,i4x4 --ref 5 --direct auto --b-pyramid --weightb --mixed-refs --no-fast-pskip --me umh --subme 7 --analyse b8x8,i4x4 --threads 2 -o eledream.264 eledream_640x360_8.y4m':
[app0] [PARSEC] [---------- Beginning of output ----------]
[SNIPER] Start
Executing Python script /sniper-6.1/output_test/sim.scripts.py
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using SIFT/trace-driven frontend
[SNIPER] Running full application in DETAILED mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
[SNIPER] Setting instrumentation mode to DETAILED
[app0] PARSEC Benchmark Suite Version 2.1
[app0] [HOOKS] PARSEC Hooks Version 1.2
0          [ 4606]  [ 0]  [micro_op_performance: 347]  *ERROR* Expected to find a branch here.
[app0] [SIFT_RECORDER] sift_writer.cc:550: Sift::Mode Sift::Writer::Sync(): Assertion `!response->fail()' failed.
[SNIPER] End
[SNIPER] Elapsed time: 1.16 seconds
[SNIPER] Running McPAT
Traceback (most recent call last):
  File "/home/yee/sniper-6.1/tools/mcpat.py", line 1299, in <module>
    main(jobid = jobid, resultsdir = resultsdir, powertype = powertype, config = config, outputfile = outputfile, no_graph = no_graph, print_stack = not no_text, partial = partial)
  File "/home/yee/sniper-6.1/tools/mcpat.py", line 130, in main
    results = sniper_lib.get_results(jobid, resultsdir, partial = partial)
  File "/home/yee/sniper-6.1/tools/sniper_lib.py", line 47, in get_results
    results = parse_results_from_dir(resultsdir, partial = partial, metrics = metrics)
  File "/home/yee/sniper-6.1/tools/sniper_lib.py", line 179, in parse_results_from_dir
    results += stats.parse_stats((k1, k2), ncores, metrics = metrics)
  File "/home/yee/sniper-6.1/tools/sniper_stats.py", line 8, in parse_stats
    v2 = self.read_snapshot(k2, metrics = metrics)
  File "/home/yee/sniper-6.1/tools/sniper_stats_sqlite.py", line 44, in read_snapshot
    raise ValueError('Invalid prefix %s' % prefix)
ValueError: Invalid prefix roi-end
[SNIPER] Generating visualization in viz/
Traceback (most recent call last):
  File "/home/yee/sniper-6.1/tools/viz/viz.py", line 142, in <module>
    if '2' in levels: level2.createJSONData(defaultinterval, defaultnum_intervals, interval, num_intervals, resultsdir, outputdir, title, use_mcpat, verbose = verbose)
  File "/home/yee/sniper-6.1/tools/viz/level2.py", line 497, in createJSONData
    collectCPIStackDataFIC(verbose = verbose, requested_cores_list = requested_cores_list)
  File "/home/yee/sniper-6.1/tools/viz/level2.py", line 93, in collectCPIStackDataFIC
    groupedintervals = groupIntervalsOnInstructionCount(getTotalInstructionCount()/num_intervals, verbose)
  File "/home/yee/sniper-6.1/tools/viz/level2.py", line 438, in getTotalInstructionCount
    results = sniper_lib.get_results(config = config, stats = stats, metrics = ("performance_model.instruction_count",))
  File "/home/yee/sniper-6.1/tools/sniper_lib.py", line 51, in get_results
    results = stats.parse_stats(partial or ('roi-begin', 'roi-end'), int(config['general/total_cores']), metrics = metrics)
  File "/home/yee/sniper-6.1/tools/sniper_stats.py", line 8, in parse_stats
    v2 = self.read_snapshot(k2, metrics = metrics)
  File "/home/yee/sniper-6.1/tools/sniper_stats_sqlite.py", line 44, in read_snapshot
    raise ValueError('Invalid prefix %s' % prefix)
ValueError: Invalid prefix roi-end
[app0] Pin app terminated abnormally due to signal 6.
[app0] [PARSEC] [---------- End of output ----------]
[app0] [PARSEC] Done.


Now, based on the error (highlighted by red), I think it is missing roi code in the precompiled binary but still not sure. Is there any solution?
Currently, I am using an Intel Pentium G2020 with 16 GB of ram with Ubuntu 14.04.

Thank you.

Dan Yee Ming Chung

unread,
Feb 22, 2017, 1:23:27 AM2/22/17
to Sniper simulator
Hi,

I have remake Sniper by following the tutorial at here :
https://groups.google.com/forum/#!topic/snipersim/7WJ1VR6a3zI

It is now working. I think making the parsec benchmarks with new version of perl is the benchmark runs with error.




RC KKK

unread,
Apr 23, 2020, 1:55:56 AM4/23/20
to Sniper simulator
Great, thanks.
Reply all
Reply to author
Forward
0 new messages