MADNESS

From TAU Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:52, 28 July 2009 (edit)
Amorris (Talk | contribs)

← Previous diff
Revision as of 22:53, 28 July 2009 (edit)
Amorris (Talk | contribs)

Next diff →
Line 1: Line 1:
-To build MADNESS with TAU for profiling/tracing, some modifications need to be made to the code for parsing purposes. Additionally, a modification was made to fix a bug in MADNESS. To begin, get the source from svn:+To build MADNESS with TAU for profiling/tracing, some modifications need to be made to the code for parsing purposes. Additionally, a modification was made to fix a bug in MADNESS.
 + 
 +* To begin, get the source from svn:
svn co -r1177 http://m-a-d-n-e-s-s.googlecode.com/svn/local/trunk madness svn co -r1177 http://m-a-d-n-e-s-s.googlecode.com/svn/local/trunk madness
-Next, patch it with the following patch:+* Next, patch it with the following patch:
[[Media:tau-madness-r1177.diff|tau-madness-r1177.diff]] [[Media:tau-madness-r1177.diff|tau-madness-r1177.diff]]
-Build TAU with -pthread support.+* Build TAU with -pthread support.
 + 
 +* Next, make sure you have built your own blas and lapack (system installed ones will rarely work). Also, install google perftools. Configure as follow:
 + 
 + MPICC=tau_cc.sh MPICXX=tau_cxx.sh ../configure --prefix=$HOME/apps/madness/install-tau LIBS="-L/usr/local/packages/lapack -llapack -lblas \
 + -lgfortran -L/usr/local/packages/google-perftools-1.3/lib -ltcmalloc_minimal" --disable-dependency-tracking
 + 
 +* Build the code
 + make
-Next, make sure you have built your own blas and lapack (system installed ones will rarely work). Also, install google perftools. Configure as follow:+* Run the code
 + export MADNESS_ROOT=$HOME/apps/madness/install-tau
 + export MAD_NTHREAD=7
 + export MRA_DATA_DIR=${MADNESS_ROOT}/share
 + export TAU_VERBOSE=1
 + export TAU_METRICS=LINUX_TIMERS
 + time mpiexec -n 1 ${MADNESS_ROOT}/bin/moldft
- MPICC=tau_cc.sh MPICXX=tau_cxx.sh ../configure --prefix=$HOME/apps/madness/install-tau LIBS="-L/usr/local/packages/lapack -llapack -lblas -lgfortran -L/usr/local/packages/google-perftools-1.3/lib -ltcmalloc_minimal" --disable-dependency-tracking+* Examine results...

Revision as of 22:53, 28 July 2009

To build MADNESS with TAU for profiling/tracing, some modifications need to be made to the code for parsing purposes. Additionally, a modification was made to fix a bug in MADNESS.

  • To begin, get the source from svn:
svn co -r1177 http://m-a-d-n-e-s-s.googlecode.com/svn/local/trunk madness
  • Next, patch it with the following patch:

tau-madness-r1177.diff

  • Build TAU with -pthread support.
  • Next, make sure you have built your own blas and lapack (system installed ones will rarely work). Also, install google perftools. Configure as follow:
MPICC=tau_cc.sh MPICXX=tau_cxx.sh ../configure --prefix=$HOME/apps/madness/install-tau LIBS="-L/usr/local/packages/lapack -llapack -lblas \
-lgfortran -L/usr/local/packages/google-perftools-1.3/lib -ltcmalloc_minimal" --disable-dependency-tracking
  • Build the code
make
  • Run the code
export MADNESS_ROOT=$HOME/apps/madness/install-tau
export MAD_NTHREAD=7
export MRA_DATA_DIR=${MADNESS_ROOT}/share
export TAU_VERBOSE=1
export TAU_METRICS=LINUX_TIMERS
time mpiexec -n 1 ${MADNESS_ROOT}/bin/moldft
  • Examine results...
Personal tools