IceCube Software: Difference between revisions
From IIHE Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
== ICECUBE DIRECTORY == | == ICECUBE DIRECTORY == | ||
mkdir ~/i3 | <pre>mkdir ~/i3</pre> | ||
Create alias for ipython notebook | Create alias for ipython notebook | ||
echo "#iPython notebook | <pre>echo "#iPython notebook | ||
nb='ipython notebook --pylab=inline'" >> ~/.bashrc | nb='ipython notebook --pylab=inline'" >> ~/.bashrc</pre> | ||
Reload bashrc | Reload bashrc | ||
. ~/.bashrc | <pre>. ~/.bashrc</pre> | ||
Line 18: | Line 18: | ||
Prepare export in bashrc | Prepare export in bashrc | ||
echo "export I3_PORTS=/home/camper/i3/ports" >> ~/.bashrc | <pre>echo "export I3_PORTS=/home/camper/i3/ports" >> ~/.bashrc</pre> | ||
Reload bashrc | Reload bashrc | ||
. ~/.bashrc | <pre>. ~/.bashrc</pre> | ||
Checkout i3_ports | Checkout i3_ports | ||
svn co http://code.icecube.wisc.edu/icetray-dist/tools/DarwinPorts/trunk ~/i3/ports_src | <pre>svn co http://code.icecube.wisc.edu/icetray-dist/tools/DarwinPorts/trunk ~/i3/ports_src</pre> | ||
Install i3_ports | Install i3_ports | ||
cd ~/i3/ports_src | <pre>cd ~/i3/ports_src | ||
./i3-install.sh $I3_PORTS | ./i3-install.sh $I3_PORTS</pre> | ||
== OPENCL == | == OPENCL == | ||
Line 37: | Line 37: | ||
Prepare export in bashrc | Prepare export in bashrc | ||
echo "#OpenCL libraries | <pre>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 | |||
<pre>. ~/.bashrc</pre> | |||
#wget http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz | <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 == | == 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 | ||
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 |
Revision as of 09:12, 20 June 2014
Download and execute the script depending on your OS from http://code.icecube.wisc.edu/icetray-dist/distros/
It will install required dependencies
ICECUBE DIRECTORY
mkdir ~/i3
Create alias for ipython notebook
echo "#iPython notebook nb='ipython notebook --pylab=inline'" >> ~/.bashrc
Reload bashrc
. ~/.bashrc
I3_PORTS
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
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
#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
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 <pre>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