[cig-commits] r15002 - long/3D/SNAC/trunk

echoi at geodynamics.org echoi at geodynamics.org
Sun May 17 11:19:05 PDT 2009


Author: echoi
Date: 2009-05-17 11:19:05 -0700 (Sun, 17 May 2009)
New Revision: 15002

Added:
   long/3D/SNAC/trunk/README_PROFILING
Log:
A short instruction for profiling SNAC with TAU.



Added: long/3D/SNAC/trunk/README_PROFILING
===================================================================
--- long/3D/SNAC/trunk/README_PROFILING	                        (rev 0)
+++ long/3D/SNAC/trunk/README_PROFILING	2009-05-17 18:19:05 UTC (rev 15002)
@@ -0,0 +1,21 @@
+For instrumentation, one can compile SNAC with the TAU wrapper for C compiler. 
+
+0) Install the latest TAU (http://www.cs.uoregon.edu/research/tau/home.php).
+
+1) Set some env. vars. 
+export TAU_DIR=${TAUROOT}
+export TAU_OPTIONS=-optCompInst
+export TAU_MAKEFILE=${TAUROOT}/${TAUARCH}/lib/Makefile.tau-mpi
+export PROFILEDIR=[somewhere you want]
+
+Note: Run tau-config to get the values of TAUROOT and TAUARCH.
+e.g., tau-config | grep TAUROOT
+
+2) ./configure --options=profile,tau
+
+3) Change C compiler to 'tau_cc.sh'
+export CC='tau_cc.sh'
+
+4) make
+5) mpirun -np 2 `which Snac` ./input.xml
+6) Go to ${PROFILEDIR} and run 'pprof' or 'paraprof'.



More information about the CIG-COMMITS mailing list