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