Releases - different setups

Release 14.2.0

In directory /afs/cern.ch/user/j/jussel/atlas/tagging/14.2.0 the two files CMT_home.sh and requirements are created, setup cmt with:

  source CMT_home.sh 

CMT_home.sh

source /afs/cern.ch/sw/contrib/CMT/v1r20p20080222/mgr/setup.sh
cmt config
source setup.sh -tag=14.2.0,32,dbg,oneTest,runtime

Comment: alternative to dbg: opt

requirements

################################################################################

set   CMTSITE  CERN
set   SITEROOT /afs/cern.ch

macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist

macro ATLAS_TEST_AREA "/afs/cern.ch/user/j/jussel/atlas/tagging/14.2.0"

tag 14.2.0      14.2.0

use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)

set CMTSTRUCTURINGSTYLE "without_version_directory"

######################################################################

Debugging

General debugging:

  • setting up account as dbg, e.g. for Rel. 14.2.0:
      source setup.sh -tag=14.2.0,32,dbg,oneTest,runtime  

  • set up the work area:
      setupWorkArea.py   

  • in WorkArea/cmt compile the packages with:
      cmt broadcast gmake -j3 QUIET=yes  

  • debugging mode of athena with:
      athena --debug exec jobOptions.py  

*Finding memory leaks using Valgrind:
Links: Using Valgrind - Atlas TWiki

  • setup valgrind:
      source /afs/cern.ch/sw/lcg/external/valgrind/3.3.0/slc4_amd64_gcc34/_SPI/start.sh

  • start the valgrind analysis:
      valgrind --leak-check=yes --trace-children=yes --num-callers=8 --show-reachable=yes `which athena.py` jobOptions.py >! valgrind.log 2>&1 

Analysing code using Callgrind:

  • setup valgrind (like above)

  • start analysis:
      valgrind --tool=callgrind --trace-children=yes `which athena.py` jobOptions.py    

Software to analyse the output: in KDE kcachegrind (see http://kcachegrind.sourceforge.net)

-- PatrickJussel - 23 Jan 2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-01-23 - PatrickJussel
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback