Chapter 2. Windows

2.1. TAU on Windows

2.1.1. Installation

We provide a binary release build for Windows on the download page. TAU can also be built form source using Makefile.win32.

2.1.2. Instrumenting an application with Visual Studio C/C++

Here is a step by step guide for retrieving a standard profile from a threaded program.

  1. Download TAU (see previous section)

  2. Open [TAU-HOME]/examples/threads/threads.sln in VC 7 or greater.

  3. Open testTau.cpp source file.

  4. Uncomment the pragma element at the top of the file so that it reads:

    #define PROFILING_ON 1
    #pragma comment(lib, "tau-profile-static-mt.lib")
  5. Edit these properties of this project:

    1. Add the ..\..\lib\vc7\ directory to the Linker's Additional Library Directories.

    2. Set the Runtime Library to Multi-threaded DLL (MD)in the C/C++ Code Generation section.

  6. Build and run the application.

  7. Launch Visual Studio's command line prompt Move to the [TAU-HOME]/examples/threads/directory/ this is where the profile files where written. Type:

    %> [TAU-HOME]/bin/paraprof

    To view these profiles in pararprof