Version 1 (modified by ligon, 2 years ago)

--

The following is text from emails between Phil Carns and Sam Lang about how to setup and use TAU with PVFS:

> I just remembered that I was supposed to pass along some instructions on
> how to use Tau with PVFS.  I don't know if there is any value in this or
> not.  It looks like you need a circa Nov. 2008 version of Tau, and then
> also some pvfs_tau library?  I don't know if the latter has been
> integrated into the tree or not.  If not (and if someone is fired up
> about trying to get this running) let me know and I'll try to find out
> where that code got off to.
>
> I had never really looked at these instructions until just now, didn't
> realize it involved copying stuff around on one of our systems.
>
> -Phil
>
> -------- Original Message --------
> Subject:      hints/events build instructions
> Date:         Tue, 4 Nov 2008 14:46:23 -0600
> From:         Sam Lang <slang@mcs.anl.gov>
> To:   Phil Carns <carns@mcs.anl.gov>
>
>
>
> Hi Phil,
>
> Here's what I do to build PVFS with TAU tracing support.  I think its
> safe to say that the pvfs_tau code isn't going to ever make it to TAU2
> at this point, so maybe we should just pull it into PVFS and build it
> if --with-tau2 is specified.  Also, I don't know that the TAU2 version
> specified below is better/worse than the current TAU release, I just
> know it works.
>
> Let me know if you run into problems.
> -sam
>
>
> P=$PWD
>
> Getting/Building TAU:
>
> scp -r bblogin:/home/anataraj/projects/PVFS/tau/latest/tau2 .
> cd tau2
>
> ./configure -prefix=$P/INSTALL-tau2 -pthread -TRACE -PROFILE -useropt=-
> DTAU_THREAD_GROUPS
> make clean install
>
>
> Getting/Building pvfs_tau:
>
> cd $P
> scp -r bblogin:/home/slang/dev/anataraj/pvfs_tau .
> cd pvfs_tau
> make clean
> make libpvfs_tau.a TAU2=$P/INSTALL-tau2
>
>
> Building PVFS with TAU:
>
> cd $P
> cvs co -d he -r he-branch pvfs2
> cd he
> export CFLAGS="-DHAVE_TAU -g -I$P/INSTALL-tau2/include -I$P/pvfs_tau"
> export LDFLAGS="-L$P/INSTALL-tau2/ppc64/lib -L$P/pvfs_tau"
> export LIBS="-lpvfs_tau -lTAU_tf -lTAU_traceinput-gnu-pthread-profile-
> trace -ltau-gnu-pthread-profile-trace -lstdc++ -lpthread"
>
> ./configure --enable-strict --with-kernel=...
> make
>
> If you're building on x86_64, the exports change to:
>
> export LDFLAGS="-L$P/INSTALL-tau2/x86_64/lib -L$P/pvfs_tau"
> export LIBS="-lpvfs_tau -lTAU_tf -lTAU_traceinput-pthread-profile-
> trace -ltau-pthread-profile-trace -lstdc++ -lpthread"