IceCube Software: Difference between revisions

From IIHE Wiki
Jump to navigationJump to search
(Created page with "Download and execute the script depending on your OS from http://code.icecube.wisc.edu/icetray-dist/distros/ It will install required dependencies ####################### ## IC…")
 
No edit summary
Line 3: Line 3:




#######################
 
## ICECUBE DIRECTORY ##
## ICECUBE DIRECTORY ##
#######################
mkdir ~/i3         
mkdir ~/i3         


Line 15: Line 14:
. ~/.bashrc
. ~/.bashrc


##############
 
## I3_PORTS ##
## I3_PORTS ##
##############
 


#Prepare export in bashrc
#Prepare export in bashrc

Revision as of 08:47, 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


    1. ICECUBE DIRECTORY ##

mkdir ~/i3

  1. Create alias for ipython notebook

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

  1. Reload bashrc

. ~/.bashrc


    1. I3_PORTS ##


  1. Prepare export in bashrc

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

  1. Reload bashrc

. ~/.bashrc

  1. Checkout i3_ports

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

  1. Install i3_ports

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

    1. OPENCL ##
  1. Download the correct version from http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/
  2. Or http://www.iihe.ac.be/~samary/AMD-APP-SDK-v2.9-lnx64.tgz
  1. 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

  1. Reload bashrc

. ~/.bashrc

  1. 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

    1. OFFLINE ##
  1. 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

  1. 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

  1. Build

make

  1. Create alias

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

  1. Reload bashrc

. ~/.bashrc

    1. SIMULATION ##
  1. Checkout code

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

  1. 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'

  1. Prepare build

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

  1. Build

make

  1. Create alias

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

  1. Reload bashrc

. ~/.bashrc

    1. ICEREC ##
  1. Checkout code

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

  1. 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

  1. Prepare build

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

  1. Build

make

  1. Create alias

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

  1. Reload bashrc

. ~/.bashrc