This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gaudi:newversion [2009/06/03 10:49] – decianm | gaudi: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:// | If you work locally, you first have to execute the lines described [[ http:// | ||
Line 48: | Line 49: | ||
SetupProject DaVinci vXrYpZ | SetupProject DaVinci vXrYpZ | ||
</ | </ | ||
+ | |||
+ | ===== Cleaning up ===== | ||
+ | Sometimes you need to clean up the directories, | ||
+ | |||
+ | To delete all the object files and rerun the whole compilation on all the classes, do: | ||
+ | < | ||
+ | cmt make clean all | ||
+ | </ | ||
+ | |||
+ | ===== 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): | ||
+ | < | ||
+ | setenv CMTCONFIG slc4_amd64_gcc34_dbg | ||
+ | source setup.csh -tag=$CMTDEB | ||
+ | make tag=$CMTDEB | ||
+ | </ | ||
+ | in the cmt-directory of the package in question. | ||
+ | |||
+ | Then do: | ||
+ | < | ||
+ | setenv GAUDIRUN `gaudirun.py` | ||
+ | gdb python | ||
+ | run $GAUDIRUN yourOptions.py | ||
+ | </ | ||
+ | |||
+ | In order to make this work on grid-ui (SLC 5 and bash environment) you need to following: | ||
+ | < | ||
+ | source / | ||
+ | export CMTCONFIG=x86_64-slc5-gcc43-dbg | ||
+ | source Phys/ | ||
+ | </ | ||
+ | **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 ===== |