User Tools

Site Tools


gaudi:newversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gaudi:newversion [2009/07/25 13:30] decianmgaudi:newversion [2011/01/12 14:58] (current) – added updated version for grid-ui bursche
Line 1: Line 1:
 ====== How to add a new version of a Gaudi software ====== ====== How to add a new version of a Gaudi software ======
 +
 ===== Prerequisites ===== ===== Prerequisites =====
 If you work locally, you first have to execute the lines described [[ http://lhcb.physik.uzh.ch/internal/software.php | here]] (up to ''install CMT environment''). If you work locally, you first have to execute the lines described [[ http://lhcb.physik.uzh.ch/internal/software.php | here]] (up to ''install CMT environment'').
Line 56: Line 57:
 cmt make clean all cmt make clean all
 </code> </code>
 +
 +===== Running in debug mode =====
 +To investigate errors in your algorithm, tool, ... it may (in some cases) be useful, to run gaudirun.py in debug-mode. To do this, execute the following commands (for a c-shell on lxplus):
 +<code>
 +setenv CMTCONFIG slc4_amd64_gcc34_dbg
 +source setup.csh -tag=$CMTDEB
 +make tag=$CMTDEB
 +</code>
 +in the cmt-directory of the package in question.
 +
 +Then do:
 +<code>
 +setenv GAUDIRUN `gaudirun.py`
 +gdb python
 +run $GAUDIRUN yourOptions.py
 +</code>
 +
 +In order to make this work on grid-ui (SLC 5 and bash environment) you need to following:
 +<code>
 +source /afs/cern.ch/lhcb/software/releases/LBSCRIPTS/prod/InstallArea/scripts/LbLogin.sh #get LHCb environment from AFS (with debug stuff)
 +export CMTCONFIG=x86_64-slc5-gcc43-dbg
 +source Phys/DecayTreeTuple/cmt/setup.sh # adapt according to what you have compiled
 +</code>
 +**Note:**
 +  * On lxplus, you may run out of memory when starting a job in debug-mode.
 +  * In Zurich, the debug-libraries may not be installed.
  
 ===== Information about CMT ===== ===== Information about CMT =====
gaudi/newversion.1248521408.txt.gz · Last modified: 2009/07/25 13:30 by decianm