HOW to Run multiple multi-threaded Benchmarks in Sniper-7.2 with Pin3.7

425 views
Skip to first unread message

ahmad sedigh

unread,
Mar 2, 2020, 2:59:56 PM3/2/20
to Sniper simulator
Hi 
According to Sniper Manual file for running a benchmark, we should use -p but for running multiple benchmarks we should use --benchmarks. 
running only one benchmark works well but --benchmarks returns an error that follows:
E: Missing application name
Pin: pin-3.7-97619-0d0c92f4f
So I personally investigated the run-sniper file in $BENCHMARKS_ROOT and record-trace file in $SNIPER_ROOT and my observation is:
1- for only one benchmark with -p the command which is sent to pin is 
[RECORD-TRACE] Using the Pin frontend (sift/recorder)
$SNIPER_ROOT/pin_kit/pin -mt -injection child -xyzzy -ifeellucky -follow_execv -t /home/ahmad/sniper/sift/recorder/obj-intel64/sift_recorder -verbose 0 -debug 0 -roi 1 -roi-mpi 0 -f 0 -d 0 -b 0 -o /tmp/tmpKo84E3/run_benchmarks -e 1 -s 0 -r 1 -pa 0 -rtntrace 1 -stop 0    -- /home/ahmad/sniper/benchmarks/splash2/splash2/codes/kernels/fft/FFT -m10 -p4
but for multiple benchmarks using --benchmarks that command does not contain any after -stop 0 like this:
[RECORD-TRACE] Using the Pin frontend (sift/recorder)
$SNIPER_ROOT/pin_kit/pin -mt -injection child -xyzzy -ifeellucky -follow_execv -t /home/ahmad/sniper/sift/recorder/obj-intel64/sift_recorder -verbose 0 -debug 0 -roi 1 -roi-mpi 0 -f 0 -d 0 -b 0 -o /tmp/tmpKo84E3/run_benchmarks -e 1 -s 0 -r 1 -pa 0 -rtntrace 1 -stop 0    -- 
So first guess is that the command line which is sent to pin is incomplete that the pin returns error. 
2- for only one benchmark with -p the command the benchmark runs inside sniper following this command:
[SPLASH] Running 'SNIPER_APP_LD_PRELOAD=$LD_PRELOAD; unset LD_PRELOAD; /home/ahmad/sniper/run-sniper -n 4 -m 'localhost' -d '/home/ahmad/sniper/benchmarks' -c gainestown --roi --curdir=/home/ahmad/sniper/benchmarks  --  /home/ahmad/sniper/benchmarks/splash2/splash2/codes/kernels/fft/FFT -m10 -p4'
but for multiple benchmarks the command is as follows for each benchmark:
[app1] [SPLASH] Running '/home/ahmad/sniper/record-trace --routine-tracing -o /tmp/tmp9D1A1A/run_benchmarks -e 1 -r 1 -s 1 --roi -- /home/ahmad/sniper/benchmarks/splash2/splash2/codes/kernels/fft/FFT -m10 -p1'

So the main difference is about the run-trace file and it should be under reconsideration for fixing bugs (i assume) 
if anyone has any suggestion, I appreciate in advance for notice.

ahmad sedigh

unread,
Mar 9, 2020, 10:31:33 AM3/9/20
to Sniper simulator
This an update to my investigations:
the line for a multi-threaded benchmark that I use is the following WHICH requires two identical splash2-fft with test input and 4 cores
$SNIPER_ROOT/benchmarks/run-sniper -n 4 -c gainestown --benchmarks=splash2-fft-test-4,splash2-fft-test-4

the snipercmd in $SNIPER_ROOT/benchmarks/run-sniper for --benchmarks option is the followings and to the best of my knowledge it is OK:
snipercmd--benchmarks = /home/ahmad/sniper/run-sniper -n 4 -m 'localhost' -d '/home/ahmad/sniper' -c gainestown --curdir=/home/ahmad/sniper --trace-manual -g --traceinput/enabled=true -g --traceinput/emulate_syscalls=true -g --traceinput/num_apps=2 -g --traceinput/trace_prefix=/tmp/tmpWlHdgG/run_benchmarks

the tracecmd is the following:
tracecmd=/home/ahmad/sniper/record-trace  --routine-tracing -o /tmp/tmpWlHdgG/run_benchmarks -e 1 -r 1 -s 1 --roi -- 

the pinball command line for app0 in system monitor is the following:
/home/ahmad/sniper/pin_kit/intel64/bin/pinbin -p32 /home/ahmad/sniper/pin_kit/ia32/bin/pinbin -mt -injection child -xyzzy -ifeellucky -follow_execv -t /home/ahmad/sniper/sift/recorder/obj-intel64/sift_recorder -verbose 0 -debug 0 -roi 0 -roi-mpi 0 -f 0 -d 0 -b 0 -o /tmp/tmpaA8yLF/run_benchmarks -e 1 -s 0 -r 1 -pa 0 -rtntrace 1 -stop 0    -- /home/ahmad/sniper/benchmarks/splash2/splash2/codes/kernels/fft/FFT -m10 -p4

Everything is OK but the error is still there.
I did not change any line of code except the print commands added to get the only some variables in the terminal for investigation.

Anish Ghimire

unread,
Mar 3, 2021, 5:22:58 PM3/3/21
to Sniper simulator
Hey Ahmad,

Did you get any update with this error? I am also having the exact problem.

Dmitriy Kutra

unread,
Jun 10, 2021, 8:31:32 AM6/10/21
to Sniper simulator
Hi folks, 
Are there any solution for this issue? 

четвер, 4 березня 2021 р. о 00:22:58 UTC+2 Anish Ghimire пише:

Aaron

unread,
Aug 25, 2021, 5:48:41 AM8/25/21
to Sniper simulator
Thanks Ahmad, I am struggling with the same issue. Is there any update for this issue?
Reply all
Reply to author
Forward
0 new messages