i write this post to help new users of Sniper . it is on Ubuntu 14.04.3 LTS and Sniper 6.1

4,108 views
Skip to first unread message

Aiesha Almaslam

unread,
Nov 17, 2015, 6:09:19 PM11/17/15
to Sniper simulator
Hi every body

From the difficulty that i faced  when starting with sniper, i decide to write this guideline, i wish to be helpful for new users to sniper:
Firstly, i must thank sniper team and this group and specially, Wim and Trevor for their helpful answers and Yinnon Meshi for his tutorial

and now these are the steps to successfully install and run Sniper simulator:


  1) format your computer with a suitable OS  or install it alongside with your original OS by using VMware
     in my work , i formated my labtop with ubuntu 14.04.3 LTS 64 bit

  2) Install the following packages (using Ubuntu Software Center)
a. zlib1g-dev
b. libbz2-dev
c. g++
d. libsqlite3-dev
e. libboost-dev
f. m4
g. xsltproc
h. libx11-dev
i. libxext-dev
j. libxt-dev
k. libxmu-dev
l. libxi-dev
m. gfortran 

 3)  download sniper simulator
      you should request the Download link of sniper simulator from their website" snipersim.org"
      and wait until they send the download link  to your Email
      i installed the latest version sniper 6.1 and extracted it to a folder at home directory and i renamed the folder to be "Sniper"
      you can use the terminal to install and extract sniper by using:

      open terminal by pressing  Ctrl + Alt + T
      type :cd Downloads
      then write : Wget < download link you got by mail>
      then extract it as i wrote previously.

  4) download PIN instrumentation tool
       i installed the latest version but it is incompatible, so, i installed PIN 71313  as sniper team guide us in one topic in the group,
       you can download it from this link https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads
       then i extracted it to a folder named /sniper/pin_kit, i created this folder in a sniper folder.
       notice – you now have 2 folders in you sniper dir – pin and   pin_kit

 5) download Boost (it might work without this step..)
this link is usefull:  http://sourceforge.net/projects/boost/files/boost/1.59.0/
i installed the latest version 1_59_0 then extracted it and moved it in the sniper folder

 6) before we go to installing sniper i will advice you to down grade your perl pkg to an old version perl_5.14.2-21  because it isn't compatible with Parsec benchmark 
 you must download perl and perl base and perl modules  version 5.14.2-21 from this link:" https://launchpad.net/ubuntu/raring/amd64/perl/5.14.2-21
 you should choose the pkg of 32 or 64 due to your OS

after downloading that files you must apply the changes to your system
go to downloads folder where they are then extracted them
then go to terminal by Ctrl +Alt + T
then cd Downloads
then sudo dpkg --force-all -i perl*
maybe your system deny to downgrade anyof system packages, so you will need to remove this lock from your system by write in terminal this command
sudo rm /var/lib/dpkg/lock
after that retype
sudo dpkg --force-all -i perl*

 7) now your environment is ready for installing sniper,
     go to terminal and cd sniper
   a. ~/sniper$ make -j 4 (for 4 cores)  this number is depend on your processor cores in your machine.
   b. verify installation by applying a test run :
       ~/sniper$ cd test/fft
       ~/sniper/test/fft$ make run

 8) installing and building benchmarks ( sniper is compatiple with Splash2 and Parsec )
     a. Go to sniper dir in terminal : cd sniper
     b. ~/sniper$ wget http://snipersim.org/packages/sniper-benchmarks.tbz   to download benchmarks file
     c.~/sniper$  tar xjf sniper-benchmarks.tbz    to extract the benchmarks compressed file
     d.~/sniper$  cd benchmarks
         now you need to set the roots
     e. ~/sniper/benchmarks$ export GRAPHITE_ROOT=/path/to/sniper
           here you should write your sniper folder path " example of my sniper path: /home/aiesha/sniper" instead of "/path/to/sniper "
     f. ~/sniper/benchmarks$ export BENCHMARKS_ROOT=$(pwd)
     g. ~/sniper/benchmarks$ make
               now you need to verify your installation by run one application from the two benchmarks.
     h. ~/sniper/benchmarks$ ./run-sniper -p splash2-fft -i test -n 4 -c gainestown
     i. ~/sniper/benchmarks$ ./run-sniper -p parsec-blackscholes -i test -n 4 -c gainestown
  
       if they run successfully , then you can start your research
          congratulation

      Engineer Aiesha F.Almaslam
      Jordan University
      eng_a...@hotmail.com







 
 

Ben

unread,
Dec 7, 2016, 3:30:18 AM12/7/16
to Sniper simulator
Many thanks!
I solved all issues from this post.

Aiesha Almaslam

unread,
Dec 7, 2016, 4:41:06 AM12/7/16
to Sniper simulator

Welcome


Manal el sayed

unread,
Dec 24, 2016, 12:16:12 PM12/24/16
to Sniper simulator
Hi  Engineer Aiesha F.Almaslam
 i need your help to run sniper simulator. i am PhD student 
i follow your steps to install sniper simulator  ,  i formated my labtop with ubuntu 16.04 LTS  64 bit

i successfully passed the steps 1, 2, 3, but 

i faced some problem during prepare installation to download  PIN instrumentation tool from your suggested link ,  i searched the internet and download this one ( pin-2.14-71313-gcc.4.4.7-linux) then extracted  it  and moved to sniper path as you mentioned

also i face some problem during prepare installation to download Boost from your suggested link . i searched the internet and download this one ( boost_1_55_0b1.tar) then extracted it and moved it in the sniper folder

i can't do step 6  i have a problem and 7

please find the attachment image to see this error 

please i need your help

thanks for your time
Screenshot from 2016-12-24 06-53-07.png

Aiesha Almaslam

unread,
Dec 24, 2016, 5:52:22 PM12/24/16
to Sniper simulator
Hi Manal,
I think the problem relates to the PIN .
Are you sure from the version and your OS type weather it is 32 or 64 
then you should rename the folder of PIN to pin_kit

Notice that I test the download link and it works.


I put screenshot for the page 

Be sure for the latest version of Boost 59 not 55.



Manal el sayed

unread,
Dec 26, 2016, 4:03:47 PM12/26/16
to Sniper simulator
Many thanks Aiesha i will try your suggestions 
thank you for your time 
Message has been deleted

Manal el sayed

unread,
Jan 6, 2017, 12:15:34 PM1/6/17
to Sniper simulator

Hi Aiesha,

Many thanks for your help 

now i download  (  pin-3.0-76991-gcc-linux ) then extracted it in pin_kit folder /Sniper/pin_kit  

also i download    boost_1_59_0.tar.gz
i have some new errors

Many thanks for your time 


Please if you can help me 
Thanks
1.png
2.png
3.png
4.png
5.png
6.png
Untitled.jpg

Aiesha Almaslam

unread,
Jan 6, 2017, 5:56:00 PM1/6/17
to Sniper simulator
Hi Manal,

I think the recommended version of PIN is 71313

It was on the page that  linked to you

retry installing it.
https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads
  
best wishes,
Aiesha,

Manal el sayed

unread,
Jan 6, 2017, 7:16:32 PM1/6/17
to Sniper simulator
Hi  Aiesha,

if i use this version of PIN is 71313 i have my first error  again  ( see file attachment )

Many thanks for your help 


new.png
system.png

Aiesha Almaslam

unread,
Jan 6, 2017, 7:25:22 PM1/6/17
to Sniper simulator
hi manal

I am not professional like Wim and Trevor but i try to help you

in the error they said  you should use gcc compiler 3.4 or later

First check your gcc version

another thing my installation steps was on ubuntu 14

Manal el sayed

unread,
Jan 6, 2017, 7:36:57 PM1/6/17
to snip...@googlegroups.com
Hi Aiesha

Many thanks for your time
Really i appreciate your help


Best Wishes

--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/7WJ1VR6a3zI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Eng:  Manal A. El Sayed

Associate Instructor
Management and Information System Department
High Institute of Optics Technology, Cairo,Egypt

Manal el sayed

unread,
Jan 6, 2017, 9:36:36 PM1/6/17
to snip...@googlegroups.com
On Sat, Jan 7, 2017 at 2:25 AM, Aiesha Almaslam <eng.a...@gmail.com> wrote:

--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/7WJ1VR6a3zI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
error 1.png
gnu.png

Vijeta Rathore

unread,
May 9, 2017, 12:50:54 AM5/9/17
to Sniper simulator
Many thanks, Aiesha, for the post!

Eng.Aiesah Almaslam

unread,
May 9, 2017, 6:41:21 AM5/9/17
to snip...@googlegroups.com
Welcome 😄😄😄

Preeti Godabole

unread,
Jun 5, 2017, 7:24:12 AM6/5/17
to Sniper simulator
Thank you Aiesha for the installation information.
Would be great full if you can suggest something to test my scheduler on sniper.
Thanks.







 
 

aks

unread,
Jun 16, 2017, 5:34:30 AM6/16/17
to Sniper simulator
Hi Alesha
Can u guide me  to implement exclusive cache
thanks

Message has been deleted

sana jafar

unread,
Aug 6, 2017, 5:15:51 AM8/6/17
to Sniper simulator
Hello mam,
Im Sana Jafar and Im installing sniper 6.1 from your guidelines. I had installed ubuntu12.04 then upgraded it to 14.04. I installed all the packages as you said. But the problem is coming when im running the make command. It is saying cannot find the PIN file in yhe folder downloads/sniper-6.1/pin_kit. I have installed the pin version 71713 as u had said in the pin_kit folder. But it is asking me to install 61206 version. Why is it saying so? Its an older version.what to do plz suggest.

Majid

unread,
Nov 17, 2017, 8:47:32 PM11/17/17
to Sniper simulator
Hi,

Thank you for these working instructions!

Aaron

unread,
Dec 13, 2017, 11:27:25 AM12/13/17
to Sniper simulator
Thank you for the additional information for ubuntu 16.04 guideline.
I have built Sniper successfully, but with error when I verify the installation in test/fft.
The making error information as below:
/usr/bin/gcc-4.8 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-avx2 -I/home/wl/sniper/include    -c -o fft.o fft.c
/usr/bin/gcc-4.8 fft.o -lm -static -L/home/wl/sniper/lib -pthread  -o fft
../../run-sniper -n 2 -c gainestown --roi --viz -- ./fft -p 2
IndexError('list index out of range',)
IndexError('list index out of range',)
Traceback (most recent call last):
 
File "../../run-sniper", line 623, in <module>
    env
= run_sniper.setup_env(sim_root, pin_home, arch, standalone)
 
File "../../tools/run_sniper.py", line 119, in setup_env
    cxx_override
= get_cxx_override(sim_root, pin_home, arch)
 
File "../../tools/run_sniper.py", line 95, in get_cxx_override
    cxx_override
= sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
 
File "../../tools/run_sniper.py", line 95, in <lambda>
    cxx_override
= sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
 
File "../../tools/run_sniper.py", line 78, in get_cxx_version
    filename
= os.path.join(path, 'libstdc++.so.6')
 
File "/usr/lib/python2.7/posixpath.py", line 70, in join
   
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Makefile:8: recipe for target 'run_fft' failed
make
: *** [run_fft] Error 1

Have you encountered such a problem? And is there any solutions for resolving this error.
Thanks a lot.

On Friday, 14 July 2017 08:07:40 UTC+8, bbupa wrote:

Excellent guideline Aiesha, it has been very useful.  Thanks!

I want to complement something: 

 For new versions of ubuntu (For example 16.04) with versions of gcc such as 5.4, in step 7-a of the guideline  probably there will be the next error:
 
   ....
   In file included from ../../../source/include/pin/pin.H:41:0,
                 from testcase.cpp:33:
   ../../../source/include/pin/compiler_version_check2.H:102:2: error: #error The C++ ABI of your compiler does       not match the ABI of the pin kit.
    #error The C++ ABI of your compiler does not match the ABI of the pin kit.
     ../../../source/include/pin/compiler_version_check2.H:117:2: error: #error This kit requires gcc 3.4 or         later
    #error This kit requires gcc 3.4 or later

I solved this problem of the following way:

        sudo apt-get install gcc-4.8 g++-4.8
export CC=/usr/bin/gcc-4.8
export CXX=/usr/bin/g++-4.8
        ~/sniper$ make clean

And again step 7-a ( ~/sniper$ make -j 4  ... )
Message has been deleted

Nadim Jabbour

unread,
Feb 27, 2018, 12:50:06 PM2/27/18
to Sniper simulator
I am following your steps, but I am getting an error while testing:

...$ make run
cc -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-avx2 -I/afs/.../sniper/include    -c -o fft.o fft.c
cc fft.o -lm -static -L/afs/.../sniper/lib -pthread  -o fft
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [fft] Error 1

nitika Jain

unread,
Mar 22, 2018, 1:41:25 AM3/22/18
to Sniper simulator


On Tuesday, May 9, 2017 at 4:11:21 PM UTC+5:30, Aiesha Almaslam wrote:
Welcome
root@vlsi-desktop:/home/vlsi/sniper# ./run-sniper -n 1 -c ./gainestown.cfg -d ./god -- /bin/ls

IndexError('list index out of range',)
IndexError('list index out of range',)
Traceback (most recent call last):
  File "./run-sniper", line 623, in <module>

    env = run_sniper.setup_env(sim_root, pin_home, arch, standalone)
  File "./tools/run_sniper.py", line 119, in setup_env

    cxx_override = get_cxx_override(sim_root, pin_home, arch)
  File "./tools/run_sniper.py", line 95, in get_cxx_override

    cxx_override = sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
  File "./tools/run_sniper.py", line 95, in <lambda>

    cxx_override = sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
  File "./tools/run_sniper.py", line 78, in get_cxx_version

    filename = os.path.join(path, 'libstdc++.so.6')
  File "/usr/lib/python2.7/posixpath.py", line 77, in join

    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'


Why is lib folder not created during installation ?
why am i getting above error ?
Message has been deleted
Message has been deleted
Message has been deleted

Bragadeesh S

unread,
Apr 13, 2018, 9:14:06 AM4/13/18
to Sniper simulator

Hi Nikita,
   Even I have the same error. Can you pleae let me know if you have resolved the issue ?


preeti Jain

unread,
Apr 16, 2018, 2:31:19 AM4/16/18
to snip...@googlegroups.com, bragad...@gmail.com
Hi,where are u stuck pl mail me.will try to help.i have resolved.

best
Nikita

On Fri, Apr 13, 2018 at 6:14 AM, Bragadeesh S <bragad...@gmail.com> wrote:

Hi Nikita,
   Even I have the same error. Can you pleae let me know if you have resolved the issue ?


Trevor E. Carlson

unread,
May 8, 2018, 10:31:32 PM5/8/18
to snip...@googlegroups.com, wangli...@gmail.com
Aaron,

The included patch should fix things. Please tell us if you have any other issues.

Trevor

sniper-6.1-run_sniper_py.patch

Trevor E. Carlson

unread,
May 8, 2018, 10:31:54 PM5/8/18
to snip...@googlegroups.com, preeti Jain
Nitika,

Please apply the following patch, as it should fix these issues.

Trevor

sniper-6.1-run_sniper_py.patch

pranjal joshi

unread,
May 15, 2018, 12:39:24 AM5/15/18
to Sniper simulator
Hello Aiesha F. Almaslam

I pranjal joshi M.Tech student. I am using sniper 6.0 with Ubuntu 12.04. I have successfully installed sniper but cant understand the working of sniper. Mainly I face problem for changing the number of cores.
Can you plz send me some tutorials related to its working.
I seriously need your help.so plz help me.

Thnk you.

preeti Jain

unread,
Jun 15, 2018, 9:50:27 PM6/15/18
to snip...@googlegroups.com
To  change number of cores you need to specify in the command ./run-sniper -c gainestown -n 2 -d ./abc --traces=./traces/path of traces.

here -n 2 says 2 cores .if u want 4 ,then -n 4.
Hope it helps

best
Preeti

--

pranjal joshi

unread,
Jun 18, 2018, 10:59:56 PM6/18/18
to snip...@googlegroups.com
Thank u so much preeti...it helps me alot...


For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/7WJ1VR6a3zI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.

Rohit Gupta

unread,
Jun 20, 2018, 8:49:33 AM6/20/18
to Sniper simulator
Hi Trevor

I tried applying the patch but i get the following error

git apply --check sniper-6.1-run_sniper_py.patch
error: patch failed: tools/run_sniper.py:92
error: tools/run_sniper.py: patch does not apply

I am using the sniper 6.1 version
I am on a ubuntu 16.04 system with gcc 5.5. I did install all the dependencies. I tried installing the patch because i get the following error

../../run-sniper -n 2 -c gainestown --roi --viz -- ./fft -p 2
IndexError('list index out of range',)
IndexError('list index out of range',)
Traceback (most recent call last):
  File "../../run-sniper", line 623, in <module>
    env = run_sniper.setup_env(sim_root, pin_home, arch, standalone)
  File "../../tools/run_sniper.py", line 119, in setup_env
    cxx_override = get_cxx_override(sim_root, pin_home, arch)
  File "../../tools/run_sniper.py", line 95, in get_cxx_override
    cxx_override = sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
  File "../../tools/run_sniper.py", line 95, in <lambda>
    cxx_override = sorted(map(lambda x:(get_cxx_version(x),x), cxx_versions), key=lambda x:x[0])[-1][1]
  File "../../tools/run_sniper.py", line 78, in get_cxx_version
    filename = os.path.join(path, 'libstdc++.so.6')
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Makefile:8: recipe for target 'run_fft' failed
make: *** [run_fft] Error 1

My python version is 2.7.12

Can you please help me?
rohit

Rohit Gupta

unread,
Jun 20, 2018, 8:51:48 AM6/20/18
to Sniper simulator
Hi Aaron

Did the patch suggested by trevor fix your issue? I still get an error when i try applying the patch.
with kind regards
Rohit

madhufilmsi...@gmail.com

unread,
Jul 16, 2018, 1:44:34 AM7/16/18
to Sniper simulator
hello ,
   how to write code for copying evicted block to local cache.
   thanks in advance.

navonil chatterjee

unread,
Oct 4, 2018, 9:59:12 AM10/4/18
to Sniper simulator

Building for x86 (intel64)
[CXX   ] common/core/bbv_count.o
/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.cc: In member function 'UInt64 BbvCount::getDiff()':
/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.cc:99:51: error: call of overloaded 'abs(UInt64)' is ambiguous
          diff += abs(bbv_count - m_bbv_previous[i]);
                                                   ^
In file included from /usr/include/c++/6/cstdlib:75:0,
                 from /usr/include/c++/6/ext/string_conversions.h:41,
                 from /usr/include/c++/6/ext/vstring.h:2685,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/misc/fixed_types.h:59,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.h:4,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.cc:1:
/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
In file included from /usr/include/c++/6/ext/string_conversions.h:41:0,
                 from /usr/include/c++/6/ext/vstring.h:2685,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/misc/fixed_types.h:59,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.h:4,
                 from /lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.cc:1:
/usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^~~
/usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^~~
/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/Makefile.common:82: recipe for target '/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.o' failed
make[1]: *** [/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/common/core/bbv_count.o] Error 1
Makefile:50: recipe for target '/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/lib/libcarbon_sim.a' failed
make: *** [/lab/home/labsticc/kumarmon/Navonil/sniper-7.0/lib/libcarbon_sim.a] Error 2


I HAVE FOLLOWED ALL THE COMMANDS STILL I AM HAVING THE AFOREMENTIOMED ISSUE WHILE INSTALLING SNIPERSIM. HOW TO RESOLVE THE ISSUE?

Trevor E. Carlson

unread,
Oct 4, 2018, 10:32:49 AM10/4/18
to snip...@googlegroups.com, navon...@gmail.com
Navonil Chatterjee,

It looks like you might be running into a problem that is caused by using the most recent versions of GCC. Which Linux OS version and GCC version are you using? Can you apply the patch from here [1] to see if that will fix your problem?

Trevor

[1] https://groups.google.com/d/msg/snipersim/nWDhtgjG2NY/Ps5f_1WkAQAJ

navonil chatterjee

unread,
Oct 4, 2018, 11:11:39 AM10/4/18
to tcar...@comp.nus.edu.sg, snip...@googlegroups.com
Thanks, I'll check it out.

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

navonil chatterjee

unread,
Oct 4, 2018, 12:10:20 PM10/4/18
to tcar...@comp.nus.edu.sg, snip...@googlegroups.com
kumarmon@lo-lester-020:~/Navonil/sniper-7.0$ patch Makefile < sniper-7.0-ubuntu-18.04-compile-fix-v2.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 95.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 33.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
The next patch would create the file Makefile,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 114.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 11.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 110.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 59.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 114.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 39.
Hunk #3 FAILED at 88.
3 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file Makefile
Hunk #1 FAILED at 10.
Hunk #2 FAILED at 53.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
kumarmon@lo-lester-020:~/Navonil/sniper-7.0$

The patch is not working.

Message has been deleted

poojasa...@gmail.com

unread,
Dec 20, 2018, 3:13:21 AM12/20/18
to Sniper simulator
Hello Aiesha mam,

Thank you so much! I have succesfully installed sniper with your instructions described above. I have found the phases and simpoints using sniper.

I wish to collect traces of the PARSEC workload. The error I am getting is that "the input file couldn't be opened'. All the executable and input files are available in the folder. Thus, please help me solve the problem. I have mentioned the command and its output error below. Also I have attached a screenshot of the same

The command I am using is:

./record-trace -f 10000000 -d 2500000 -o /home/beproj_ngo/Desktop/sniper/traces/blackscholes/blackscholes-p6-1 -- /home/beproj_ngo/Desktop/sniper/benchmarks/parsec/parsec-2.1/pkgs/apps/blackscholes/./blackscholes 3 in_4K.txt prices.txt

Output
PARSEC Benchmark Suite Version 2.1
[HOOKS] PARSEC Hooks Version 1.2
ERROR: Unable to open file in_4K.txt.


No of threads: 3
Input file: in_4K.txt
Output file: prices.txt
Screenshot from 2018-12-20 13:40:16.png

Akash Gupta

unread,
Jan 28, 2019, 6:35:07 AM1/28/19
to Sniper simulator
can you please help me out to start experimenting on sniper-6.1 how to proceed I have to complete my project so please help me out
Reply all
Reply to author
Forward
Message has been deleted
0 new messages