IceCube Software: Difference between revisions

From IIHE Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
Download and execute the script depending on your OS from http://code.icecube.wisc.edu/icetray-dist/distros/
This page will guide you through the installation process for icecube software on your computer.
It will install required dependencies
For Cluster usage, see [[IceCube Software Cluster]]
 
== Preparation ==
<pre>mkdir ~/i3</pre>       
 
Create alias for ipython notebook
<pre>echo "#iPython notebook
nb='ipython notebook --pylab=inline'" >> ~/.bashrc</pre>


Reload bashrc
<pre>. ~/.bashrc</pre>


== Dependencies ==
Download and execute the script depending on your OS from http://code.icecube.wisc.edu/icetray-dist/distros/ <br>
It will install required dependencies


## ICECUBE DIRECTORY ##
=== Note for Ubuntu ===
mkdir ~/i3       
There is a missing package 'libboost-all-dev' in the Ubuntu script.
<pre>sudo apt-get install libboost-all-dev</pre>


#Create alias for ipython notebook
== I3_PORTS ==
echo "#iPython notebook
I3_PORTS are a common way to get required sources dependencies for the icecube software
nb='ipython notebook --pylab=inline'" >> ~/.bashrc


#Reload bashrc
Prepare export in bashrc
. ~/.bashrc
<pre>echo "export I3_PORTS=/home/camper/i3/ports" >> ~/.bashrc</pre>


Reload bashrc
<pre>. ~/.bashrc</pre>


## I3_PORTS ##
Checkout i3_ports
<pre>svn co http://code.icecube.wisc.edu/icetray-dist/tools/DarwinPorts/trunk ~/i3/ports_src</pre>


Install i3_ports
<pre>cd ~/i3/ports_src
./i3-install.sh $I3_PORTS</pre>


#Prepare export in bashrc
echo "export I3_PORTS=/home/camper/i3/ports" >> ~/.bashrc


#Reload bashrc
=== Usage ===
. ~/.bashrc
'''''Sync available ports'''''<br>
<pre>$I3_PORTS/bin/port sync
</pre>
'''''List installed ports'''''<br>
<pre>$I3_PORTS/bin/port installed
</pre>
'''''List available ports'''''<br>
<pre>$I3_PORTS/bin/port list
</pre>
'''''Install a port'''''<br>
<pre>$I3_PORTS/bin/port install PORT_NAME
</pre>
'''''Show dependencies of a port'''''<br>
<pre>$I3_PORTS/bin/port deps PORT_NAME
</pre>
<br>


#Checkout i3_ports
== OpenCL ==
svn co http://code.icecube.wisc.edu/icetray-dist/tools/DarwinPorts/trunk ~/i3/ports_src


#Install i3_ports
Download the correct version from http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/
cd ~/i3/ports_src
Or http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz
./i3-install.sh $I3_PORTS


############
Prepare export in bashrc
## OPENCL ##
############
#Download the correct version from http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/
#Or http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz


#Prepare export in bashrc
<pre>echo "#OpenCL libraries
echo "#OpenCL libraries
export OPENCL_VENDOR_PATH="/etc/OpenCL/vendors"
export OPENCL_VENDOR_PATH="/etc/OpenCL/vendors"
export ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.9-RC-lnx64"
export ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.9-RC-lnx64"
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH" >> ~/.bashrc
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH" >> ~/.bashrc</pre>


#Reload bashrc
Reload bashrc
. ~/.bashrc
<pre>. ~/.bashrc</pre>


#wget http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz
Download and install OpenCL
<pre>#wget http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz
tar xvf AMD-APP-SDK-v2.9-lnx64.tgz
tar xvf AMD-APP-SDK-v2.9-lnx64.tgz
sudo ./Install-AMD-APP.sh
sudo ./Install-AMD-APP.sh
tar xvf AMD-APP-SDK-v2.9-RC-lnx64.tgz  
tar xvf AMD-APP-SDK-v2.9-RC-lnx64.tgz  
mv AMD-APP-SDK-v2.9-RC-lnx64 /opt
mv AMD-APP-SDK-v2.9-RC-lnx64 /opt</pre>


#############
== Offline-software ==
## OFFLINE ##
#############


#Checkout code
Checkout code
svn co http://code.icecube.wisc.edu/svn/meta-projects/offline-software/releases/V14-03-01 ~/i3/offline-software/V14-03-01/src
<pre>svn co http://code.icecube.wisc.edu/svn/meta-projects/offline-software/releases/V14-03-01 ~/i3/offline-software/V14-03-01/src</pre>


#Prepare build
Prepare build
mkdir  ~/i3/offline-software/V14-03-01/build
<pre>mkdir  ~/i3/offline-software/V14-03-01/build
cd ~/i3/offline-software/V14-03-01/build
cd ~/i3/offline-software/V14-03-01/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src</pre>


#Build
Build
make
<pre>make</pre>


#Create alias
Create alias
echo "#Offline-Software environment
<pre>echo "#Offline-Software environment
alias offline-software='/home/camper/i3/offline-software/V14-03-01/build/env-shell.sh'" >> ~/.bashrc
alias offline-software='/home/camper/i3/offline-software/V14-03-01/build/env-shell.sh'" >> ~/.bashrc</pre>


#Reload bashrc
Reload bashrc
. ~/.bashrc
<pre>. ~/.bashrc</pre>


################
== Simulation ==
## SIMULATION ##
################


#Checkout code
Checkout code
svn co http://code.icecube.wisc.edu/svn/meta-projects/simulation/releases/V04-00-12 ~/i3/simulation/V04-00-12/src          
<pre>svn co http://code.icecube.wisc.edu/svn/meta-projects/simulation/releases/V04-00-12 ~/i3/simulation/V04-00-12/src</pre> 
#download spline tables
download spline tables
cd ~/i3/simulation/V04-00-12/src/genie-icetray/resources/splines/
<pre>cd ~/i3/simulation/V04-00-12/src/genie-icetray/resources/splines/
wget 'http://icecube.wisc.edu/~ckopper/splines_water_2.6.4.xml'
wget 'http://icecube.wisc.edu/~ckopper/splines_water_2.6.4.xml'</pre>


#Prepare build
Prepare build
mkdir ~/i3/simulation/V04-00-12/build
<pre>mkdir ~/i3/simulation/V04-00-12/build
cd ~/i3/simulation/V04-00-12/build
cd ~/i3/simulation/V04-00-12/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src</pre>


#Build
Build
make
<pre>make</pre>


#Create alias
Create alias
echo "#Simulation environment
<pre>echo "#Simulation environment
alias simulation='/home/camper/i3/simulation/V04-00-12/build/env-shell.sh'" >> ~/.bashrc
alias simulation='/home/camper/i3/simulation/V04-00-12/build/env-shell.sh'" >> ~/.bashrc</pre>


#Reload bashrc
Reload bashrc
. ~/.bashrc
<pre>. ~/.bashrc</pre>


############
== IceRec ==
## ICEREC ##
############


#Checkout code
Checkout code
svn co http://code.icecube.wisc.edu/svn/meta-projects/icerec/releases/V04-07-00/ ~/i3/icerec/V04-07-00/src
<pre>svn co http://code.icecube.wisc.edu/svn/meta-projects/icerec/releases/V04-07-00/ ~/i3/icerec/V04-07-00/src</pre>


#Extra projects                
Extra projects
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCPulseSeparator/trunk ~/i3/icerec/V04-07-00/src/MCPulseSeparator                           
               
<pre>svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCPulseSeparator/trunk ~/i3/icerec/V04-07-00/src/MCPulseSeparator                           
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCHitSeparator/trunk  ~/i3/icerec/V04-07-00/src/MCHitSeparator                               
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCHitSeparator/trunk  ~/i3/icerec/V04-07-00/src/MCHitSeparator                               
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/CoincSuite/trunk  ~/i3/icerec/V04-07-00/src/CoincSuite                                       
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/CoincSuite/trunk  ~/i3/icerec/V04-07-00/src/CoincSuite                                       
svn co http://code.icecube.wisc.edu/svn/projects/HiveSplitter/branches/IceHive  ~/i3/icerec/V04-07-00/src/IceHive
svn co http://code.icecube.wisc.edu/svn/projects/HiveSplitter/branches/IceHive  ~/i3/icerec/V04-07-00/src/IceHive</pre>


#Prepare build
Prepare build
mkdir ~/i3/icerec/V04-07-00/build
<pre>mkdir ~/i3/icerec/V04-07-00/build
cd ~/i3/icerec/V04-07-00/build
cd ~/i3/icerec/V04-07-00/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src</pre>


#Build
Build
make
<pre>make</pre>


#Create alias
Create alias
echo "#Icerec environment
<pre>echo "#Icerec environment
alias icerec='/home/camper/i3/icerec/V04-07-00/build/env-shell.sh'" >> ~/.bashrc
alias icerec='/home/camper/i3/icerec/V04-07-00/build/env-shell.sh'" >> ~/.bashrc</pre>


#Reload bashrc
Reload bashrc
. ~/.bashrc
<pre>. ~/.bashrc</pre>

Latest revision as of 13:18, 17 November 2014

This page will guide you through the installation process for icecube software on your computer. For Cluster usage, see IceCube Software Cluster

Preparation

mkdir ~/i3

Create alias for ipython notebook

echo "#iPython notebook
nb='ipython notebook --pylab=inline'" >> ~/.bashrc

Reload bashrc

. ~/.bashrc

Dependencies

Download and execute the script depending on your OS from http://code.icecube.wisc.edu/icetray-dist/distros/
It will install required dependencies

Note for Ubuntu

There is a missing package 'libboost-all-dev' in the Ubuntu script.

sudo apt-get install libboost-all-dev

I3_PORTS

I3_PORTS are a common way to get required sources dependencies for the icecube software

Prepare export in bashrc

echo "export I3_PORTS=/home/camper/i3/ports" >> ~/.bashrc

Reload bashrc

. ~/.bashrc

Checkout i3_ports

svn co http://code.icecube.wisc.edu/icetray-dist/tools/DarwinPorts/trunk ~/i3/ports_src

Install i3_ports

cd ~/i3/ports_src
./i3-install.sh $I3_PORTS


Usage

Sync available ports

$I3_PORTS/bin/port sync

List installed ports

$I3_PORTS/bin/port installed

List available ports

$I3_PORTS/bin/port list

Install a port

$I3_PORTS/bin/port install PORT_NAME

Show dependencies of a port

$I3_PORTS/bin/port deps PORT_NAME


OpenCL

Download the correct version from http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/ Or http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz

Prepare export in bashrc

echo "#OpenCL libraries
export OPENCL_VENDOR_PATH="/etc/OpenCL/vendors"
export ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.9-RC-lnx64"
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH" >> ~/.bashrc

Reload bashrc

. ~/.bashrc

Download and install OpenCL

#wget http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz
tar xvf AMD-APP-SDK-v2.9-lnx64.tgz
sudo ./Install-AMD-APP.sh
tar xvf AMD-APP-SDK-v2.9-RC-lnx64.tgz 
mv AMD-APP-SDK-v2.9-RC-lnx64 /opt

Offline-software

Checkout code

svn co http://code.icecube.wisc.edu/svn/meta-projects/offline-software/releases/V14-03-01 ~/i3/offline-software/V14-03-01/src

Prepare build

mkdir  ~/i3/offline-software/V14-03-01/build
cd ~/i3/offline-software/V14-03-01/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src

Build

make

Create alias

echo "#Offline-Software environment
alias offline-software='/home/camper/i3/offline-software/V14-03-01/build/env-shell.sh'" >> ~/.bashrc

Reload bashrc

. ~/.bashrc

Simulation

Checkout code

svn co http://code.icecube.wisc.edu/svn/meta-projects/simulation/releases/V04-00-12 ~/i3/simulation/V04-00-12/src

download spline tables

cd ~/i3/simulation/V04-00-12/src/genie-icetray/resources/splines/
wget 'http://icecube.wisc.edu/~ckopper/splines_water_2.6.4.xml'

Prepare build

mkdir ~/i3/simulation/V04-00-12/build
cd ~/i3/simulation/V04-00-12/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src

Build

make

Create alias

echo "#Simulation environment
alias simulation='/home/camper/i3/simulation/V04-00-12/build/env-shell.sh'" >> ~/.bashrc

Reload bashrc

. ~/.bashrc

IceRec

Checkout code

svn co http://code.icecube.wisc.edu/svn/meta-projects/icerec/releases/V04-07-00/ ~/i3/icerec/V04-07-00/src

Extra projects

svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCPulseSeparator/trunk ~/i3/icerec/V04-07-00/src/MCPulseSeparator                           
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/MCHitSeparator/trunk  ~/i3/icerec/V04-07-00/src/MCHitSeparator                               
svn co http://code.icecube.wisc.edu/svn/sandbox/mzoll/CoincSuite/trunk  ~/i3/icerec/V04-07-00/src/CoincSuite                                      
svn co http://code.icecube.wisc.edu/svn/projects/HiveSplitter/branches/IceHive  ~/i3/icerec/V04-07-00/src/IceHive

Prepare build

mkdir ~/i3/icerec/V04-07-00/build
cd ~/i3/icerec/V04-07-00/build
$I3_PORTS/bin/cmake -DSYSTEM_PACKAGES=True ../src

Build

make

Create alias

echo "#Icerec environment
alias icerec='/home/camper/i3/icerec/V04-07-00/build/env-shell.sh'" >> ~/.bashrc

Reload bashrc

. ~/.bashrc