How to run sniper?

634 views
Skip to first unread message

akb2020

unread,
Mar 10, 2020, 3:08:58 AM3/10/20
to Sniper simulator
I have understood that this project is probably not actively maintained any more. Only hope is that existing users may kindly reply my question.

My question is after installing/building sniper and benchmark, how to run it.

I have found that there is one run-sniper inside the benchmark folder and in the sniper folder where I build sniper. I used the following command as per the sniper manual.

./run-sniper -p splash2-fft -i small -n 4 -c gainestown

It says "option -p not recognized"

Then I tried the following command.

./run-sniper -n 64 -c gainestown --benchmarks=parsec-blackscholes-test-1,parsec-bodytrack-test-1 --no-roi --sim-end=last

It says "option --benchmarks not recognized"

I want to add that I have already tested the fft example using "make run" without any problem.

If someone using sniper can answer my basic question that will be very helpful for me.

akb2020

unread,
Mar 10, 2020, 4:54:05 AM3/10/20
to Sniper simulator
I think that the command run-sniper should be run from the benchmark folder. In that case, I am getting the error that sniper is not compiled.

I have declared all the ROOT variables as per the document.

ahmad sedigh

unread,
Mar 10, 2020, 6:08:07 AM3/10/20
to Sniper simulator
Your commands are for benchmarks so they should be run in benchmarks root
In sniper root try this command
./run-sniper -- /bin/ls

Then check the directory for sim.out which is the output of the simulation.

akb2020

unread,
Mar 10, 2020, 10:31:02 PM3/10/20
to Sniper simulator
Hi Ahmad,
I want to thank you for your reply. But as I have mentioned in my question, I am not able to run anything from the benchmark root directory. It is saying that sniper is not compiled. I am able to run sniper with the /bin/ls and also fft when I run sniper in Sniper root directory.

I want to run benchmarks which is not happening.

ahmad sedigh

unread,
Mar 12, 2020, 9:22:58 AM3/12/20
to Sniper simulator

Zilmarij Iqbal

unread,
Sep 8, 2021, 3:25:55 AM9/8/21
to Sniper simulator
Hi,

I am encountering a similar kind of error using --benchmarks (running in the benchmarks root dir). The output for
./run-sniper --benchmarks=splash2-fft-test-4 -c gainestown :

option --nosift not recognized
Run program under the Sniper simulator
Usage:
  /home/zilmarij/sniper-latest/sniper-7.2/run-sniper  [-n <ncores (1)>]  [-d <outputdir (.)>]  [-c <sniper-config>]  [-c [objname:]<name[.cfg]>,<name2[.cfg]>,...]  [-c <sniper-options: section/key=value>]  [-s <script>]  [--roi]  [--roi-script]  [--viz]  [--viz-aso]  [--profile]  [--memory-profile]  [--cheetah]  [--perf]  [--gdb]  [--gdb-wait]  [--gdb-quit]  [--appdebug]  [--appdebug-manual]  [--appdebug-enable]  [--follow-execv=1]  [--power]  [--cache-only]  [--fast-forward]  [--no-cache-warming]  [--save-output]  [--save-patch]  [--pin-stats]  [--wrap-sim=]  [--mpi [--mpi-ranks=<ranks>] [--mpi-exec="<mpiexec -mpiarg...>"] ]  {--traces=<trace0>,<trace1>,... [--sim-end=<first|last|last-restart (default: first)>]  |  --pinballs=<pinball-basename>,*  |  --pid=<process-pid>  |  [--sift]  |  [--frontend=]  |  [--isa=ia32|x86_64]  -- <cmdline> }

Example: $ ./run-sniper -- /bin/ls

Note: To get started quickly with our integrated benchmarks distribution (supports SPLASH-2 and PARSEC 2.1),
 see http://snipersim.org/w/Download_Benchmarks

[app0] [SPLASH] Benchmarks to run: fft
[app0]
[app0] [SPLASH] [========== Running benchmark fft ==========]
[app0] [SPLASH] Setting up run directory: /home/zilmarij/benchmarks
[app0] Directory exists, using the same
[app0] [SPLASH] Running '/home/zilmarij/sniper-latest/sniper-7.2/record-trace --routine-tracing -o /tmp/tmp3MKiF0/run_benchmarks -e 1 -r 1 -s 0 --roi -- /home/zilmarij/benchmarks/splash2/splash2/codes/kernels/fft/FFT -m10 -p4':
[app0] [SPLASH] [---------- Beginning of output ----------]


The  simulation doesn't proceed normally, and it seems reasonable to point at  option --nosift not recognized for being the cause.
-p, on the other hand, runs fine.

Further, running ./run-sniper -- /bin/ls from sniper root dir gives the following output:

[SNIPER] Warning: Unable to use physical addresses for shared memory simulation.
[SNIPER] Start
[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
[RECORD-TRACE] Using the Pin frontend (sift/recorder)
app_0.log         lib                  pintool.log
app_1.log         LICENSE              plot2.txt
app_2.log         LICENSE.interval          plot.txt
benchmark-app0-run0.log  Makefile              plt_all.py
benchmark-app1-run0.log  Makefile2              plt.py
benchmark-app2-run0.log  Makefile.config          pltt.py
benchmark-app3-run0.log  mbuild                  power.png
benchmark-app4-run0.log  mcpat                  power.py
benchmark-app5-run0.log  NOTICE                  power.txt
benchmark-app6-run0.log  pin                  power.xml
benchmark-app7-run0.log  pinball_replay.app0.txt      python_kit
benchmark-app8-run0.log  pinball_replay.app1.txt      README
benchmark-app9-run0.log  pinball_replay.app2.txt      README.riscv
CHANGELOG         pinball_replay.app3.txt      record-trace
cmnds.txt         pinball_replay.app4.txt      riscv
common             pinball_replay.app5.txt      run-sniper
COMPILATION         pinball_replay.app6.txt      scripts
config             pinball_replay.app7.txt      sift
CONTRIBUTORS         pinball_replay.app9.txt      sim.cfg
decoder_lib         pinball_result.app0.result_play  sim.scripts.py
dmpstats.txt         pinball_result.app1.result_play  sim.stats.sqlite3
docker             pinball_result.app2.result_play  sniper_cfg
Doxyfile         pinball_result.app3.result_play  snipermlm
energystats-temp.cfg     pinball_result.app4.result_play  standalone
energystats-temp.py     pinball_result.app5.result_play  system.log
energystats-temp.txt     pinball_result.app6.result_play  test
energystats-temp.xml     pinball_result.app7.result_play  tools
frontend         pinball_result.app9.result_play  xed
include             pin_kit              xed_kit
[TRACE:0] -- DONE --
[SNIPER] Disabling performance models
[SNIPER] Leaving ROI after 7.61 seconds
[SNIPER] Simulated 1.2M instructions, 1.4M cycles, 0.85 IPC
[SNIPER] Simulation speed 153.6 KIPS (153.6 KIPS / target core - 6511.7ns/instr)
[SNIPER] Setting instrumentation mode to FAST_FORWARD
[SNIPER] End
[SNIPER] Elapsed time: 7.89 seconds


Any help in this direction would be appreciated.


Zilmarij Iqbal
MS(R) Scholar
IIT Delhi
Reply all
Reply to author
Forward
0 new messages