3.5. Dynamically Instrumenting MPI applications

This section will cover how to profile your application by linking to the TAU mpi wrappers. This will only profile MPI routine to profile other functions see TAU Compiler.

The tau_laod.sh script allows you to instrument an mpi application at run time using the LD_PRELOAD mechanism. This feature allow instrumentation of already compiled executables without TAU's having to edit the application's code. This is only available on platforms that support LD_PRELOAD. Furthermore since instrumentation is done at runtime the linking is all done dynamically--applications that have static libraries will fail to load them.

To use tau_laod.sh simply place it before the application's executable when calling mpirun:

%> mpirun -np 4 tau_load.sh ./a.out

For those on AIX systems use the tau_poe application:

%> tau_poe ./a.out -procs 4

For usage see tau_poe