To take advantage of TAU's automatic instrumentation features, you will need to install the Program Database Toolkit (PDT). Download the latest version from the PDT pages and put the tar.gz package in the location that you want to install PDT. For this installation, we will assume that you are using IBM's Fortran and C/C++ compilers, with an mpich installation.
Start by uncompressing the PDT package and moving into the PDT directory.
%> tar -xvzf pdtoolkit-x.x.tar.gz %> cd pdtoolkit
You can get a sense for what options you can configure PDT with by entering:
%> ./configure Program Database Toolkit (PDT) Configuration -------------------------------------------- Looks like a Linux machine ... Looking for C++ compilers .... done Usage: ./configure [-GNU|-CC|-c++|-cxx|-xlC|-pgCC|-icpc|-ecpc] [-arch=ibm64|ibm64linux|IRIXO32|IRIXN32|IRIX64] [-help] [-compdir=<compdir>>] [-enable-old-headers] [-useropt=<options>>] [-prefix=<dir>] [-exec-prefix=<dir>>]
We will configure PDT for use the the Fortran xlF, xlc, and xlC compilers. To configure PDT, type
%> ./configure -xlC Program Database Toolkit (PDT) Configuration -------------------------------------------- Looks like a Linux machine ... Looking for C++ compilers .... done ==> Using /opt/ibmcmp/vacpp/6.0/bin/xlC Unpacking ppc64/bin ... ==> ARCH is PPCLINUX ==> PLATFORM is ppc64 ==> Default compiler options are -O2 ==> Makefiles were configured ==> cparse was configured ==> cxxparse was configured ==> f90parse was configured ==> f95parse was configured Configuration is complete! Run "make" and "make install" Add "/home/users/hoge/pdtoolkit-3.4/ppc64//bin" to your path
Add the specified directory to your path. In bash, for example you could enter
%> export PATH=$PATH:/home/users/hoge/pdtoolkit/ppc64/bin
Now, build and install PDT. Unless you specify a different location to install PDT, it will be placed in the current working directory.
%> make ... %> make install
Now you're ready to proceed with the TAU installation.