Difference between revisions of "Cruft"

From Tau Wiki
Jump to: navigation, search
 
Line 37: Line 37:
 
   
 
   
 
  loops file="eam.c" routine="eamForce#"
 
  loops file="eam.c" routine="eamForce#"
  loops file="ljforce.c" routine="LJ#"
+
  loops file="ljForce.c" routine="LJ#"
 
   
 
   
 
  END_INSTRUMENT_SECTION
 
  END_INSTRUMENT_SECTION

Revision as of 01:38, 3 March 2012


Background

Link Code Version Machine Date
LLNL website git repo Kyle Spafford fork Keeneland March 2012

Building Cruft

Modify the CmakeLists.txt and add these lines:

set (CMAKE_CXX_COMPILER tau_cxx.sh)
set (CMAKE_C_COMPILER tau_cc.sh)

Then issue

cmake .

You can safety proceed when you encounter reversions.

Selective instrumentation of Loops:

BEGIN_INSTRUMENT_SECTION

loops file="eam.c" routine="eamForce#"
loops file="ljForce.c" routine="LJ#"

END_INSTRUMENT_SECTION

Then set:

export TAU_OPTIONS="-optVerbose -optTauSelectFile=`pwd`/select.tau"
export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-icpc-pdt
make

Running Cruft

./cruft -p ag -e -f data/8k.inp.gz

or

./cruft -f data/8k.inp.gz


Performance Data