about problem 3 in Homework

29 views
Skip to first unread message

huan sun

unread,
Apr 16, 2011, 8:30:01 PM4/16/11
to ucsb-computer-scien...@googlegroups.com
Hi all,

1. I am not clear about what we are supposed to do in the homework 3. It says  "do the most detailed analysis possible", but what should we analyze?

2. I am also not sure how to use TAU. I am refering to Stefan's website doing the following :               Am I right? if so, after compiling the c file, shall we use mpirun as usual to run the code??
Load the TAU environment:

export PATH=/home/beta/tau/2.19-pgi/x86_64/bin:$PATH
export LD_LIBRARY_PATH=/home/beta/tau/2.19-pgi/x86_64/lib:$LD_LIBRARY_PATH

Select the appropiate TAU MAKEFILE based on your choices. For example:
/home/beta/tau/2.19-pgi/x86_64/lib/Makefile.tau-mpi-pdt-pgi

So, we set it up:
% export TAU_MAKEFILE=/home/beta/tau/2.19-pgi/x86_64/lib/Makefile.tau-mpi-pdt-pgi

And we compile using the wrapper provided by tau:
% tau_cc.sh trap.c
or, for Makefiles, edit Makefile and change mpif90/mpicc = tau_f90.sh/tau_cc.sh.


Thank you very much.
Huan





Matt Weiden (Reader)

unread,
Apr 16, 2011, 9:35:40 PM4/16/11
to UCSB Computer Science 240A Spring 2011
Hi Huan,

Once you've used tau_cc.sh to instrument your code if you run the
executable it will generate a number of profiles equal to the number
of processes you requested in mpirun. You can then use the command
'pprof' in the folder where these profiles are to view the data.
Alternatively, if you have xwindows working you can type 'paraprof'
for the gui. I believe each gives the same information.

I believe that the most detailed analysis is what tau provides you
with: computational cost on the level of functions.

Best,

Matt

On Apr 16, 5:30 pm, huan sun <hsun...@gmail.com> wrote:
> Hi all,
>
> 1. I am not clear about what we are supposed to do in the homework 3. It
> says  "do the most detailed analysis possible", but what should we analyze?
>
> 2. I am also not sure how to use TAU. I am refering to Stefan's website
> doing the following :               Am I right? if so, after compiling the c
> file, shall we use mpirun as usual to run the code??
>
> Load the TAU environment:
>
> export  PATH=/home/beta/tau/2.19-pgi/x86_64/bin:$PATH
> export LD_LIBRARY_PATH=/home/beta/tau/2.19-pgi/x86_64/lib:$LD_LIBRARY_PATH
>
> Select the appropiate TAU MAKEFILE based on your choices. For example:
> /home/beta/tau/2.19-pgi/x86_64/lib/Makefile.tau-mpi-pdt-pgi
> <http://engineering.ucsb.edu/%7Estefan/Makefile.tau-mpi-pdt-pgi>

huan sun

unread,
Apr 16, 2011, 10:08:03 PM4/16/11
to ucsb-computer-scien...@googlegroups.com
Hi Matt,

I am using the following command to instrument my code, but always get the error information: TAU_Makefile is set but the file is not readable.

export  PATH=/home/beta/tau/2.19-pgi/x86_64/bin:$PATH
export LD_LIBRARY_PATH=/home/beta/tau/2.19-pgi/x86_64/lib:$LD_LIBRARY_PATH
export TAU_MAKEFILE=/home/beta/tau/2.19-pgi/x86_64/lib/Makefile.tau-mpi-pdt-pgi

tau_cc.sh parallel.c

Can you tell me where I am wrong? Thank you very much.

Huan
Reply all
Reply to author
Forward
0 new messages