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:29] 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 52: Line 53:
 Sometimes you need to clean up the directories, as compilation won't work anymore. When you compile your classes (algorithms, tools,...), only the ones which have changed since the last compilation will be recompiled. This may lead to ambiguities, f.ex. if you have renamed a tool, the old object file will still exist and the linker will return an error.  Sometimes you need to clean up the directories, as compilation won't work anymore. When you compile your classes (algorithms, tools,...), only the ones which have changed since the last compilation will be recompiled. This may lead to ambiguities, f.ex. if you have renamed a tool, the old object file will still exist and the linker will return an error. 
  
-To rerun the whole compilation on all the classes, do:+To delete all the object files and rerun the whole compilation on all the classes, do:
 <code> <code>
 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.1248521358.txt.gz · Last modified: 2009/07/25 13:29 by decianm