Overview
STILL UNDER CONSTRUCTION
To trace MPI programs with the intel mpi tracing capabilities the following steps are at least necessary.
(Note that his guide demands not to be the only way nor to be complete and error proof!)
Tutorial
- module load itac
- env LD_PRELOAD=/apps/intel/itac/7.2.0.011/itac/slib_impi3/libVT.so mpirun -pernode ./bin/solver ./examples/2X_2Y_2Z_200X200X200c_file.prm
- e.g: env LD_PRELOAD=/apps/rrze/lib/ptoverride-ubuntu64.so:/apps/intel/itac/7.2.0.011/itac/slib_impi3/libVT.so mpirun -npernode 2 $MPIPINNING ./bin/solver ./examples/8X_8Y_4Z_800X800X400c_file.prm
- Another way of doing this is to run mpiexec -trace ..... (remember this is true for intel MPI)
Watch that additional LD_PRELOAD commands might override this one!
env LD_PRELOAD=/apps/rrze/lib/ptoverride-ubuntu64.so:/apps/intel/itac/7.2.0.011/itac/slib_impi3/libVT.so mpirun -npernode 2 $MPIPINNING ./bin/solver ./examples/8X_8Y_4Z_800X800X400c_file.prm
Official Intel Docu on that matter
Intel® Trace Analyzer and Collector for Linux* OS
Getting Started Guide
Overview
To simplify the use of the Intel® Trace Analyzer and Collector, a set of environmental scripts is provided to you. Source/execute the appropriate script (/bin/itacvars.[c]sh) in your shell before using the software. For example, if using the Bash shell:
$ source /bin/itacvars.sh # better added to $HOME/.profile or similar
The typical use of the Trace Analyzer and Collector is as follows:
* Let your application run together with the Trace Collector to generate one (or more) trace file(s).
* Start the Trace Analyzer and to load the generated trace for analysis.
Generating a Trace File
Generating a trace file from an MPI application can be as simple as setting just one environment variable or adding an argument to mpiexec. Assume you start your application with the following command:
$ mpiexec -n 4 myApp
Then generating a trace can be accomplished by adding:
$ LD_PRELOAD=/slib/libVT.so mpiexec -n 4 myApp
or even simpler (for the Intel® MPI Library)
$ mpiexec -trace -n 4 myApp
This will create a set of trace files named myApp.stf* containing trace information for all MPI calls issued by the application.
If your application is statically linked against the Intel® MPI Library you have to re-link your binary like this:
$ mpiicc -trace -o myApp # when using the Intel® C++ Compiler
or
$ mpiifort -trace -o myApp # when using the Intel® Fortran Compiler
Normal execution of your application:
$ mpiexec -n 4 myApp
will then create the trace files named myApp.stf*.
Analyzing a Trace File
To analyze the generated trace, invoke the graphical user interface:
$ traceanalyzer myApp.stf
Read section For the Impatient in the Trace Analyzer Reference Guide to get guidance on the first steps with this tool.
No comments:
Post a Comment